Update breadcrumbs at Admin Area > Messages > Edit
What does this MR do and why?
In the GitLab Admin Area / Messages, when editing an existing message, the breadcrumb at the top of the page displays "Admin Area > Messages".
Breadcrumb "Messages" indicates to have a link to the list of messages (.../admin/broadcast_messages
). But Breadcrumb "Messages" has a link to
the current page (editing the message, .../admin/broadcast_messages/1/edit
).
There is no breadcrumb displayed to indicate a link to the current page, editing a message.
This MR updates the breadcrumbs:
- Change breadcrumb "Messages" to link to the list of messages (
.../admin/broadcast_messages
) - Add breadcrumb "Message" with a link to the current page (
.../admin/broadcast_messages/1/edit
)
Screenshots or screen recordings
(When taking the screenshots, I was editing message number 2
Current pre-MR screenshot: Breadcrumb "Messages" links to the current page editing the message (http://127.0.0.1:3000/admin/broadcast_messages/1/edit):
Post-merge screenshots:
- Breadcrumb "Messages" links to the message list (http://127.0.0.1:3000/admin/broadcast_messages)
- Additional breadcrumb "Messages" links to the current page editing the message (http://127.0.0.1:3000/admin/broadcast_messages/1/edit)
How to set up and validate locally
- Start GitLab and open GitLab (locally with the GitLab Development Kit (GDK), or online with GitPod)
- Login with a GitLab admin user
- Open Admin Area / Messages (http://127.0.0.1:3000/admin/broadcast_messages/ for a locally running GitLab)
- Create and save a new broadcast message "Test message" (the text or other message settings you enter do not matter)
- Edit the broadcast message (via the pencil icon in the lower left, http://127.0.0.1:3000/admin/broadcast_messages/1/edit)
- In the broadcast message edit page, the breadcrumbs between the GitLab search field and the message display says "Admin Area > Messages"
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.
Related to #389480 (closed)