Skip to content
Snippets Groups Projects

Keep flyout menu closed when section just got collapsed

Merged Thomas Hutterer requested to merge 415343-no-flyout-on-section-collapse into master

What does this MR do and why?

Improves the new flyout menus for the new nav, based on these feedback comments:

Now, when clicking a section title to close its expanded items below, the flyout menu won't appear anymore. It will appear again after the mouse moved away and back onto the section title.

Screenshots or screen recordings

Before After
recording_1690293035 recording_1690292963

How to set up and validate locally

  • These flyout menus were initially not part of the navigation redesign. They are currently still behind their own feature flag, so in your gdk rails console, run:
Feature.enable(:super_sidebar_flyout_menus)
  • Then, make sure you have the new navigation toggled on in your user dropdown.
  • Browse to any project or group, or the admin page, because their sidebars all have a lot of expandable sections.
  • Hover over a collapsed section. You should see the flyout (also on master)
  • Click the section title to open it up. The flyout menu disappears (also on master)
  • Click the section title again to close it. The flyout should also stay hidden (:new:)
  • Hover away and back onto the same section title. It shows its flyout again.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #415343 (closed)

Edited by Thomas Hutterer

Merge request reports

Merged results pipeline #950603190 passed

Pipeline: GitLab

#950615963

    Pipeline: GitLab

    #950629456

      Pipeline: E2E GDK

      #950630778

        Merged results pipeline passed for 9940eae2

        Test coverage 82.41% (7.95%) from 2 jobs
        Approval is optional

        Merged by Frédéric CapletteFrédéric Caplette 1 year ago (Jul 31, 2023 2:41pm UTC)

        Merge details

        • Changes merged into master with b322083a (commits were squashed).
        • Deleted the source branch.
        • Auto-merge enabled

        Pipeline #950751270 passed

        Pipeline passed for b322083a on master

        Test coverage 66.56% (7.95%) from 2 jobs
        10 environments impacted.

        Activity

        Filter activity
        • Approvals
        • Assignees & reviewers
        • Comments (from bots)
        • Comments (from users)
        • Commits & branches
        • Edits
        • Labels
        • Lock status
        • Mentions
        • Merge request status
        • Tracking
        Please register or sign in to reply
        Loading