-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GH-798] - Configurator Game Modes #855
base: main
Are you sure you want to change the base?
Conversation
apps/gateway/lib/gateway/controllers/curse_of_mirra/configuration_controller.ex
Outdated
Show resolved
Hide resolved
cf8b82f
to
77c5b01
Compare
apps/configurator/lib/configurator_web/controllers/game_mode_html/index.html.heex
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
||
def change do | ||
alter table(:game_modes) do | ||
add :description, :text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to squash this into the other migration AddGameModesTable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. Nice catch!
use Ecto.Migration | ||
|
||
def change do | ||
create table(:game_modes) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why another table instead of an enum in versions
? It feels like a lot of code/complexity to keep track of a string. Am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point, but I think that marking a version as current in a game mode would be a bit more complex? What if we want to disabled a game mode? 🤔 .
That's a good idea to be honest, but I would to see if this fits our necessities or it is too much 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you envision to that now?
Closes #798
Motivation
Add the game mode concept to the configurator. So we can group configurations below a game mode
DISCLAIMER: We're not addressing UI/UX concerns in this PR.
Summary of changes
How to test it?
UI/UX stills rough.
CONFIGURATOR_URL/game_modes
create a game modeCONFIGURATOR_URL/versions
and select a game modeChecklist