backstage-showcase icon indicating copy to clipboard operation
backstage-showcase copied to clipboard

fix(sidebar): make left sidebar scrollbar visible on hover and keep "administration" & "settings" sticky at the bottom

Open Lucifergene opened this issue 8 months ago • 45 comments

Fixes RHDHBUGS-262

https://github.com/user-attachments/assets/51d53eb0-fbd5-492b-bed4-3e33209d8dd6

Lucifergene avatar Aug 01 '25 17:08 Lucifergene

/retest-required

its-mitesh-kumar avatar Aug 06 '25 04:08 its-mitesh-kumar

/retest

Lucifergene avatar Aug 18 '25 15:08 Lucifergene

/retest-required

Lucifergene avatar Aug 20 '25 03:08 Lucifergene

I think as soon as user hover on sidebar scrollbar should be visible. But currently only when user start scrolling then only scrollbar is visible. @ShiranHi @Lucifergene WDYT ?

https://github.com/user-attachments/assets/23619360-419a-46ac-a99e-a041ed2b1035

its-mitesh-kumar avatar Aug 20 '25 06:08 its-mitesh-kumar

Yeah, makes sense. Thanks @its-mitesh-kumar :)

Lucifergene avatar Aug 20 '25 11:08 Lucifergene

I think as soon as user hover on sidebar scrollbar should be visible. But currently only when user start scrolling then only scrollbar is visible. @ShiranHi @Lucifergene WDYT ?

I agree, the scrollbar should be visible on hover. Thank you.

ShiranHi avatar Aug 24 '25 09:08 ShiranHi

@its-mitesh-kumar Tried the various edge cases to reproduce the issue:

Added dummy items in:

  • [x] Global nav items
  • [x] new sidebar group
  • [x] nested items

But I was unable to reproduce it in every situation.

As per your video, I have also tried disabling the Global Header.

https://github.com/user-attachments/assets/14e46d24-424d-4ee5-9b4a-dd7c941c87f8

Can u share some more information on the reproduction steps?

Lucifergene avatar Aug 31 '25 08:08 Lucifergene

@Lucifergene I tested it again I can see the same issue adding the screen recording for the same.

https://github.com/user-attachments/assets/84b8a5ea-230f-433a-bce2-3beb68388c57

I just did add below configuration.

  frontend:
    default.main-menu-items: # key for configuring static main menu items
      menuItems:
        default.my-plugin:  
          priority: 10  
          parent: favorites  
          title: My Plugin
        default.favorites:  
          icon: favorite  
          title: Favorites   
          priority: 100  
        default.my-custom-item: # Must use 'default.' prefix
          title: My Custom Page
          icon: star
          to: "/my-custom-page"
          priority: 85
        default.my-menu-group: # Parent menu group
          title: My Tools
          icon: folder
          priority: 75
        default.nested-item: # Child menu item
          title: Nested Tool
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item9: # Child menu item
          title: Nested Tool2
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item8: # Child menu item
          title: Nested Tool3
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item7: # Child menu item
          title: Nested Tool4
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10


        default.nested-item6: # Child menu item
          title: Nested Tool1
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item5: # Child menu item
          title: Nested Tool5
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item4: # Child menu item
          title: Nested Tool6
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item3: # Child menu item
          title: Nested Tool7
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item2: # Child menu item
          title: Nested Tool8
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10
        default.nested-item1: # Child menu item
          title: Nested Tool9
          icon: extension
          to: /nested-tool
          # parent: my-menu-group
          priority: 10

its-mitesh-kumar avatar Sep 03 '25 03:09 its-mitesh-kumar

@its-mitesh-kumar I configured the nav items as you suggested, but it's still not reproducible.

https://github.com/user-attachments/assets/011816f1-5ab6-46bf-bde0-c0d4c80dcb0a

Lucifergene avatar Sep 03 '25 04:09 Lucifergene

@Lucifergene I tested it locally and observed the same behavior. The side scrollbar only becomes visible when scrolling, but it's not shown initially. I've attached a recording for your reference.

https://github.com/user-attachments/assets/4ded83e2-491d-48b6-9f4f-fa9d9f85ebf8

HusneShabbir avatar Sep 03 '25 11:09 HusneShabbir

The issue has been identified. Its dependant on the scrollbar settings in Mac.

Doing further tests on this.

Lucifergene avatar Sep 05 '25 06:09 Lucifergene

@its-mitesh-kumar Updated the scrollbar implementation to give the same feel across all OS and browsers. PTAL.

Lucifergene avatar Sep 07 '25 09:09 Lucifergene

/lgtm Tested Locally, Works as expected

HusneShabbir avatar Sep 07 '25 18:09 HusneShabbir

/retest

invincibleJai avatar Sep 08 '25 05:09 invincibleJai

@HusneShabbir @Lucifergene is two lines above Administration visible to you too? Screenshot 2025-09-08 at 12 24 24 PM On main branch with same config, I am able to see like below. Screenshot 2025-09-08 at 12 32 03 PM

@ShiranHi does this look good to you ?

its-mitesh-kumar avatar Sep 08 '25 06:09 its-mitesh-kumar

@its-mitesh-kumar Its because you have put the nav items in the top section. So you see both the lines together.

Lucifergene avatar Sep 08 '25 07:09 Lucifergene

@ShiranHi does this look good to you ?

We don't include a borderline after the last item "Nested tool9".

ShiranHi avatar Sep 08 '25 08:09 ShiranHi

@ShiranHi I think the existence of the borderline after NestedTool 9, is not related to this fix. We can have a different bug opened for that.

Lucifergene avatar Sep 08 '25 09:09 Lucifergene

/retest-required

its-mitesh-kumar avatar Sep 10 '25 04:09 its-mitesh-kumar

/retest-required

Lucifergene avatar Sep 10 '25 07:09 Lucifergene

/approve

debsmita1 avatar Sep 10 '25 07:09 debsmita1

/retest

christoph-jerolimov avatar Sep 10 '25 09:09 christoph-jerolimov

/retest /hold

Sorry, but i like to hold this back and take a deeper look. Will setup a call.

christoph-jerolimov avatar Sep 10 '25 23:09 christoph-jerolimov

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days.

github-actions[bot] avatar Sep 18 '25 02:09 github-actions[bot]

/remove-stale

Lucifergene avatar Oct 07 '25 14:10 Lucifergene

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days.

github-actions[bot] avatar Oct 15 '25 02:10 github-actions[bot]

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days.

github-actions[bot] avatar Oct 31 '25 02:10 github-actions[bot]

/retest

Lucifergene avatar Oct 31 '25 13:10 Lucifergene

Not stale, work going on

Lucifergene avatar Nov 03 '25 08:11 Lucifergene