- Issue created by @KeyboardCowboy
- First commit to issue fork.
- ๐ท๐ธSerbia finnsky
Added quick proto here.
I tried to reuse all existing components as much as possible.I really think it shouldn't be `workspaces only` MR. We need to create some common UI for that panel. And probably for layout builder/announcements etc panels aswell.
So I've added .toolbar-panel in temporary styles.
@ckrina please take a look! Thanks
- ๐ช๐ธSpain ckrina Barcelona
Adding link to related issue in Workspaces #3096017: Finalize the Workspaces UI โ .
- Status changed to Needs review
8 months ago 1:18pm 25 April 2024 - ๐จ๐ฆCanada SKAUGHT
@ckrina
#4: I agree we should also take a look around what things other core/contrib will want to add to this tool.
We need to keep in mind that other modules 'opt-in' to using toolbar via hook_toolbar:- Workspaces: add a 'tab' (only) and attaches js/css via library api (which opens the top fixed off-canvux drawer)
- Acquia Connector: add a tab (only) opens to external hosting tools dashboard.
- Devel: adds 'tab' and 'tray' of child menu item [see: \Drupal\devel\ToolbarHandler]
- demo_umami: adds 'tab' item to say
^I would antipate that devel would themselves convert to a menu and be placed in within the 'admin' menu (left side). However this is reminding of the purpose of top bar: for these such of items!
Propose: Top bar also adds Layout for right/left position.
-> convert 'local tasks' to a plugin to be placed. q: Is NavigationBlock currently flexible enough to also be used this way
-> info and docs about the plugins.DX:
->how can other modules install their items? - Status changed to Needs work
8 months ago 10:30pm 26 April 2024 - ๐ช๐ธSpain ckrina Barcelona
Moving to Needs work after getting Navigation into core.
- Status changed to Postponed
8 months ago 10:32pm 26 April 2024 - ๐ช๐ธSpain ckrina Barcelona
Actually, also postponing it until we have designs for this so nobody else tries to implement something that has to be changed later.
- ๐บ๐ธUnited States smustgrave
Following as this also impacts Tour (which is now contrib)
- ๐จ๐ฆCanada SKAUGHT
Navigation should have a 'pill' plugin item that lets contrib/core components simply add this 'link' for this wider 'task markers'
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Came here as I was doing screenshots for Drupal 11's release and the navigation screenshot looks great, but I could only screenshot the stable workspaces module with the old toolbar. So we'll have these two screenshots in the Drupal 11 release.
Is there an issue for the design that this is postponed on?
- Status changed to Active
5 months ago 5:41pm 1 August 2024 - ๐ช๐ธSpain ckrina Barcelona
I've updated the first round of designs so the implementation of this can start. This will still miss hover states, for example. I've also added the new icon SVG.
- ๐ช๐ธSpain ckrina Barcelona
I gorgot to mention that I opened some follow-ups for the rest of the modules to focus this issue only on Workspaces on the Navigation itself, so the rest of the modules have their own issues:
- ๐ Integrate the Tour module into the Navigation Active
- ๐ Integrate Top Bar Navigation with Contextual editing Active
- ๐ Integrate Umami message Needs review
- ๐ Integrate Announcements into Navigation's drawer/submenu Active
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
This looks great. I think workspaces has three icons as shown in the screenshot (https://git.drupalcode.org/project/drupal/-/tree/11.x/core/modules/works... has the yellow and green page layout and the dimensional layers image), but the one in the toolbar is similar to the one you are proposing here, so that looks good too.
- ๐ช๐ธSpain ckrina Barcelona
@Gรกbor Hojtsy yes, those other icons are used on the internal Workspaces UI we're still working on. :)
- ๐ท๐ดRomania amateescu
amateescu โ changed the visibility of the branch 3425081-integrate-with-workspaces to hidden.
- @amateescu opened merge request.
- Status changed to Needs review
5 months ago 1:37pm 7 August 2024 - ๐ท๐ดRomania amateescu
Thanks @ckrina for posting the designs, I also think they look good! My initial impression was that the workspace switcher is a "contextual operation", so the top bar would've been better suited for it, but I suppose there was enough thought put into the current proposal so I'm not going to argue about it :)
I've opened a MR with my initial attempt at this integration. No screenshot needed because it looks just like the existing ones.
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
This currently adds an alter hook, but otherwise the items in navigation are standard blocks. Should this be a block that is shipped with Workspaces instead?
- ๐ท๐ดRomania amateescu
@Gรกbor Hojtsy, the MR provides a Workspaces block as well. The hook is needed so modules can add blocks to the navigation without user intervention, basically what โจ Allow modules to hook into top of content/footer sections of new core navigation Active is also asking for.
- Status changed to Needs work
4 months ago 2:50pm 11 August 2024 - ๐บ๐ธUnited States smustgrave
Believe the new library has to be added to the Stable9 override list.
- ๐บ๐ธUnited States mherchel Gainesville, FL, US
Discussed during meeting today.
Per @m4olivei:
It looks like this adds an alter hook that allows the form to be able to placed within the navigation module. We need to do two things:
- Does this solve our issue and allow us to place the form?
- Will this new hook work for other modules that want to do similar?
@m4olivei will work on this.
- ๐ช๐ธSpain ckrina Barcelona
Just to confirm that this issue should only take care of the item placed on the Navigation itself. Nothing related to the form should be changed, since it really complicates the implementation and we need this issue fixed to get Navigation into stable. So as long we can trigger the old form from the new Navigation we can move any work to a followup (in Workspaces, and discussed & agreed with the Workspaces maintainers).
So, for this MR it'd be great if the color green used is closer to the one from the designs (the green chosen is darker and forces using white text).
- First commit to issue fork.
- ๐ท๐ธSerbia finnsky
we need to fix top displace
https://gyazo.com/668eaf04133ec59fd1c4026f89ef8e18 - ๐ท๐ธSerbia finnsky
To do it in good way, abstract buttons and css variables we will beed to update toolbar-button itself.
To avoid double work i would like to have https://www.drupal.org/project/drupal/issues/3458215 ๐ Migrate Toolbar button to SDC Needs review landed first.
It is also stable blocker. - First commit to issue fork.
- ๐ท๐ดRomania amateescu
Fixed most of the threads, there's only one remaining where we need a reply from @finnsky.
- ๐ท๐ธSerbia finnsky
Points 1, 2 and 3 from #32 are still outstanding
Yes. But scope of the current issue is navigation module. So i think we should fix it here aswell.
- ๐ท๐ธSerbia finnsky
Also should this block be also configurable from UI?
Like
https://gyazo.com/71f405fd6ea357cc707056a5c3fc8bde - ๐ท๐ธSerbia finnsky
@crina could you please define animation icon
https://gyazo.com/86a2d286fe3d5bdb54d75e7619f6f107 - ๐ท๐ธSerbia finnsky
I've fixed all issues from #32
But one important thing.
We have yet another issue. https://www.drupal.org/project/drupal/issues/3441100 ๐ Integrate Umami message Needs review
Where we add messages into navigation via theme hook(s).
I would like to get backender review of both issues. to get best and simplest way to extend navigation.Here for example we ignore that buttons(messages) can be displayed as list.
So before we will extend Navigation by other modules let's have universal extending mechanism
- First commit to issue fork.
- ๐ท๐ธSerbia finnsky
I don't think that in this issue we should change core code
- ๐ท๐ดRomania amateescu
There's currently a single failing (Nightwatch) test left, and the problem seems to have been introduced in this commit https://git.drupalcode.org/project/drupal/-/merge_requests/9116/diffs?co.... No idea how to fix it, hoping that @finnsky can help :)
- ๐บ๐ธUnited States trackleft2 Tucson, AZ ๐บ๐ธ
FYI the throbber doesn't work correctly when the navigation is collapsed
- ๐ท๐ดRomania amateescu
Discussed with @plopesc and agreed that we should leave the "add the workspace navigation block by default" part to โจ Allow modules to hook into top of content/footer sections of new core navigation Active . I'm not doing that myself right now because I see @finnsky is actively working on the MR :)
We also discussed test coverage, and since the current MR is just adding a button that does the same AJAX action as the on the in the Toolbar, there's nothing really testable at this point. Test coverage will be needed when we get to work on the full solution that will open the workspace switcher in the navigation popover.
- ๐ท๐ดRomania amateescu
Addressed the last feedback but this is sadly still blocked on a nightwatch fail that I've no idea how to fix.
- ๐บ๐ธUnited States trackleft2 Tucson, AZ ๐บ๐ธ
Nightwatch fail says
Timed out while waiting for element <.admin-toolbar__expand-button[aria-expanded=true]> to be present for 5000 milliseconds. - expected "visible" but got: "not found" (5157ms)
Found here https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/navig...
- ๐ท๐ดRomania amateescu
Thanks @plopesc for fixing the test! This is finally ready for review now :)