Set sensible defaults as pinned items in groups and projects
What does this MR do and why?
Implements #404883 (closed). See #404883 (comment 1372082739) for more context.
Screenshots or screen recordings
Before | After | |
---|---|---|
Project | ||
Group |
Hover | Focus within |
---|---|
How to set up and validate locally
- The default pins are only show for users who haven't edited their pins yet. To reset your user to that state, do this:
user = User.first # or whatever your user is user.update(pinned_nav_items: {}) # "{}" is also the database default value for this JSONB column
- Enable the new nav:
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Paul Gascou-Vaillancourt