-
Notifications
You must be signed in to change notification settings - Fork 24
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
Move "cards" from the Constance Config JSON format to dedicated Model(s) #222
Comments
@jabelone I will take this one as discussed recently. |
Implementation NotesAfter talking to @jabelone, we decided that the first implementation should be less disrupting as possible. This means the goal is to migrate the The
|
@adrianosmarinho / @jabelone - I agree with the approach in principle, however the main reason for suggesting a The approach above is fine (although To be clear, I'm not against this approach enough to argue too hard over it, but it does feel we could be restricting ourselves in future? |
That is definitely a fair risk to be mindful of, but I don't see any other places these cards might be used (at least in the short term). An implementation without a Even if we add another 1-2 places cards may show up we can just add a couple more boolean flags to the model. If we ever need totally different cards, we can add a |
OK, cool, like I say, this more personal preference than strong belief, we'll go with your approach and change if needed in future :) |
Is your feature request related to a problem? Please describe.
At the moment, when adding/removing/editing the "cards" that are displayed on the home page of the portal and in signup emails I need to copy the JSON out of the Admin interface into a suitable editor, make the changes I need, and then paste it back into the admin area before saving them.
Describe the solution you'd like
Moving this information out of Constance and into dedicated Model(s) would enable users to set the various parameters for the cards without worrying if the syntax was correct or if a field was missing.
It would also allow for additional card types in future if needed (kiosk only, social media etc)
Describe alternatives you've considered
N/A
Additional context
Something like the following?
The view could then assemble the appropriate format based on a
filter(card_type = "<card type>")
setup?The text was updated successfully, but these errors were encountered: