Details
-
Suggestion
-
Resolution: Won't Fix
-
None
Description
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
It would be nice if the new smart menus would remember the last admin sections I visited (I think 5 would be good but it should be configurable from the jira-application.properties file)
The way I see it working is:
- Add javascript to the admin decorator (include a web resource rather than inline javascript). This will add a click listener to all admin links. This listener will do an ajax request to a REST end-point. This listener doesn't stop the page navigating to the desired page.
- Rest end-point - This will take the id (from the id attribute of the anchor) and store it in persisted history
- Persisted history - create a AdminUserHistoryManager (very similar to ProjectUserHistoryManager)
- create AdminHistorySimpleLinkFactory (similar to ProjectHistoryLinkFactory) and add it to system-top-navigation-plugin.xml.
Will need unit tests for the AdminUserHistoryManager, AdminHistorySimpleLinkFactory and AdminHistoryResource (REST).
Selenium tests to for functional coverage.
Note. AdminUserHistoryManager should most probably just deal with keys (Strings).
AdminHistorySimpleLinkFactory will need to convert keys to WebItems to SimpleLinks.
To convert keys to WebItems - get all JiraWebItemModuleDescriptors from the PluginAccessor using a ModuleDescriptor predicate that checks for the link id.
Look at the SimpleLinkManager on how to convert these to SimpleLinks. (Most probably extract this logic into a helper class).
Attachments
Issue Links
- relates to
-
JRACLOUD-19348 Remember Admin pages I have visited and display the last 5 in the Admin menu
- Closed