Skip to content
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

dev/core#259 OptionGroup Admin UI workflow improvements #12473

Merged

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Jul 14, 2018

Overview

Ref: https://lab.civicrm.org/dev/core/issues/259

Various improvements to the "flow" of the option groups admin pages.

Before

  • No option to edit option group settings (eg. change the label).
  • When clicking "Done" editing options, redirect to the option groups list instead of the default admin page.

After

  • Add option to edit option group settings (the code was already in place, but not exposed in UI).
    • Display "is_reserved" status on option group settings.
    • Don't allow changing data type on reserved option groups.
    • On update optiongroup don't touch is_reserved.
      localhost_8000_civicrm_admin_options_action browse reset 1 4

localhost_8000_civicrm_admin_options_action browse reset 1 5

  • When clicking "Done" editing options, redirect to the option groups list instead of the default admin page.
    localhost_8000_civicrm_admin_options_action browse reset 1 6

Technical Details

UI only changes that enable editing option groups parameters.

Comments

If you are working with multiple option groups, the UI has always been a bit difficult to navigate and various functions are not possible via the UI (such as changing the label of an option group).

@civibot
Copy link

civibot bot commented Jul 14, 2018

(Standard links)

@mattwire mattwire changed the title dev/core#259 Optiongroup ui improvements dev/core#259 OptionGroup Admin UI workflow improvements Jul 14, 2018
@mattwire mattwire changed the title dev/core#259 OptionGroup Admin UI workflow improvements WAITING#12423 dev/core#259 OptionGroup Admin UI workflow improvements Jul 14, 2018
@eileenmcnaughton
Copy link
Contributor

@mattwire does this need a rebase now?

@mattwire mattwire force-pushed the optiongroup_ui_improvements branch from 3aef92d to 62fbdfc Compare July 23, 2018 16:28
@mattwire mattwire changed the title WAITING#12423 dev/core#259 OptionGroup Admin UI workflow improvements dev/core#259 OptionGroup Admin UI workflow improvements Jul 23, 2018
@mattwire
Copy link
Contributor Author

@eileenmcnaughton Thanks, now rebased.

@colemanw
Copy link
Member

@mattwire any idea what setting the "data type" on an option group actually does? The column in sql is varchar no matter what.

@colemanw
Copy link
Member

@colemanw
Copy link
Member

I'm recommending we merge this as it's an overall improvement. I do have one additional suggestion tho:

AFAIK there is no easy way to reach the "Option Groups" page (screenshot 1). In the menu you have to click Administer -> Customize Data & Screens -> Dropdown Options -> Gender and then go to the breadcrumbs and go up a level.
IMO we could fix this by turning the Dropdown Options menu leaf into a link (in the CiviCRM menubar, parent menu items are allowed to be links).

@eileenmcnaughton
Copy link
Contributor

merging per label - yay @mattwire - merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants