Skip to content

feat(web): enlarge project avatars in the sidebar - #827

Merged
pikann merged 3 commits into
Paca-AI:masterfrom
robertcoroianu:feat/sidebar-project-avatar-size
Nov 25, 2026
Merged

pikann merged 3 commits into
Paca-AI:masterfrom
robertcoroianu:feat/sidebar-project-avatar-size

Conversation

@robertcoroianu

@robertcoroianu robertcoroianu commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Project avatars in the sidebar (current-project button and the "Your Projects" dropdown rows) go from 20px to 24px so the initials are easier to read.
  • The folder fallback icon for a project without an avatar grows from size-3 to size-3.5 so it keeps the same proportion in the larger avatar (as fix(web): keep avatar initials inside avatars and enlarge them #826 did for its fallbacks).
  • Fixes the flaky GitSettings test that failed this PR's CI: the repository browser dialog was rendered next to the link dialog instead of inside it, so an early Escape could close both and lose the link form. It is now nested, so Escape closes only the browser.

Pairs with #826, which fixes initials spilling out of small avatars; this PR is independent of it.

Test plan

  • tsc and Biome clean
  • GitSettings.test.tsx passes repeatedly (it failed 2 of 3 runs before the fix)
  • Check the project switcher in the browser (button and dropdown rows, with and without a project avatar)
  • In project settings → Git, open "Link a repository" → "Browse repositories" and press Escape: only the browser closes

🤖 Generated with Claude Code

@pullfrog pullfrog 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.

ℹ️ Minor suggestion only — nothing blocking.

Approach: sound — three direct size preset bumps reuse the shared EntityAvatar API, and no sidebar container has a fixed height, so the ~4px taller rows reflow cleanly.

Reviewed changes — read the whole 1-file / 3-hunk diff, ui/avatar.tsx, ui/dropdown-menu.tsx, and #826's diff for the paired font-size fix.

  • Header switcher states bumped to sm — the placeholder row when the current user is still loading and the DropdownMenuTrigger both move from 20px to 24px.
  • Dropdown rows bumped to sm — each "Your Projects" item avatar is 24px, matching the trigger above it.
  • Initials do not get bigger yet — the text-[10px] in the sm preset lands on the Avatar root and loses to AvatarFallback's own text-sm, so today this is a larger box around the same 14px initials; #826's FALLBACK_TEXT[size] is what turns them into 10px.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

robertcoroianu and others added 2 commits November 25, 2026 12:42
The folder mark stayed at size-3 (12px) when the avatar grew from 20px to
24px, shrinking it from 60% to 50% of the box. size-3.5 keeps the ratio,
matching how Paca-AI#826 scaled its fallback icons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The browser dialog was a sibling of the link dialog, so base-ui saw two
unrelated dialogs that each listen for Escape on the document. When Escape
landed before focus had moved into the browser, both closed and the link
form was lost. Rendering the browser inside the link dialog's content makes
base-ui treat it as nested, so Escape closes only the browser. This also
fixes the flaky "shows the platform's reason on error and keeps the form
usable" test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes — re-reviewed the two commits since the prior pullfrog review, reading both changed files plus GitRepositoryPicker.tsx, ui/dialog.tsx, the GitSettings browse tests, and base-ui's nested-dialog handling.

  • Fallback icon scaled to size-3.5 — both header EntityAvatar sites now keep the folder mark proportional inside the 24px box, matching the convention #826 uses.
  • Repository browser nested inside the link dialog — GitRepositoryBrowserDialog now renders within the link DialogContent, so base-ui registers it as a nested dialog (the pinned @base-ui/react 1.4.1 derives nesting from the React tree, independent of the portal). Escape closes only the browser, which is exactly what the previously flaky GitSettings test asserts.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann pikann 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.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit b97d503 into Paca-AI:master Nov 25, 2026
2 checks passed
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.

2 participants