Skip to content

Fix portal chrome: GRIDGO mark, header divider, workspace width - #16

Merged
rqms40 merged 1 commit into
mainfrom
fm/gridgo-web-shell-ui
Aug 13, 2026
Merged

rqms40 merged 1 commit into
mainfrom
fm/gridgo-web-shell-ui

Conversation

@rqms40

@rqms40 rqms40 commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Logo is the landing 3×3 mark (src/components/ui/Logo.tsx): top-right --color-brand-logo, bottom-right --color-brand-logo-muted (#5B5B5B), other seven currentColor so they invert with --foreground. Wordmark stays Satoshi. Compact rail = mark only.
  • Header divider uses SidebarInset + a full-height Separator (self-stretch). Rail header and page header are both h-16 with a matching bottom border — not a 24px tick.
  • Nested breadcrumbs (/ops/qa/[id], etc.): parent is a same-tab Next.js Link with a “Back to …” tooltip. Current title is a BreadcrumbPage, not a link.
  • Detail width: dropped max-w-3xl on QA, payment review, supplier job, and operational settings. Cards sit in a growing xl:grid-cols-2. Prose helpers keep max-w-prose.

Critique (cut / kept)

  • Cut the short h-6 separator, the leftover 10px-dot limitation, the duplicate visible h1 on nested pages (breadcrumb page is the title; h1 is screen-reader only), and the left-pinned max-w-3xl column.
  • Yellow stays on the mark’s top-right dot and the existing one-per-surface primary / rail-active rule. --primary is still monochrome.
  • No new typeface. No space-x-*. No new brand.

Verify

  • npm run typecheck, lint, test (169), build clean.
  • Browser (own port 3047): login lockup in light, dark, and narrow. Authenticated Super Admin overview / Ops QA workspace need the API on 8787, which was not running and was not started (reserved). Divider, breadcrumb click, and workspace width are covered by AppShell / Logo tests.

Summary by CodeRabbit

  • New Features
    • Updated the compact sidebar logo with a distinctive 3×3 grid mark and refined brand colors.
    • Added a streamlined shell header with navigation controls, responsive breadcrumbs, page titles, and account access.
  • Usability Improvements
    • Improved responsive layouts across payment reviews, QA workspaces, supplier jobs, and operational settings.
    • Expanded content areas and introduced two-column layouts on larger screens for easier information scanning.

…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.
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

Shell branding and responsive layout

Layer / File(s) Summary
3×3 brand mark
src/components/ui/Logo.tsx, src/app/globals.css, src/components/ui/__tests__/Logo.test.tsx, AGENTS.md
Logo now renders a configurable 3×3 SVG mark with foreground, brand-yellow, and muted-brand colors. Tests and guidance describe the compact mark.
Application shell header and navigation
src/components/shell/AppShell.tsx, src/components/shell/__tests__/AppShell.test.tsx
The shell uses SidebarInset, a fixed-height sticky header, responsive nested breadcrumbs, tooltip labels, and an aligned account menu.
Full-width operational layouts
src/app/ops/payments/[id]/page.tsx, src/app/ops/qa/[id]/page.tsx, src/app/supplier/jobs/[id]/page.tsx, src/components/settings/OperationalSettings.tsx
The affected pages use full-width containers and responsive two-column grids at extra-large widths. Timelines remain outside the detail grids.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Mergeability Score: 🟡 Moderate · up to e8ae7

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes to the portal chrome, including the GRIDGO mark, header divider, and workspace width.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fm/gridgo-web-shell-ui

Comment @coderabbitai help to get the list of available commands.

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 37cc6a6 and e8ae798.

📒 Files selected for processing (10)
  • AGENTS.md
  • src/app/globals.css
  • src/app/ops/payments/[id]/page.tsx
  • src/app/ops/qa/[id]/page.tsx
  • src/app/supplier/jobs/[id]/page.tsx
  • src/components/settings/OperationalSettings.tsx
  • src/components/shell/AppShell.tsx
  • src/components/shell/__tests__/AppShell.test.tsx
  • src/components/ui/Logo.tsx
  • src/components/ui/__tests__/Logo.test.tsx

Comment thread src/app/globals.css
Comment on lines +86 to +87
/* Bottom-right dot of the 3×3 mark — landing favicon, not a UI fill */
--color-brand-logo-muted: #5b5b5b;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 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

Comment on lines 131 to +133
<SidebarMenuButton
size="lg"
className="[&_svg]:size-6 group-data-[collapsible=icon]:size-11!"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 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: add aria-label="GRIDGO home" to SidebarMenuButton.
  • src/components/ui/Logo.tsx#L15-L18: add role="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 name GRIDGO 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.

Suggested change
<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"
>
Suggested change
<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-L18
  • src/components/ui/__tests__/Logo.test.tsx#L43-L48
  • src/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

@rqms40
rqms40 merged commit a566d4f into main Aug 13, 2026
7 checks passed
@rqms40
rqms40 deleted the fm/gridgo-web-shell-ui branch August 13, 2026 03:19
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