Open davidmpickett opened 1 year ago
May or may not be similar to #11069
11069 does have some similarities. In that instance we didn't remove the option to select a bad choice up front, we merely throw an error if an invalid combination was selected. For this issue I believe our goal is to narrow down the available parent link options based on the section selected before the editor can make a bad selection. We would need a javascript solution for this to work on the fly. It would need to be smart enough to allow the user to change their mind.
It may need to start by grabbing the contents of the select list on page load and storing it, then removing anything from the list not under the matched item, then updating if the user changes their mind and chooses another section.
@swirtSJW I'd like to discuss this with you at some point.
Originally raised here: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/5471
Not sure if any part of the solution for Lovell can be reused here https://github.com/department-of-veterans-affairs/va.gov-cms/issues/12303
You can't see which system you are under when you are looking at this list, example user is in description. Updates for admins who are viewing as well
From refinement:
this should be completed alongside, based on the solution: #12884
@davidmpickett Do you think an engineer would be able to action this or is this more of an exploratory ticket?
@Agile6MSkinner I just refined this to be clearer and actionable. Would still need a review from Drupal engineer before picking up.
Describe the defect
As a CMS editor assigned to multiple sections, I need to properly place VAMC Detail Pages into the appropriate spot in the menu hierarchy.
However, the drop-down menu for Parent Link under Menu Settings loads every single menu item from every VAMC system in sections I'm assigned to, so I can not tell at a glance if I am assigning a page to the correct menu. I may accidentally place it under the correct parent (e.g. Programs) but the wrong grandparent (e.g. VA Minneapolis).
To Reproduce
Steps to reproduce the behavior:
Additional example
Drupal Admins (like the help deskers) have to confront an even larger menu of doom when assigning new VAMC facilities to the appropriate place in the system menu. Ideally fixing this for VAMC Detail Pages would fix it for VAMC Facilities.
AC / Expected behavior
field_administration
) so I can't accidentally put it in the wrong system