Repository navigation
Fix portal chrome: GRIDGO mark, header divider, workspace width - #16
Conversation
…workspaces Replace the single yellow dot with the landing 3×3 grid, line the rail identity row up with the page header, and let detail workspaces fill the padded main instead of a left-pinned max-w-3xl column.
📝 WalkthroughWalkthroughThe change replaces the compact logo placeholder with a themed 3×3 grid mark, updates the application shell header and breadcrumbs, and expands payment, QA, supplier, and settings layouts to use full-width responsive grids. ChangesShell branding and responsive layout
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: 🟡 Moderate · up to The collapsed navigation home control may be unidentified to screen-reader users, making the updated shell not fully merge-ready until its accessible name is fixed; the new hard-coded gray color is a smaller guideline follow-up. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/app/globals.css`:
- Around line 86-87: The new --color-brand-logo-muted token must not introduce a
standalone hex value. Reuse the matching existing mobile-source token, or define
the token in the mobile source of truth first and reference it here.
In `@src/components/shell/AppShell.tsx`:
- Around line 131-133: Update src/components/shell/AppShell.tsx lines 131-133 by
adding aria-label="GRIDGO home" to SidebarMenuButton. In
src/components/ui/Logo.tsx lines 15-18, add role="img" to the labeled logo
container. Extend src/components/ui/__tests__/Logo.test.tsx lines 43-48 to
assert the image role and conditional wordmark text, and update
src/components/shell/__tests__/AppShell.test.tsx lines 73-77 to assert the
collapsed home link is named "GRIDGO home".
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 02468fa2-ef1b-444d-bbee-9df43d5ef97a
📒 Files selected for processing (10)
AGENTS.mdsrc/app/globals.csssrc/app/ops/payments/[id]/page.tsxsrc/app/ops/qa/[id]/page.tsxsrc/app/supplier/jobs/[id]/page.tsxsrc/components/settings/OperationalSettings.tsxsrc/components/shell/AppShell.tsxsrc/components/shell/__tests__/AppShell.test.tsxsrc/components/ui/Logo.tsxsrc/components/ui/__tests__/Logo.test.tsx
| /* Bottom-right dot of the 3×3 mark — landing favicon, not a UI fill */ | ||
| --color-brand-logo-muted: #5b5b5b; |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Do not add a new hex value.
Line 87 adds #5b5b5b. Reuse an existing mobile-source token, or add the token through the mobile source of truth first.
As per coding guidelines, “No new hex values. Add tokens only if they exist in the mobile source of truth.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/app/globals.css` around lines 86 - 87, The new --color-brand-logo-muted
token must not introduce a standalone hex value. Reuse the matching existing
mobile-source token, or define the token in the mobile source of truth first and
reference it here.
Source: Coding guidelines
| <SidebarMenuButton | ||
| size="lg" | ||
| className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!" |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Give the collapsed home link an accessible name.
The compact logo has no text. Its aria-label is on a generic div, so it does not reliably name the parent link. Set the name on SidebarMenuButton and give the standalone logo image semantics.
src/components/shell/AppShell.tsx#L131-L133: addaria-label="GRIDGO home"toSidebarMenuButton.src/components/ui/Logo.tsx#L15-L18: addrole="img"to the labeled logo container.src/components/ui/__tests__/Logo.test.tsx#L43-L48: assert the logo image role and the conditional wordmark text.src/components/shell/__tests__/AppShell.test.tsx#L73-L77: assert that the collapsed home link has the nameGRIDGO home.
As per coding guidelines, Logo in SidebarHeader “doubles as the home control.”
Proposed fix
--- src/components/ui/Logo.tsx
+++ src/components/ui/Logo.tsx
- <div className={cn("flex items-center gap-2", className)} aria-label="GRIDGO">
+ <div
+ className={cn("flex items-center gap-2", className)}
+ role="img"
+ aria-label="GRIDGO"
+ >
--- src/components/shell/AppShell.tsx
+++ src/components/shell/AppShell.tsx
<SidebarMenuButton
size="lg"
className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!"
+ aria-label="GRIDGO home"
render={<Link href={homeForRole(role)} />}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <SidebarMenuButton | |
| size="lg" | |
| className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!" | |
| <div | |
| className={cn("flex items-center gap-2", className)} | |
| role="img" | |
| aria-label="GRIDGO" | |
| > |
| <SidebarMenuButton | |
| size="lg" | |
| className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!" | |
| <SidebarMenuButton | |
| size="lg" | |
| className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!" | |
| aria-label="GRIDGO home" |
📍 Affects 4 files
src/components/shell/AppShell.tsx#L131-L133(this comment)src/components/ui/Logo.tsx#L15-L18src/components/ui/__tests__/Logo.test.tsx#L43-L48src/components/shell/__tests__/AppShell.test.tsx#L73-L77
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/components/shell/AppShell.tsx` around lines 131 - 133, Update
src/components/shell/AppShell.tsx lines 131-133 by adding aria-label="GRIDGO
home" to SidebarMenuButton. In src/components/ui/Logo.tsx lines 15-18, add
role="img" to the labeled logo container. Extend
src/components/ui/__tests__/Logo.test.tsx lines 43-48 to assert the image role
and conditional wordmark text, and update
src/components/shell/__tests__/AppShell.test.tsx lines 73-77 to assert the
collapsed home link is named "GRIDGO home".
Source: Coding guidelines
Why
Captain screenshots: the rail identity row and the page header do not share a height, so the vertical divider between “GRIDGO / Super Admin” and “Platform overview” looks broken. The logo was a single yellow circle, not the GRIDGO grid. QA (and other) workspaces were pinned to
max-w-3xl, leaving a dead gutter on the right.What changed
src/components/ui/Logo.tsx): top-right--color-brand-logo, bottom-right--color-brand-logo-muted(#5B5B5B), other sevencurrentColorso they invert with--foreground. Wordmark stays Satoshi. Compact rail = mark only.SidebarInset+ a full-heightSeparator(self-stretch). Rail header and page header are bothh-16with a matching bottom border — not a 24px tick./ops/qa/[id], etc.): parent is a same-tab Next.jsLinkwith a “Back to …” tooltip. Current title is aBreadcrumbPage, not a link.max-w-3xlon QA, payment review, supplier job, and operational settings. Cards sit in a growingxl:grid-cols-2. Prose helpers keepmax-w-prose.Critique (cut / kept)
h-6separator, the leftover 10px-dot limitation, the duplicate visibleh1on nested pages (breadcrumb page is the title;h1is screen-reader only), and the left-pinnedmax-w-3xlcolumn.primary/ rail-active rule.--primaryis still monochrome.space-x-*. No new brand.Verify
npm run typecheck,lint,test(169),buildclean.AppShell/Logotests.Summary by CodeRabbit