Sidebar/library UI polish: docs links, auth in project switcher, list-view default, scrollable sheet body#281
Merged
Conversation
…le sheet body - Add a "Documentation" link to the sidebar footer, opening /docs in a new tab. - Add sign-in/sign-out to the project switcher dropdown, reusing the existing (optional) NextAuth GitHub auth stack with the same graceful-absence gating as AuthButton. - Add a "Read the doc" link below the home page's main CTA. - Default library subpages to the list (table) view instead of grid. - Add a SheetBody primitive with overflow-y-auto and use it in NodeDetailPanel so long node detail content scrolls instead of being clipped, while the header stays fixed. Closes #279 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADbrk5hPzaku7vSZbrxr6E
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The Button asChild wraps an inline-flex <a>, so the sibling Link needed block instead of inline-block to actually start a new line under it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADbrk5hPzaku7vSZbrxr6E
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.
Summary
components/layout/ProjectSidebar.tsx), opening/docsin a new tab.components/layout/ProjectSwitcher.tsx), reusing the existing (optional) NextAuth GitHub auth stack — gated the same wayAuthButtonis (hidden while loading or unconfigured).app/page.tsx).app/project/[id]/library/page.tsx).SheetBodyprimitive (overflow-y-auto) tocomponents/ui/sheet.tsxand use it inNodeDetailPanelso long node-detail content scrolls instead of being clipped, while the header stays fixed.Closes #279
Test plan
npm run lint— clean (only pre-existing, unrelated warnings)npx tsc --noEmit— cleannpm run build— succeeds/docsin a new tabAuthButton's existing graceful-absence behavior)Lab Note
Generated by Claude Code