feat(app): pin projects to the top of the sidebar#21382
feat(app): pin projects to the top of the sidebar#21382Gabriel-Kahen wants to merge 2 commits intoanomalyco:devfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs FoundThe following PRs are related to project pinning features in the sidebar and may be duplicates:
Please check these PRs (especially #17999) to verify if PR #21382 is addressing the same feature or if there are conflicting changes. |
Issue for this PR
Closes #
Type of change
What does this PR do?
This adds project pinning to the left sidebar so frequently used projects stay anchored above the rest of the open project list. The pin state is persisted with the existing stored sidebar project state, the rail now keeps pinned projects grouped first, and both the collapsed rail menu and expanded project menu expose matching pin and unpin actions.
The UI changes are intentionally small so they fit the current sidebar: pinned projects get a subtle pin badge in the rail and a divider appears between pinned and unpinned groups. Dragging still works within each group, and cross-group dragging is blocked so the pinned section remains stable unless the user explicitly pins or unpins a project.
How did you verify your code works?
I checked the failing CI typecheck log and fixed the
pinnedproperty being dropped inpackages/app/src/context/layout.tsxduring project enrichment. I could not run local Bun-based checks in this environment becausebunis not installed on the machine path here.Screenshots / recordings
UI change in the left sidebar:
Checklist