Skip to content
Snippets Groups Projects

Super sidebar: Render pill badges on menu items

Merged Lukas Eipert requested to merge who-took-the-pill-YRYBtOo7QAM into master
All threads resolved!

What does this MR do and why?

Super sidebar: Render pill badges on menu items

Only caveat right now: If an item is both a section and has a pill, we do not render the chevron.

While we currently have items which are both (e.g. the Issues menu in the project), our designs do not have sections with pills.

So as soon as we refactored our grouping in the super sidebar navigation, this should all work out properly.

Screenshots or screen recordings

Before After Notes
Screenshot_2023-02-28_at_13.26.47 Screenshot_2023-02-28_at_13.26.07 Group
Screenshot_2023-02-28_at_13.26.43 Screenshot_2023-02-28_at_13.25.57 Project
Screenshot_2023-02-28_at_13.26.40 Screenshot_2023-02-28_at_13.25.51 Your work, please note that the "Merge requests" menu item will not be an expandable section soon

How to set up and validate locally

  1. Enable the super_sidebar_nav and recommended: your_work_sidebar feature flags.
  2. Log into the GDK and enable the New Navigation for the current user via the Profile Menu
  3. Go to any project / group / your work

MR acceptance checklist

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

Edited by Lukas Eipert

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ghost User
  • Ghost User
  • Lukas Eipert resolved all threads

    resolved all threads

  • Lukas Eipert added 650 commits

    added 650 commits

    Compare with previous version

  • Lukas Eipert changed the description

    changed the description

  • Lukas Eipert requested review from @thutterer and @jrushford

    requested review from @thutterer and @jrushford

  • Thomas Hutterer approved this merge request

    approved this merge request

  • 👋 @thutterer, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • James Rushford
  • James Rushford approved this merge request

    approved this merge request

  • Allen Cook approved this merge request

    approved this merge request

  • Lukas Eipert added 1 commit

    added 1 commit

    • 00de63fb - Super sidebar: Render pill badges on menu items

    Compare with previous version

  • requested review from @jannik_lehmann

    • Resolved by Jannik Lehmann

      Question of understanding (blocking):

      One thought that just crossed my mind reading through the different lines where we do type-checking on the value in the pill. What if this value ever is negative?

      This case would obviously be a bug but in the current state of this we would (if I'm not overseeing sth) displaying it. So I'm wondering if this a valid test-case to add or rather overengineering it? 🤔 Curious about your thoughts on this @leipert

      Edited by Jannik Lehmann
  • @leipert Great work! Was able to reproduce this locally and it's working 👍 I do have one question regarding a potential test-gap. Thanks for looking in 🙇

  • Jannik Lehmann approved this merge request

    approved this merge request

  • Jannik Lehmann resolved all threads

    resolved all threads

  • Jannik Lehmann resolved all threads

    resolved all threads

  • Jannik Lehmann enabled an automatic merge when the pipeline for 62149580 succeeds

    enabled an automatic merge when the pipeline for 62149580 succeeds

  • Jannik Lehmann mentioned in commit afa50d75

    mentioned in commit afa50d75

  • added workflowstaging label and removed workflowcanary label

  • mentioned in merge request !113256 (merged)

  • Please register or sign in to reply
    Loading