-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
AdminUI - POC option groups/values page #25387
base: master
Are you sure you want to change the base?
Conversation
(Standard links)
|
I'm def +1 on the new urls - rather than replace |
Note I did have a PR to improve metadata sort of to support this - I just closed it as it keeps going stale & now tests are failing but it is here - I did already merge some bits I hit an issue where |
Looks good! That gives us a framework for adapting the displays based on the values for the group (and without smarty!) Changing the URL's makes it a larger effort but will give us more flexibility and allow us to override the path for the odd few that have their own dedicated edit pages. We will need to edit menus to show the new URL's. Any extensions that link to option edit pages will also need updating which could be tricky - they will need to point to different URL's depending on the version of core and whether or not AdminUI is enabled. But I doubt there are many like that. I see the icon field in the tables now has a 'Option Value - Icon' option. Maybe we could do the same for 'Option Value - Colour' in the style box? And this neatly solves the problem of getting the group description into the option editing display. |
I haven't
FWIW, when the CiviMail UI moved to JS (two million minutes ago), there was a similar issue. The approach there was to put in a server-side redirect for older entry-points that were hard to capture. The upshot of this approach: custom-menus/custom-pageflows still work. For AdminUI, it would have an extra benefit -- you can keep the same menus in place when folks enable/disable the AdminUI (because they're experimenting - and not sure if they're going to use it for long). That pattern could be stable-enough -- at least for the interim, until AdminUI becomes a standard. |
Test this please |
@colemanw There are a few comments from Eileen & Tim. Do you want to tweak further now, or merge this and follow up as needed? |
@aydun I still feel like some tweaking of the paths in core is needed. I'll try to get to that soon... |
Something related to this was just merged to master as b6e364d. That commit only works for custom fields though, so is more limited in scope. |
Overview
POC replacement for option group administration pages, for discussion (because we haven't had enough of that on this subject yet!)
Before
Heavily overloaded path
civicrm/admin/options
is used to:After
(will update description as this changes)
Currently, this PR adds a new path:
civicrm/admin/option
(for POC purposes it's subtly different than the one in core) which is used to:I thought it could become a drop-in replacement for the currently overloaded path simply by adding the letter
s
when we're ready to flip that switch (provided we change items 3-7 to go through different paths). Now I'm wondering if we oughtn't just create an entirely new url structure because the old one really is bad.How about this new url structure (similar to that of custom groups/fields):
civicrm/admin/option/group
civicrm/admin/option/group/values
civicrm/admin/option/group/add
civicrm/admin/option/group/update
civicrm/admin/option/group/values/add
civicrm/admin/option/group/values/update
civicrm/admin/option/group/values/delete
Ping @aydun