- 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
12 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
12 months ago 10:30pm 26 April 2024 - 🇪🇸Spain ckrina Barcelona
Moving to Needs work after getting Navigation into core.
- Status changed to Postponed
12 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
9 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 Navigation with Contextual editing Active
- 📌 Integrate Umami message Active
- 📌 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
9 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
8 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 Active
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 :)
- Status changed to Needs review
4 months ago 5:14pm 26 December 2024 - 🇷🇸Serbia finnsky
I would like to have it merged. It has some improvements about buttons and events.
On my side RTBC + 1 - 🇪🇸Spain plopesc Valladolid
I would really like to have it merged as well, but I'm afraid we need to get ✨ Allow modules to hook into top of content/footer sections of new core navigation Active in first.
Postponing this one on it to make it more explicit and have a better picture of the relationships between the issues.
- 🇷🇸Serbia finnsky
Probably we will need to backport valuable CSS/JS changes from this MR then.
Currently we have bug with anything displaced from top.
Not only workspaces.Also Ajax issues from #32 also global. So this prio maybe higher.
- 🇷🇴Romania amateescu
Updated the MR to use the new
content_top
region from ✨ Allow other modules to include their own Navigation blocks during installation Active . Another artificial dependency down... - 🇪🇸Spain plopesc Valladolid
Code looks great and all the comments have been addressed.
Marking as RTBC.Attaching screenshot to demonstrate the new behavior:
Thank you!
- 🇺🇸United States moshe weitzman Boston, MA
I apologize for chiming in at the end here. The interaction looks awkward to me. Specifically, there are 3 areas involved. The toolbar with the green Live, the expanding header where you begin the workspace selection. And then confirm dialog. This is a lof of jumping. Did we consider doing this all in one expanding menu, and doing away with the confirm dialog? Its not actually destructive to change your workspace. Its just your personal view of the content.
Please disregard this comment if the team disagrees,.
- 🇷🇴Romania amateescu
Did we consider doing this all in one expanding menu, and doing away with the confirm dialog?
Yup, that's the long-term plan per #30 :) While this issue is only focused on exposing Workspace's current switcher (with all its problems), in a followup we'll handle both suggestions. There's a screenshot in this comment #3457688-29: Support for core navigation experimental module → which shows the WIP design for the full Workspaces navigation UI.
- 🇪🇸Spain ckrina Barcelona
What @amateescu said :)
All the early explorations we did trying to improve the workflow with Workspaces showed that we need to think about several existential interactions and UIs beyond the top dialog. That's why we kept this as "it only triggers the existing dialog" so we can get Navigation to Stable soon and not get into a way longer discussion that will block Navigation.
- 🇦🇺Australia pameeela
Looks "good enough" to me! Certainly better than now, which is no integration at all.
- 🇬🇧United Kingdom catch
Do we actually have a follow-up issue open for the UX changes? Would be good to open that and maybe attach the most relevant screenshots from here. Tagging for that.
Opened one more follow-up based on the placeholder discussion in the MR: 📌 Try to use a parameter for the workspaces toolbar destination link Active .
Can't review the CSS here usefully, and only just about bits of the JavaScript, but other people have done that, and the PHP looks fine.
Committed/pushed to 11.x, thanks!
- 🇺🇸United States nicxvan
This may have potentially broken navigation performance tests.
After rebasing 📌 Create hook_runtime_requirements Active I am getting failures for the navigation js performance test.$this->assertLessThan(90000, $performance_data->getStylesheetBytes());
Automatically closed - issue fixed for 2 weeks with no activity.