✨(frontend) show the user's workspaces in the sidebar#765
Open
maartendra wants to merge 1 commit into
Open
Conversation
The sidebar tree seeded only the Favorites node, so a user's workspaces — the personal main workspace and any shared/team drive — never appeared as top-level entries (only inside the My files / Shared with me content views). Seed the tree with the root items too, so each workspace is a first-class, lazily-expandable sidebar entry (the main workspace already renders as "Espace de stockage" via getItemTitle). Matches docs/assets/Drive_screenshot.png.
|
kernicPanel
requested review from
NathanVss,
arnaud-robin and
robin-lecomte
and removed request for
arnaud-robin and
robin-lecomte
July 8, 2026 05:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Purpose
The sidebar tree is seeded with the Favorites node only (
resetTree([favoritesNode])), even though its own comment says "root items (aka workspaces)". As a result a user's workspaces never appear as sidebar entries — the personal main workspace and any shared/team drive are only reachable inside the My files / Shared with me content views. This also matches the sidebar indocs/assets/Drive_screenshot.png("Espace de stockage"), which the current build doesn't render.What changes
Seed the sidebar tree with the user's root items in addition to Favorites — each becomes a first-class, lazily-expandable entry through the existing
onLoadChildrenhandler. The personal main workspace already renders as "Espace de stockage" viagetItemTitle. No new components or endpoints.Result
Notes
This touches a design-led area — happy to align with your Figma and adjust ordering, grouping, or styling. Opening it as a concrete, working starting point rather than a spec.
Context: deploying Drive as the "drive" pillar of email.eu, a sovereign EU business workspace.