From 26c72ed7ca737ba274c27e92f5678ba74dcf2b59 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Fri, 27 Nov 2026 13:41:45 +0000 Subject: [PATCH] fix(ui): polish mobile tables, popovers, PageTabBar callers, and settings (#23048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Operators use the board UI on mobile viewports (`390x844`) to inspect routines, members, costs, projects, dashboards, skills, and settings > - Wide tables overflowed the page horizontally, several `PageTabBar` callers omitted `value`/`onValueChange` (breaking their mobile section dropdowns), `w-96` popovers and floating save bars clipped or overlapped the bottom nav, and key controls were hover-only or cramped on narrow screens > - Mobile operators could not scroll clipped columns, switch sections, switch diff files, or tap hidden row actions on phones > - This pull request constrains table scrollers and flex/grid ancestors, wires all missing `PageTabBar` mobile callbacks, caps wide popovers and floating save bars using existing viewport tokens, polishes narrow layouts across collections and settings, and adds 390×844 Storybook views and Vitest regressions > - The benefit is clean mobile layout without horizontal page overflow and working touch controls across tables, tabs, popovers, dashboards, and settings ## Linked Issues or Issue Description Related mobile responsiveness PRs: #23045, #23046, #23047. **What happened?** On mobile viewports (`< 768px`, tested at `390x844`): - Wide tables in Routines, Members, Costs, Connections, and tool profile views caused horizontal page overflow or permanently clipped columns (`overflow-hidden`). - `AuditHub`, `Costs` (Providers/Billers), `Approvals`, `Inbox`, and `LegacyInbox` omitted `value` and/or `onValueChange` on `PageTabBar`, bypassing its mobile `` (`md:hidden`) in the `CompanySkills.tsx` version diff dialog and lifted its floating save bar above `MobileBottomNav` (`bottom-20 md:bottom-6 max-w-(--sz-calc-4) flex-wrap`). - **Touch visibility & responsive layout polish**: - Switched `ProjectDetail.tsx` task lists to `toolbarPresentation="collection"` so the toolbar wraps cleanly on `< sm`, and added `flex-wrap` to its left-membership notice banner. - Made the `Agents.tsx` inline row `Chat` button touch-visible via `pointer-coarse:opacity-100`. - Exposed mobile parent-child nesting toggle and row expand chevrons in `Inbox.tsx` and `LegacyInbox.tsx`. - Stacked `Dashboard.tsx` chart cards to `grid-cols-1 sm:grid-cols-2` and aligned the 2×2 summary metric cards with `auto-rows-fr items-stretch`. - Added responsive wrapping and width caps in `CompanySettings.tsx`, `Secrets.tsx`, `SkillStudio.tsx`, `GrokBotSetupContent.tsx`, and `ActionTestDialog.tsx`. - **Storybook & Vitest coverage**: - Added 390×844 mobile Storybook views for Routines (`RoutinesListMobile`, `RoutineDetailMobile`), Members (`MembersMobile`), Costs (`CostsMobile`), ProjectDetail (`ProjectDetailMobile`), CompanySettings (`CompanySettingsMobile`), and Dashboard (`DashboardMobile`). - Added `ui/src/pages/mobile-collections-responsive.test.tsx`. ## Verification - `pnpm exec vitest run ui/src/pages/mobile-collections-responsive.test.tsx ui/src/pages/CompanyAccess.test.tsx ui/src/pages/Dashboard.test.ts` — 3 files, 35/35 passed - `pnpm --filter @paperclipai/ui typecheck` — passed (0 errors) - `pnpm check:token-gates` — all 4 gates CLEAN + cliplab character in sync - `node scripts/storybook-catalog.mjs --check` — passed (373 files, 3494 stories) - `node --test scripts/check-maps.test.mjs scripts/storybook-catalog.test.mjs scripts/storybook-feature-index.test.mjs` — 30/30 passed ## Risks - Low risk: layout-only responsive class updates, missing prop wiring on `PageTabBar` callers, and additive mobile Storybook stories/tests. Desktop breakpoints (`sm:` / `md:` / `lg:` / `xl:`) preserve existing layouts. - Several edited pages (`CompanySkills.tsx`, `Inbox.tsx`, `LegacyInbox.tsx`, `Secrets.tsx`, `SkillStudio.tsx`, `Costs.tsx`, `ProfilesTab.tsx`, `RoutineHistoryTab.tsx`, `ActionTestDialog.tsx`) were already over 1,000 lines on `master`; this PR keeps edits minimal and localized without introducing new subsystems into those files. ## Model Used - Google Gemini 4 Neon (High) via Antigravity (tool use, code execution, multi-agent code review) ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip --- ui/src/components/CostByUserTable.tsx | 6 +- ui/src/components/RoutineHistoryTab.tsx | 46 +- ui/src/components/RoutineTable.tsx | 2 +- ui/src/components/RoutineVariablesEditor.tsx | 2 +- .../components/WorkspaceServiceControlBar.tsx | 4 +- .../new-agent/GrokBotSetupContent.tsx | 2 +- .../components/routine-page/RoutinePage.tsx | 4 +- ui/src/pages/AgentToolsTab.tsx | 8 +- ui/src/pages/Agents.tsx | 2 +- ui/src/pages/Approvals.tsx | 26 +- ui/src/pages/CompanyAccess.tsx | 12 +- ui/src/pages/CompanySettings.tsx | 4 +- ui/src/pages/CompanySkills.tsx | 27 +- ui/src/pages/Costs.tsx | 36 +- ui/src/pages/Dashboard.tsx | 4 +- ui/src/pages/Inbox.tsx | 9 +- ui/src/pages/LegacyInbox.tsx | 9 +- ui/src/pages/ProfileSettings.tsx | 20 +- ui/src/pages/ProjectDetail.tsx | 4 +- ui/src/pages/Routines.tsx | 13 +- ui/src/pages/Secrets.tsx | 2 +- ui/src/pages/SkillStudio.tsx | 4 +- ui/src/pages/apps/Connections.tsx | 2 +- .../apps/app-detail/ActionTestDialog.tsx | 8 +- ui/src/pages/audit/AuditHub.tsx | 17 +- .../mobile-collections-responsive.test.tsx | 521 ++++++++++++++++++ ui/src/pages/tools/ProfilesTab.tsx | 8 +- ui/src/pages/tools/SmokeLabTab.tsx | 6 +- ui/src/pages/tools/profiles/ProfileDetail.tsx | 4 +- ui/src/pages/tools/profiles/ProfilesIndex.tsx | 4 +- .../stories/access/membership.stories.tsx | 43 ++ .../06-full-product-pages.stories.tsx | 24 +- .../activity/dashboard-mobile.stories.tsx | 71 +++ .../costs/subscriptions.stories.tsx | 53 +- .../observability/03-journey.stories.tsx | 14 + .../routines/routine-page-routed.stories.tsx | 51 +- 36 files changed, 940 insertions(+), 132 deletions(-) create mode 100644 ui/src/pages/mobile-collections-responsive.test.tsx create mode 100644 ui/storybook/stories/activity/dashboard-mobile.stories.tsx diff --git a/ui/src/components/CostByUserTable.tsx b/ui/src/components/CostByUserTable.tsx index 2c8b6be849c..980b6d8cffd 100644 --- a/ui/src/components/CostByUserTable.tsx +++ b/ui/src/components/CostByUserTable.tsx @@ -6,12 +6,12 @@ import { formatTokens } from "../lib/utils"; export function CostByUserTable({ report }: { report: CostByUserReport }) { return ( - + By user - -
+ +
diff --git a/ui/src/components/RoutineHistoryTab.tsx b/ui/src/components/RoutineHistoryTab.tsx index fe14040a3f1..0383b061816 100644 --- a/ui/src/components/RoutineHistoryTab.tsx +++ b/ui/src/components/RoutineHistoryTab.tsx @@ -847,28 +847,30 @@ function RoutineRevisionDiffModal({ {fieldChanges.length === 0 ? (

No structural field changes.

) : ( -
- - - - - - - - - {fieldChanges.map((change) => ( - - - - +
+
FieldOld valueNew value
{change.field} - {change.oldValue ?? "—"} - - {change.newValue ?? "—"} -
+ + + + + - ))} - -
FieldOld valueNew value
+ + + {fieldChanges.map((change) => ( + + {change.field} + + {change.oldValue ?? "—"} + + + {change.newValue ?? "—"} + + + ))} + + +
)}
@@ -951,7 +953,7 @@ function DiffTable({ rows }: { rows: DiffRow[] }) { added: "+", }; return ( -
+
Old New diff --git a/ui/src/components/RoutineTable.tsx b/ui/src/components/RoutineTable.tsx index 101971d7ddb..32d752adac0 100644 --- a/ui/src/components/RoutineTable.tsx +++ b/ui/src/components/RoutineTable.tsx @@ -6,7 +6,7 @@ export function routineColumnGrid(columns: RoutineColumn[], selectMode = false) return [selectMode ? "var(--routine-select-width)" : null, "minmax(var(--routine-title-min), 1fr)", ...columns.map(column => `var(--routine-column-${column})`), "var(--routine-actions-width)"].filter(Boolean).join(" "); } export function RoutineTable({ columns, children, label, selectMode = false }: { columns: RoutineColumn[]; children: ReactNode; label: string; selectMode?: boolean }) { - return
+ return
{selectMode ? Select : null} Routine diff --git a/ui/src/components/RoutineVariablesEditor.tsx b/ui/src/components/RoutineVariablesEditor.tsx index db9c693bfcb..e12e98398f9 100644 --- a/ui/src/components/RoutineVariablesEditor.tsx +++ b/ui/src/components/RoutineVariablesEditor.tsx @@ -477,7 +477,7 @@ export function RoutineVariablesHint() { These are filled in automatically — no setup needed and they will not appear in the Variables list.

-
+
diff --git a/ui/src/components/WorkspaceServiceControlBar.tsx b/ui/src/components/WorkspaceServiceControlBar.tsx index 1d6bdd5dc86..65b28ca6017 100644 --- a/ui/src/components/WorkspaceServiceControlBar.tsx +++ b/ui/src/components/WorkspaceServiceControlBar.tsx @@ -462,7 +462,7 @@ function MultiServiceBar({ - event.preventDefault()}> + event.preventDefault()}>
Services · {services.length}
@@ -471,7 +471,7 @@ function MultiServiceBar({ ))} -
+
diff --git a/ui/src/components/new-agent/GrokBotSetupContent.tsx b/ui/src/components/new-agent/GrokBotSetupContent.tsx index ddd359da38d..7c6d7576a60 100644 --- a/ui/src/components/new-agent/GrokBotSetupContent.tsx +++ b/ui/src/components/new-agent/GrokBotSetupContent.tsx @@ -45,7 +45,7 @@ export function GrokBotSetupContent(p: GrokBotSetupContentProps) { {ready ? "Your Grok Bot is connected" : "Connect your Grok Bot"} {ready ? `${p.details.botName} can receive assignments and work with ${p.companyName}.` : `Bring an existing Bot into ${p.companyName}. It continues to run in Grok Bot.`}
-
    +
      {steps.map((label, index) =>
    1. {index + 1}. {label}
    2. )}
    {p.error &&

    {p.error}

    } diff --git a/ui/src/components/routine-page/RoutinePage.tsx b/ui/src/components/routine-page/RoutinePage.tsx index 22e5badc87d..0f7b2f360af 100644 --- a/ui/src/components/routine-page/RoutinePage.tsx +++ b/ui/src/components/routine-page/RoutinePage.tsx @@ -180,10 +180,10 @@ function ScheduleRow({ {/* Wider when Pause/Resume joins Remove and Save, so the footer stays on one row. */} - +

    Times are in {timezone}.

    -
    +
+
+
@@ -656,6 +657,7 @@ export function AgentToolsTab({ agent, companyId }: { agent: AgentDetailRecord; ))}
Tool
+
)}
diff --git a/ui/src/pages/Agents.tsx b/ui/src/pages/Agents.tsx index 068f0856802..3fa2836b361 100644 --- a/ui/src/pages/Agents.tsx +++ b/ui/src/pages/Agents.tsx @@ -478,7 +478,7 @@ export function Agents({ initialView = "list" }: { initialView?: AgentsView } =