Update viewport store to support more breakpoints
What does this MR do and why?
This is part of a bigger effort to implement a file tree browser (FTB) in the repository. This MR:
- adds three more specific categories: "compact" (phones), "intermediate" (tablets), and "wide" (desktops). previously, it only had a simple "narrow vs wide"
- update to hide FTB in compact breakpoint
References
Implementation Plan
TLDR, the only visible change in this MR is FTB does show on md breakpoint
| Task | MR |
|---|---|
| Add toggle component | |
|
Hide toggle on narrow screens (<lg) |
|
|
Add logic to support Update the logic to only hide FTB for |
|
|
Update the logic to default expand/collapsed state for Add logic to show FTB in a modal (e.g. on top of the page) for Update to include hover logic for |
follow up |
Screenshots or screen recordings
CleanShot 2025-09-04 at 17.57.26.mp4
How to set up and validate locally
- Enable the
repository_file_tree_browserflag - Navigate to either the repository blob viewer or tree list
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #541102 (closed)