Skip to content

ENG-1819: Make global left sidebar fold toggle personal#1200

Open
sid597 wants to merge 2 commits into
mainfrom
eng-1819-global-left-sidebar-fold-toggle
Open

ENG-1819: Make global left sidebar fold toggle personal#1200
sid597 wants to merge 2 commits into
mainfrom
eng-1819-global-left-sidebar-fold-toggle

Conversation

@sid597

@sid597 sid597 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Fold state of the GLOBAL sidebar section moves from the shared global setting to a per-user personal setting (PERSONAL_KEYS.globalSectionFolded, legacy dual-write via a {userUid}/Global-Section-Folded marker block, following the {userUid}/Personal-Section naming). The admin Collapsable flag is removed: the section is now always foldable, per user.

Supersedes the earlier eng-1819 branch (d51649d), reconciled onto current main; the old remote branch was replaced by this one.

Fixes ENG-1819


Open in Devin Review

Fold state moves from the shared global setting to a per-user personal
setting (PERSONAL_KEYS.globalSectionFolded, legacy dual-write via a
{userUid}/Global-Section-Folded marker block). The admin Collapsable
flag is removed: the global section is now always foldable per user.
Based on prior branch commit d51649d reconciled onto current main.
@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

ENG-1819

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
discourse-graph Skipped Skipped Jul 6, 2026 8:26am

Request Review

@graphite-app

graphite-app Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

PR size/scope check

This PR is over our review-size guideline.

  • Recommended: ~200 lines changed
  • Acceptable limit: up to 400 lines when well-scoped/self-contained
  • Preferred file count: fewer than 5 files

Please split this into smaller PRs unless there is a clear reason the changes need to land together.

If keeping it as one PR, please add a brief justification covering:

  • What single problem this PR solves
  • Why the files/changes are coupled

@supabase

supabase Bot commented Jul 6, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Comment thread apps/roam/src/components/LeftSidebarView.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c031c3c9cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/roam/src/utils/getLeftSidebarSettings.ts Outdated
Review follow-up: roamAlphaAPI.user.uid() is typed string | null. With
no uid the fold toggle is now session-only instead of reading/writing
a marker block that every uid-less user would share.
@sid597

sid597 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

Null-uid finding addressed in efcb1d6: roamAlphaAPI.user.uid() is typed string | null, so with no uid the toggle is now session-only (no marker read/write) instead of falling back to a shared "/Global-Section-Folded" marker. Note the pre-existing personal-sections code (getLeftSidebarSettings.ts, targetUserUid + "/Personal-Section") has the same degenerate case and isn't touched here.

On migrating the old Global-Section > Settings > Folded state: deliberately not done. Per Michael on ENG-1819 the fold feature hasn't shipped in a release, so the old state only exists in dev graphs; the cost is a one-time default-open until re-toggled. Adding a permanent legacy fallback read for unreleased shared state (which shouldn't seed per-user prefs anyway) didn't seem worth it — happy to add if you disagree.

@sid597

sid597 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

No video because we need more than one user to test this out, we have removed the collapsable setting from the global panel. Now user can close and open directly from in the left sidebar just as the other personal left sidebar panels they have

@sid597 sid597 requested a review from mdroidian July 6, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant