Deduplicate hand-rolled inputCls into the shared settings primitive #116
Labels
No labels
bug
duplicate
enhancement
future
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/TeaLeaves#116
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Nit · Confidence: High · Effort: XS · Category: ui (consistency)
Evidence
app/src/components/settings/primitives.tsx:11-12- canonicalinputCls, re-declared inapp/src/components/BackupPanel.tsx:54-55,app/src/pages/Profile/ProfilePage.tsx:40-41(usesrounded-lgvs the primitive'srounded-md),app/src/pages/RemoteProjects/RemoteProjectDetailPage.tsx:17-18,app/src/pages/Admin/AdminPage.tsx:264.Problem
Four hand-rolled near-copies of the shared input style; already drifting (Profile uses a different radius).
Impact
A future palette/radius change to the shared input silently won't apply to Backup/Profile/RemoteProjects/Admin.
Fix
Export
inputClsfromprimitives.tsxand import it in all four.Acceptance criteria
Filed from the 2026-07-15 codebase audit. Full report:
docs/.internal/report-2026-07-15.md(gitignored).The four hand-rolled copies of the settings
inputCls(one already drifting on radius) now import the single canonical one fromcomponents/settings/primitives.tsx.Shipped in
59e4fdd(test fix6561f9a), part of the v7.3.0 milestone. Verified on dev (v7.2.1-3-g6561f9a): app suite 65/65 and api suite 268/268 green on the dev server; the one CI red was the known runner flake (iac#159), not this change.