Problem/Motivation

The existing Announcements are being opened in a settings try at the right of the screen. Since the Announcement feed link has been moved into the new navigation into the left of the screen, the contents of the announcement feed show really far on the right side of the screen.

Proposed resolution

Move the contents of the Announcement feed into the Navigation submenu/drawer. The design of the drawer would look like this:

Note: please ignore the "icon" for the announcement with the letters: it's there to only showcase what should happen when there is no link. Please keep the speaker as an icon.

This designs add new styles to the Navigation for links, so that's why this issue is on the Navigation issue queue:

Link to Figma specs: https://www.figma.com/design/VCPAxetieAC2pzw7hgX3ij/Drupal-Admin-UI---De...

Remaining tasks

Update initial implementation with new designs

User interface changes

Navigation will have links styled.

Issue fork drupal-3465299

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ckrina created an issue. See original summary.

ckrina’s picture

Issue summary: View changes
Issue tags: +Needs design

Not sure if the component needs to be Navigation or Announcements, so leaving into Navigation for now because we need to provide the designs and styles at least.

quietone’s picture

Version: 11.0.x-dev » 11.x-dev
kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko

In progress

kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
StatusFileSize
new355.74 KB

Here is very raw implementation https://git.drupalcode.org/project/drupal/-/merge_requests/9069

I'm fetching the list of announcements and simulating from them the child menu for parent `Announcements` link. For now visually it is looking similar as other dropmenus.

test

I prepared this MR mostly to give front devs to do their job separately. Now we have the full data available in twig and we can build UI fully matched desired design, while backenders can work on the implementation.

Here are few thoughts:
1. For the old `toolbar` module `announcements_feed` module is injecting the whole structure from inside, instead of `toolbar` module is relying on `announcements_feed`. Should we have the same logic? Like to put child menu into our navigation sidebar from using code written in `announcements_feed` module ?
2. In the old `toolbar` module `Annoucements` link doesn't have child menu by default. Instead it's a link to another page '/admin/announcements_feed' and in the same time it's an ajax link which is getting on response dialog with child menu links. Should we have ajax here aswell? For now there is no ajax in my MR.
3. Specific design for child menu of `Annoucements` will require probably new unique `theme hook` <- so potentlially it will not be a part of `navigation-menu.html.twig` component.

Keeping ticket on `Active` status since it requires discussions / Design.

ckrina’s picture

Issue summary: View changes
Issue tags: -Needs design
StatusFileSize
new177.03 KB
new49.98 KB

Added designs to the issue summary. This is ready to be worked on.

ckrina’s picture

I think this issue should be moved into the Announcements issue queue, no?

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

kentr’s picture

Title: Integrate Announcements into Navigation's drawer/submenu » Integrate Announcements module into Navigation's drawer/submenu