Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: ui guideline (#21232)
ecmadaoe13bde394787
diff --git a/AGENTS.md b/AGENTS.mdindex 3fcd73aeb1..eb38e26bd4 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -154,6 +154,11 @@ psql -U bbdev bbdevThe product frontend is built in React. **All product UI code is React** — use the stack and component patterns below. The only Vue runtime is the isolated `pev2` adapter under `frontend/src/apps/explain-visualizer/`.+The canonical design foundations and workflow recipes are in+[`docs/agents/frontend-ux.md`](docs/agents/frontend-ux.md). New and directly+modified UI must follow it; unrelated legacy UI is governed by its incremental+baseline and must not gain new violations.+The canonical frontend ownership map is in `./frontend/AGENTS.md`. In summary:- `frontend/src/app/` owns bootstrap, layouts, and router infrastructure.diff --git a/docs/agents/frontend-ux.md b/docs/agents/frontend-ux.mdnew file mode 100644index 0000000000..69a0451b75--- /dev/null+++ b/docs/agents/frontend-ux.md@@ -0,0 +1,469 @@+# Frontend UX Guideline++This is the canonical design and composition contract for Bytebase product UI.+It applies to React code under `frontend/src/` and complements the code-style+and ownership rules in `AGENTS.md` and `frontend/AGENTS.md`.++The guideline is an incremental ratchet. New shared UI and every UI element+modified by a change must follow it. Unrelated legacy violations may remain,+but they are not examples to copy and must not increase. A checked-in scanner+baseline records that debt; it is an allowance for untouched code, not a design+alternative.++## Requirement Language++- **MUST** is required for new and directly modified UI.+- **SHOULD** is the default. Deviate only when the workflow has a concrete need+ and explain the reason in the change.+- **MAY** identifies a supported option, not a preferred default.++## Product Character++Bytebase is an operational database-development tool. Product UI MUST optimize+for repeated work, scanning, comparison, and safe action rather than marketing+composition.++- Keep information dense but organized.+- Prefer predictable navigation and persistent context.+- Make primary and destructive actions unambiguous.+- Avoid decorative cards, oversized page headings, and visual effects that do+ not communicate state or hierarchy.+- Do not put cards inside cards. A page section is an unframed layout region;+ cards are for repeated items or genuinely framed tools.++## Implementation Ownership++Use the following division of responsibility:++| Concern | Owner | Rule |+| --- | --- | --- |+| Behavior and accessibility | Base UI wrappers in `frontend/src/components/ui/` | Use the shared primitive before native controls or feature-owned interaction code. |+| Variants | CVA in the shared primitive | Add a named variant when consumers need the same visual state. |+| Repeated measurements | `frontend/src/components/ui/styles.stylex.ts` | Put stable control, form, row, and layout measurements in StyleX. |+| Contextual layout | Tailwind utilities | Use semantic, non-arbitrary utilities for local flow and responsive composition. |+| Color and theming | Tokens in `frontend/src/assets/css/tailwind.css` | Use semantic tokens; do not use raw palette colors or manual `dark:` overrides. |+| Page composition | Shared layouts and the recipes below | Do not rebuild page, form, sheet, or table frames per feature. |++Do not add a second styling framework. StyleX, Tailwind, and CVA are+complementary parts of the current system.++## Foundations++### Spacing++The product spacing vocabulary is 4, 6, 8, 12, 16, 24, and 32px.++| Relationship | Gap |+| --- | ---: |+| Icon and adjacent label | 4-6px, according to control size |+| Sibling controls and buttons | 8px |+| Form label/title and its control | 6px |+| Controls within one field | 8px |+| Related content within a section | 16px |+| Fields in a form group | 24px |+| Major page regions | 24-32px |++- MUST use `gap-*`, `gap-x-*`, or `gap-y-*` for sibling spacing.+- MUST NOT use `space-x-*` or `space-y-*`.+- MUST NOT introduce arbitrary gap values such as `gap-[10px]`.+- Page layouts use a 16px content rhythm. Use the padding variants provided by+ `WorkspacePageLayout` and `ProjectPageLayout` rather than adding competing+ outer wrappers.++### Controls++The `size` prop on shared controls selects the complete base contract.+Consumers MUST NOT override base dimensions or resize a managed icon+independently. A layout owner MAY use standard breakpoint-prefixed classes to+apply a complete responsive size contract; do not override only the height.++| Size | Height | Inline padding | Text | Icon | Internal gap |+| --- | ---: | ---: | --- | ---: | ---: |+| `xs` | 24px | 6px | 12/16px | 14px | 6px |+| `sm` | 28px | 8px | 12/16px | 16px | 6px |+| `md` | 36px | 12px | 14/20px | 16px | 8px |+| `lg` | 40px | 16px | 14/20px | 20px | 8px |++- `md` is the default for ordinary forms and commands.+- `sm` is for dense toolbars, table controls, and repeated row actions.+- `xs` is for exceptional compact surfaces, not a way to fit too many actions.+- `lg` is for prominent actions or spacious onboarding flows, not ordinary+ dashboard pages.+- Equal width and height MUST use `size-*` when a shared component does not own+ the measurement.++### Typography++| Role | Size / line height | Weight |+| --- | --- | --- |+| Caption, error, secondary row text | 12/16px | Regular |+| Body, label, control text | 14/20px | Regular or medium |+| Field title | 16/24px | Semibold |+| Dialog or sheet title | 18px | Semibold |+| Page section title | 24/32px | Bold |++- MUST use the role that matches the information hierarchy.+- MUST NOT introduce arbitrary `text-[...]` or `leading-[...]` values.+- MUST NOT scale font size with viewport width or use negative letter spacing.+- Text MUST wrap, truncate, or be constrained deliberately. It must not overlap+ adjacent controls or resize a fixed-format surface.++### Color++Use semantic utilities backed by CSS custom properties:++| Meaning | Examples |+| --- | --- |+| Primary action and selected state | `accent`, `accent-hover`, `accent-text` |+| Primary text | `main`, `main-hover`, `main-text` |+| Controls and secondary text | `control`, `control-light`, `control-placeholder` |+| Surfaces | `background`, `control-bg`, `control-bg-hover` |+| Borders | `block-border`, `control-border` |+| Status | `info`, `warning`, `error`, `success` and their hover tokens |+| Scrims | `overlay` with an opacity modifier |++- MUST NOT use raw palette utilities such as `text-gray-600`, `bg-blue-50`, or+ `text-white` in new or modified product UI.+- MUST NOT use literal hex, RGB, or HSL values for product UI when a semantic+ token can express the role.+- MUST NOT add manual `dark:` variants. Theme scopes redefine the semantic+ tokens.+- A genuinely new semantic role belongs in `tailwind.css`; a one-off palette+ choice does not.++### Borders, Corners, Focus, And Layers++- Use `rounded-xs` for compact controls, `rounded-sm` for ordinary framed+ surfaces, and `rounded-full` only for circular controls, avatars, and pills.+- Use `border-control-border` for controls and `border-block-border` for region+ boundaries.+- Interactive elements MUST have a visible keyboard focus state. Prefer the+ focus behavior owned by the shared primitive.+- Use the `overlay`, `agent`, and `critical` semantic layer families described+ in `frontend/AGENTS.md`. Feature code MUST NOT establish global stacking with+ raw z-index values or portal directly to `document.body`.++## Choosing A Workflow Surface++| Need | Surface |+| --- | --- |+| Resource creation or editing with multiple fields while retaining list context | `Sheet` |+| Multi-section settings or editing with a durable route | Full page form |+| Confirmation, destructive acknowledgment, single-field prompt, or read-only result | `Dialog` or `AlertDialog` |+| Long or route-worthy multi-step workflow | Full page wizard |+| Short multi-step workflow that benefits from parent context | Wide sheet wizard |++Do not choose a dialog merely because the implementation is smaller. Choose the+surface from task complexity, user context, and expected navigation.++## Form Workflows++### Shared Form Anatomy++Forms MUST use the shared form primitives when they support the required+behavior:++```tsx+<FormSection title={...}>+ <FormFieldGroup>+ <FormField title={...} description={...}>+ <Input ... />+ </FormField>+ </FormFieldGroup>+</FormSection>+```++- A field has 6px between its label/title region and control.+- Controls belonging to one field have 8px between them.+- A field group has 24px between fields.+- A section has 24px vertical padding and 16px internal rhythm.+- On large screens, a section header uses 25% of the section width and content+ uses the remainder. On smaller screens, they stack with 16px separation.+- `FormLabel` MUST reference its control with `htmlFor`.+- Validation MUST be adjacent to the affected field. Do not rely only on a+ toast or a disabled button to explain invalid input.+- Required fields, disabled state, pending state, and server errors MUST remain+ understandable without color alone.++### Page Forms++Use a page form when settings have multiple sections, need a stable URL, or are+part of a broader detail page.++```tsx+<ProjectPageLayout>+ <ProjectPageContent>+ <FormSection ... />+ <FormSection ... />+ </ProjectPageContent>+ {isDirty && (+ <StickyActionFooter left={...} right={...} />+ )}+</ProjectPageLayout>+```++- MUST compose the applicable workspace or project page layout with+ `FormSection` and `FormFieldGroup`.+- MUST use `StickyActionFooter` when a multi-section form is dirty and actions+ can scroll outside the viewport.+- The footer appears when the form becomes dirty; it MUST NOT occupy permanent+ space on an unchanged settings page.+- Revert or cancel belongs on the left. The single primary save/update action+ belongs on the right.+- The primary action is disabled while invalid or saving. Update is also+ disabled while unchanged.+- Navigation with unsaved changes MUST warn the user when losing the changes+ would be costly or surprising.+- SHOULD NOT use a sticky footer for read-only, auto-save, or trivial+ single-field pages.++### Sheet Forms++The required structure is:++```tsx+<SheetContent width="standard">+ <SheetHeader>+ <SheetTitle>{...}</SheetTitle>+ <SheetDescription>{...}</SheetDescription>+ </SheetHeader>+ <SheetBody>+ <FormFieldGroup>{...}</FormFieldGroup>+ </SheetBody>+ <SheetFooter>+ <Button appearance="secondary">{...}</Button>+ <Button>{...}</Button>+ </SheetFooter>+</SheetContent>+```++- `SheetHeader` and `SheetFooter` remain visible. Only `SheetBody` scrolls.+- Header, body, and footer use 24px horizontal padding and 16px vertical+ padding. Footer buttons use an 8px gap.+- Every sheet has an accessible `SheetTitle`. Use a visually hidden title only+ when another visible heading already communicates it.+- Create is enabled when required fields are valid. Update additionally+ requires dirty state.+- An always-mounted edit sheet MUST use the stable-entity ref, keyed inner form,+ and full-entity loading pattern in `frontend/AGENTS.md`.+- Nested selects, menus, and popovers MUST use their portal option or another+ shared overlay primitive; do not raise them with an ad hoc z-index.++#### Sheet Widths++New ordinary product flows MUST use a standard tier:++| Tier | Width | Use |+| --- | ---: | --- |+| `narrow` | 384px | Picker, short two-to-three-field form, compact read-only details |+| `standard` | 704px | Default create/edit flow with three-to-six fields |+| `wide` | 832px | Nested table, expression builder, tabs, or short wizard |++Specialized tiers exist for established workflows. New use requires a concrete+reason in the change; do not select one only to avoid responsive design.++| Tier | Width | Specialized use |+| --- | ---: | --- |+| `panel` | 500px | Compact utility or diagnostic panel |+| `medium` | 640px | Established dense form between narrow and standard |+| `large` | 1024px | Dual-region configuration or schema-oriented workflow |+| `xlarge` | 1120px | Dense rule or table editor |+| `huge` | 95vw | Maximized editor surface that retains a scrim anchor |+| `workspace` | Responsive, capped at 960px | Workspace-like editor with phone and tablet behavior |++Consumers MUST use the `width` variant. Do not apply `w-*`, `min-w-*`, or+`max-w-*` to `SheetContent`. Add or change a tier only when the shared contract+needs a new reusable size.++### Dialogs And Destructive Actions++- Use `Dialog` for short blocking work, not multi-section resource forms.+- Use `AlertDialog` for destructive confirmation that requires explicit+ acknowledgment.+- Dialog content has 24px padding by default. Do not add an inner padding shell.+- The primary action is last in reading order. A destructive action uses the+ destructive variant and names the operation precisely.+- Dialog and alert-dialog content MUST have an accessible title and a concise+ description when consequences are not obvious.++### Wizards++- Use the shared step indicator and stable footer actions.+- Back is secondary; next/finish is primary. Do not move them between steps.+- Preserve completed input when moving backward.+- Validate the current step before advancing and place errors with fields.+- A wizard with deep linking, long-running work, or substantial review content+ SHOULD be a page. A short contextual flow MAY use a wide sheet.++## Table And List Workflows++### Anatomy++A resource table is composed in this order:++1. Page or section header.+2. Toolbar containing search, filters, view controls, and the create action.+3. Status region for errors or non-blocking notices when needed.+4. Table or list content.+5. Optional pagination footer.+6. Selection action bar when rows are selected.++- Toolbars MUST use shared controls at `sm` or `md` size and an 8px action gap.+- Search and filters stay visually grouped; the create action stays at the end+ of the toolbar.+- Operational tables SHOULD use the available page width. Do not center them in+ a marketing-style narrow column.+- A border and `rounded-sm` container MAY frame a genuinely contained table.+ Do not wrap the table in nested cards or make the surrounding page section a+ floating card.++### Table Measurements++- Header rows are 40px high.+- Default cells use 16px horizontal and 12px vertical padding.+- Interactive menu/list rows have a 32px compact or 36px default minimum+ height, 14/20px primary text, and an 8px internal gap.+- Numeric values align right. Selection and icon-only columns remain narrow.+- Names and primary identifiers align left and receive remaining width.+- Long single-line identifiers use truncation with a tooltip or another way to+ inspect the complete value.+- Multi-line content wraps intentionally. It must not change column geometry+ unpredictably when a stable row height is required.++### Loading, Empty, And Error States++- Initial loading uses a stable table skeleton or loading region; it MUST NOT+ briefly display the empty state.+- Loading more preserves existing rows and disables only the continuation+ action.+- An empty unfiltered resource list explains the absence and presents the+ appropriate create action when the user has permission.+- An empty filtered result preserves the filters and offers a clear-filter+ action; it does not present resource creation as the primary remedy.+- A fetch error preserves useful context and offers retry where recovery is+ possible.+- Empty, error, and permission states use shared status components rather than+ ad hoc centered cards.++### Without Pagination++- Render the toolbar and table without a footer.+- Do not render disabled pagination controls or a rows-per-page selector that+ cannot change the result.+- Client-side sorting and filtering are acceptable only when the full bounded+ result set is already loaded and the user is not given a false impression of+ server-wide search.++### With Pagination Or Load More++- Use `usePagedData` and `PagedTableFooter` for the standard load-more contract.+- Search, filters, sort, and page size MUST be inputs to the backend request.+- Changing any of them resets rows, continuation state, and cached query+ identity before loading the first page.+- Loading more MUST reuse the same query inputs. It appends results and does not+ clear already visible rows on failure.+- Place `PagedTableFooter` in the page layout footer or the table's unframed+ footer region. Do not duplicate its rows-per-page or load-more controls.+- A table with no remaining page MAY retain the rows-per-page control but does+ not show a disabled load-more button.++### Selection And Row Actions++- Use the shared `Checkbox` for row and select-all controls.+- Select-all semantics MUST be explicit: visible page, loaded rows, or entire+ filtered result. Do not imply selection beyond what the API can act on.+- Use the shared selection action bar for bulk operations.+- Keep the most frequent safe row action visible when space permits. Put+ secondary and destructive actions in the shared dropdown menu.+- Destructive bulk actions require confirmation and state the affected count.+- On narrow screens, actions MAY move into overflow, but selection state and the+ primary action must remain discoverable.++### Responsive Tables++- Preserve the columns required to identify a row and perform its primary task.+- Hide or move secondary metadata before shrinking primary identifiers beyond+ usefulness.+- Use horizontal scrolling for genuinely tabular comparisons; do not turn an+ operational data table into unrelated cards solely for mobile.+- Sticky headers and columns MAY be used when they materially improve long or+ wide comparisons. Their layers remain local to the table and below semantic+ overlays.++## Responsive And State Checklist++Before considering a UI workflow complete, verify:++- The longest localized label fits or wraps without overlapping adjacent UI.+- Button groups wrap with both horizontal and vertical 8px gaps.+- Fixed-format controls, boards, toolbars, and rows have stable dimensions.+- A sheet remains usable on a phone and never exceeds the viewport width.+- Page and sheet actions remain reachable while content scrolls.+- Loading, empty, error, disabled, dirty, saving, and success states are defined+ where the workflow can enter them.+- Keyboard focus order follows the visual task order.+- Permission-disabled actions are hidden or explained consistently with the+ product's authorization pattern.++## Enforcement And Exceptions++Run the full frontend check after UI changes:++```bash+pnpm --dir frontend check+```++The UX ratchet can be run directly:++```bash+node frontend/scripts/check-ui-guideline.mjs+```++The scanner enforces raw and literal colors, manual dark variants, `space-*`,+arbitrary and off-scale gaps, unsupported radii, native feature controls, raw+feature tables, shared `Button` height/size overrides, arbitrary typography,+and ad hoc sheet widths. The committed+`frontend/scripts/ui-guideline-legacy-debt.json` file records each temporary+legacy exception by file, rule, token, and occurrence count.++When a change removes legacy violations, shrink the baseline with:++```bash+node frontend/scripts/check-ui-guideline.mjs --write-baseline+```++The command refuses to record a new fingerprint or an increased count for an+already enforced rule. When the scanner introduces a named rule, it may record+that rule's existing feature debt once; shared primitives must still be fixed.+Never edit the baseline to authorize new debt. Fix the UI or, if the rule itself+is wrong, change the canonical guideline, scanner, and tests together with an+explicit design rationale.++The scanner cannot judge whether a sheet is the right surface, whether a table+has good column priority, or whether a sticky footer is warranted. Reviewers and+agents MUST apply the workflow recipes even when the automated check passes.++## Evolution References++The contract reflects the React and unification work from the beginning of the+React product frontend, not only the most recent month:++- [#19750](https://github.com/bytebase/bytebase/pull/19750) introduced the React+ product frontend on 2026-03-30.+- [#19758](https://github.com/bytebase/bytebase/pull/19758) established Base UI,+ shadcn-style wrappers, Tailwind semantic tokens, and CVA patterns.+- [#20012](https://github.com/bytebase/bytebase/pull/20012) and related overlay+ work established shared interaction and layering behavior.+- [#20500](https://github.com/bytebase/bytebase/pull/20500) and subsequent work+ completed the React-only product direction.+- [#20743](https://github.com/bytebase/bytebase/pull/20743) introduced StyleX for+ typed shared measurements.+- [#20750](https://github.com/bytebase/bytebase/pull/20750) continued UI+ consistency work.+- [#20942](https://github.com/bytebase/bytebase/pull/20942) established current+ route ownership and frontend guardrails.+- [#21056](https://github.com/bytebase/bytebase/pull/21056) unified step and+ sticky-footer behavior.++Historical plans preserve migration context, but this document and+`frontend/AGENTS.md` are the current implementation authority.diff --git a/docs/superpowers/plans/2026-08-24-frontend-ux-legacy-debt-migration.md b/docs/superpowers/plans/2026-08-24-frontend-ux-legacy-debt-migration.mdnew file mode 100644index 0000000000..3f51e50673--- /dev/null+++ b/docs/superpowers/plans/2026-08-24-frontend-ux-legacy-debt-migration.md@@ -0,0 +1,481 @@+# Frontend UX Legacy Debt Migration Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** Remove every current frontend UX guideline violation, delete the temporary legacy-debt file, and leave the scanner enforcing zero violations.++**Architecture:** Migrate from mechanically safe leaf styling to increasingly behavior-sensitive shared controls, operational workflows, embedded renderers, and SQL Editor surfaces. Each task owns a complete file set, preserves behavior with focused tests, removes all debt for that set, and shrinks the monotonic debt snapshot before the next task begins.++**Tech Stack:** React, TypeScript, Base UI, Tailwind CSS v4 semantic utilities, CVA, StyleX, Vitest.++**Spec:** `docs/agents/frontend-ux.md`++## Current Inventory++Snapshot source: `frontend/scripts/ui-guideline-legacy-debt.json` on 2026-08-24.++| Rule | Fingerprints | Occurrences | Files | Difficulty |+| --- | ---: | ---: | ---: | --- |+| `no-space-between` | 9 | 9 | 4 | Easy mechanical replacement |+| `no-off-scale-gap` | 27 | 30 | 27 | Easy, but choose the relationship's intended gap |+| `no-arbitrary-type` | 15 | 22 | 15 | Easy to medium hierarchy decision |+| `no-manual-dark` | 5 | 6 | 1 | Easy semantic-token replacement inside a complex owner |+| `no-off-scale-radius` | 51 | 86 | 43 | Easy for ordinary frames, medium for joined controls |+| `no-ad-hoc-sheet-width` | 7 | 7 | 4 | Medium workflow-width decision |+| `no-raw-color` | 259 | 341 | 96 | Medium visual-semantic migration |+| `no-button-dimension-override` | 58 | 84 | 50 | Medium; some consumers need a shared square-button contract |+| `no-raw-table` | 5 | 6 | 5 | Medium to hard depending on operational vs embedded content |+| `no-native-control` | 119 | 220 | 102 | Hardest because behavior must survive the primitive swap |+| `no-literal-color` | 2 | 3 | 2 | Hard functional-color tail |+| **Total** | **557** | **814** | **218 unique** | |++The first 73 files contain only spacing, typography, radius, theme, and semantic-color debt. They account for 150 fingerprints and 202 occurrences and should be completed before interactive migrations.++## Allowed APIs++- Foundations and workflow recipes: `docs/agents/frontend-ux.md:50`, `docs/agents/frontend-ux.md:144`, and `docs/agents/frontend-ux.md:296`.+- Control measurements: `frontend/src/components/ui/styles.stylex.ts`; use only `xs`, `sm`, `md`, and `lg`.+- Commands: `frontend/src/components/ui/button.tsx`; use `Button`, `ButtonProps`, and `buttonVariants` rather than native command buttons.+- Text entry: `frontend/src/components/ui/input.tsx`, `textarea.tsx`, `search-input.tsx`, and `number-input.tsx`.+- Choices: `frontend/src/components/ui/select.tsx`, `combobox.tsx`, `checkbox.tsx`, `radio-group.tsx`, `switch.tsx`, and `segmented-control.tsx`.+- Sheets: `frontend/src/components/ui/sheet.tsx`; current named widths are `narrow`, `panel`, `medium`, `standard`, `wide`, `large`, `xlarge`, `huge`, and `workspace`.+- Tables: `frontend/src/components/ui/table.tsx`; use `Table`, `TableHeader`, `TableBody`, `TableRow`, `TableHead`, `TableCell`, and `TableEmptyView`.+- Semantic colors: `frontend/src/assets/css/tailwind.css`.++## Global Constraints++- Paths in task scope blocks are relative to `frontend/` unless prefixed otherwise.+- Preserve API calls, routing, permissions, mutations, loading state, selection semantics, keyboard behavior, drag/drop, upload, focus, editor commands, and pagination.+- A task must remove every baseline fingerprint for each file it directly edits. Do not fix one class while leaving adjacent debt in the same owner.+- Never increase or hand-edit `violations`; run `node frontend/scripts/check-ui-guideline.mjs --write-baseline` only after the scoped report is empty.+- Use semantic roles, not visual guesses: `main` for primary text, `control` and `control-light` for secondary hierarchy, `background` and `control-bg` for surfaces, `block-border` and `control-border` for boundaries, and status tokens for state.+- Do not import Base UI primitives directly from feature code merely to evade the scanner.+- Do not replace native controls with styled `div` elements. Preserve native semantics through the shared primitive.+- Do not add one-off semantic tokens, arbitrary measurements, consumer-owned control heights, manual dark variants, or inline literal colors.+- Hidden form inputs are not visible UI and should be excluded precisely by the scanner. File inputs remain in scope and should use a shared wrapper.+- Keep each task independently reviewable and commit the reduced debt file with that task.++---++### Task 1: Remove Scanner False Positives++**Files:**+- Modify: `frontend/scripts/check-ui-guideline.mjs`+- Modify: `frontend/scripts/check-ui-guideline.test.mjs`+- Modify: `frontend/scripts/ui-guideline-legacy-debt.json` via the writer++**Produces:** Native `<input type="hidden">` elements are excluded because they render no UI; visible and file inputs remain enforced.++- [ ] Add a failing scanner test containing hidden, file, and text inputs. Assert only file and text inputs produce `no-native-control`.+- [ ] Run `CI=true pnpm --dir frontend exec vitest run scripts/check-ui-guideline.test.mjs` and confirm the hidden input is incorrectly reported.+- [ ] In the JSX native-control visitor, skip only an `input` whose static `type` attribute is exactly `hidden`. Do not skip dynamic types or `type="file"`.+- [ ] Re-run the scanner tests, write the reduced debt snapshot, and run the scanner.+- [ ] Confirm the OAuth consent fingerprint drops by seven occurrences and no other native-input entry disappears.+- [ ] Commit as `refactor(frontend): ignore nonvisual hidden inputs`.++### Task 2: Migrate Single-Occurrence CSS-Only Owners++**Files:** the following 36 files, each with one occurrence:++```text+src/app/layouts/SplashLayout.tsx+src/components/DashboardFrameShell.tsx+src/components/database/DatabaseOverviewInfo.tsx+src/components/DatabaseSelect.tsx+src/components/EnvironmentSelect.tsx+src/components/header/ProjectSwitchPanel.tsx+src/components/InstanceSelect.tsx+src/components/LabelsDisplay.tsx+src/components/LearnMoreLink.tsx+src/components/monaco/MonacoEditor.tsx+src/components/UserAvatar.tsx+src/components/UserHoverCard.tsx+src/modules/agent/components/ToolCallCard.tsx+src/modules/schema-diagram/SchemaDiagram.tsx+src/modules/schema-editor/Aside/AsideTree.tsx+src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx+src/modules/sql-editor/components/MaskingReasonPopover.tsx+src/modules/sql-editor/components/ResultView/detail-panel-search.tsx+src/modules/sql-editor/components/SchemaPane/HoverPanel/InfoItem.tsx+src/modules/sql-editor/components/SchemaPane/HoverPanel/TableInfo.tsx+src/modules/sql-editor/components/SchemaPane/TreeNode/CheckNode.tsx+src/modules/sql-editor/components/SchemaPane/TreeNode/ColumnNode.tsx+src/modules/sql-editor/components/TreeNodeSuffix.tsx+src/modules/sql-editor/components/useExportGrantBypass.tsx+src/modules/sql-editor/components/Welcome.tsx+src/routes/auth/PasswordForgotPage.tsx+src/routes/auth/SetupPage.tsx+src/routes/project/database-detail/panels/DatabaseCatalogPanel.tsx+src/routes/project/issue-detail/components/IssueDetailAccessGrantDetails.tsx+src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx+src/routes/project/plan-detail/components/deploy/DeployStageCard.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx+src/routes/project/plan-detail/components/PlanChangeReference.tsx+src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx+src/routes/project/plan-detail/components/review/ReviewActionPopover.tsx+src/routes/project/ProjectDatabaseGroupsPage.tsx+```++- [ ] Capture the scoped report with `node frontend/scripts/check-ui-guideline.mjs --report-only` and save the exact before count in the commit message or PR notes.+- [ ] Replace each token by role: gaps use the nearest documented relationship, text uses `text-xs` or `text-sm` with the owned line height, ordinary frames use `rounded-sm`, and raw colors use semantic utilities.+- [ ] Run the nearest existing test for every owner with behavior logic; token-only presentational owners need scanner coverage rather than a new source-string test.+- [ ] Confirm all 36 paths are absent from the report, write the debt snapshot, and run the scanner.+- [ ] Expected reduction: 36 fingerprints and 36 occurrences.+- [ ] Commit as `refactor(frontend): remove singleton UX styling debt`.++### Task 3: Migrate Small CSS-Only Owners++**Files:** 28 owners with two to five occurrences:++```text+src/components/ClassificationTree.tsx+src/components/DashboardSidebar.tsx+src/components/instance/CredentialSourceForm.tsx+src/components/instance/InstanceDetailView.tsx+src/components/monaco/DiffMonaco.tsx+src/components/ProjectRouteShell.tsx+src/components/ProjectSidebar.tsx+src/components/revision/RevisionDetailPanel.tsx+src/components/sql-review/TabsByEngine.tsx+src/components/TaskStatusIcon.tsx+src/modules/sql-editor/components/SchemaPane/TreeNode/icons.tsx+src/routes/auth/SigninPage.tsx+src/routes/auth/SignupPage.tsx+src/routes/project/database-detail/overview/TableMetadataTable.tsx+src/routes/project/DatabaseChangelogDetailPage.tsx+src/routes/project/issue-detail/components/IssueDetailRoleGrantDetails.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx+src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx+src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx+src/routes/project/ProjectAccessGrantsPage.tsx+src/routes/project/ProjectReleaseDetailPage.tsx+src/routes/workspace/general/AccountSection.tsx+src/routes/workspace/MemberDatabaseResourceName.tsx+src/routes/workspace/Page403.tsx+src/routes/workspace/profile/AccountSettingsPage.tsx+src/routes/workspace/profile/SettingsCard.tsx+src/routes/workspace/two-factor/RecoveryCodesView.tsx+```++- [ ] Run focused owner tests before editing.+- [ ] Migrate the complete owner using the same role mappings as Task 2. Joined controls may use directional `rounded-l-sm` and `rounded-r-sm`; ordinary cards must use `rounded-sm`.+- [ ] Inspect Monaco, tree-icon, status-icon, and sidebar changes visually or through their existing component tests because their colors encode meaning.+- [ ] Confirm all 28 paths are absent from the report, write the debt snapshot, and run the scanner.+- [ ] Expected reduction: 64 fingerprints and 82 occurrences.+- [ ] Commit as `refactor(frontend): remove small UX styling debt`.++### Task 4: Migrate Concentrated CSS-Only Workflows++**Files:**++```text+src/components/release/ReleaseInfoCard.tsx+src/routes/project/issue-detail/components/IssueDetailApprovalFlow.tsx+src/routes/project/issue-detail/components/IssueDetailCommentList.tsx+src/routes/project/issue-detail/components/IssueDetailDatabaseCreateView.tsx+src/routes/project/issue-detail/components/IssueDetailTaskRunTable.tsx+src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx+src/routes/project/plan-detail/ProjectPlanDetailPage.tsx+src/routes/project/ProjectGitOpsPage.tsx+src/routes/project/ProjectMaskingExemptionPage.tsx+```++- [ ] Run the issue-detail, plan-detail, GitOps, and masking focused suites before editing.+- [ ] Replace every scoped raw color, arbitrary type, unsupported radius, off-scale gap, and `space-*` token while preserving hierarchy and state meaning.+- [ ] For SQL or task state colors, map by state (`success`, `warning`, `error`, `info`) rather than old hue.+- [ ] Verify layout at desktop and narrow widths for the issue and rollback surfaces.+- [ ] Confirm all nine paths are absent from the report, write the debt snapshot, and run the scanner.+- [ ] Expected reduction: 50 fingerprints and 84 occurrences. After Tasks 2-4, all 73 CSS-only owners are debt-free.+- [ ] Commit as `refactor(frontend): unify concentrated workflow styling`.++### Task 5: Add The Missing Square Button Contract++**Files:**+- Modify: `frontend/src/components/ui/button.tsx`+- Modify: `frontend/src/components/ui/button.test.tsx`+- Modify: `frontend/src/components/ui/styles.stylex.test.tsx`+- Modify: `frontend/scripts/check-ui-guideline.test.mjs`++**Produces:** `Button` accepts `shape="square"` while `size` continues to own height, width, padding, typography, gap, and icon measurement.++- [ ] Add a failing test rendering square buttons at `xs`, `sm`, `md`, and `lg`; assert 24, 28, 36, and 40px square contracts and no consumer dimension classes.+- [ ] Extend the Button CVA with `shape: { default, square }` and size/shape compound variants: `size-6`, `size-7`, `size-9`, and `size-10`, each with zero inline padding.+- [ ] Keep `shape="default"` as the default and preserve all existing appearances and intents.+- [ ] Add a scanner test showing `<Button shape="square" size="sm" />` passes while `<Button className="size-7" />` fails.+- [ ] Run the Button, shared-size, and scanner tests.+- [ ] Do not add `size="auto"`, `appearance="unstyled"`, or an unmeasured escape hatch. Existing `h-auto`, `h-full`, 20px, 22px, and 34px consumers must adopt the nearest documented contract or restructure their layout.+- [ ] Commit as `feat(frontend): add square button sizing`.++### Task 6: Migrate App And Authentication Controls++**Files:**++```text+src/app/components/SessionExpiredSurface.tsx+src/components/auth/EmailCodeSigninForm.tsx+src/components/auth/PasswordSigninForm.tsx+src/components/auth/UserPasswordFields.tsx+src/routes/auth/MultiFactorPage.tsx+src/routes/auth/OAuth2ConsentPage.tsx+src/routes/auth/PasswordResetPage.tsx+```++- [ ] Run all auth route/component tests and record the scoped report.+- [ ] Replace visible native commands with `Button`, password visibility actions with `shape="square"`, and raw colors/radii with semantic roles.+- [ ] Preserve the OAuth form's native POST action and hidden field names exactly. Task 1 should make those hidden inputs scanner-neutral without replacing them.+- [ ] Preserve submit-button names/values, Enter submission, disabled states, and browser password-manager behavior.+- [ ] Confirm all seven paths are absent from the report, write the debt snapshot, and run the scanner.+- [ ] Commit as `refactor(frontend): unify authentication controls`.++### Task 7: Migrate Workspace Resource And Settings Workflows++**Files:**++```text+src/routes/workspace/EnvironmentsPage.tsx+src/routes/workspace/GlobalMaskingPage.tsx+src/routes/workspace/GroupsPage.tsx+src/routes/workspace/LandingPage.tsx+src/routes/workspace/MembersPage.tsx+src/routes/workspace/PurchaseSection.tsx+src/routes/workspace/RolesPage.tsx+src/routes/workspace/SemanticTypesPage.tsx+src/routes/workspace/ServiceAccountsPage.tsx+src/routes/workspace/general/BrandingSection.tsx+src/routes/workspace/general/SecuritySection.tsx+src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx+src/routes/workspace/profile/UserPasswordSection.tsx+src/routes/workspace/two-factor/TwoFactorSetupPage.tsx+src/routes/workspace/users/UserFormSheet.tsx+```++- [ ] Run `CI=true pnpm --dir frontend exec vitest run src/routes/workspace` before editing.+- [ ] Replace native choices with `Select` or `Combobox`, visible text/file controls with shared `Input`, and commands with `Button` using named size and shape.+- [ ] Keep file input `accept`, reset, ref-click, and same-file re-selection behavior in Branding and Semantic Types; add focused upload tests before replacing the native node.+- [ ] Preserve table selection, role/member authorization, environment reorder, two-factor recovery, and form dirty-state behavior.+- [ ] Replace all raw colors in the same owners; do not leave a second pass for touched workspace files.+- [ ] Confirm all 15 paths are absent from the report, write the debt snapshot, and run the scanner.+- [ ] Expected current-snapshot scope: 63 fingerprints and 100 occurrences before Task 1 reductions.+- [ ] Commit as `refactor(frontend): unify workspace workflows`.++### Task 8: Migrate Project Sheets, Tables, And Actions++**Files:**++```text+src/routes/project/ProjectIssueDetailPage.tsx+src/routes/project/ProjectPlanDashboardPage.tsx+src/routes/project/ProjectReleaseDashboardPage.tsx+src/routes/project/ProjectSettingsPage.tsx+src/routes/project/ProjectSyncSchemaPage.tsx+src/routes/project/database-detail/DatabaseDetailHeader.tsx+src/routes/project/database-detail/overview/TableDetailDialog.tsx+src/routes/project/database-detail/revision/ImportRevisionSheet.tsx+src/routes/project/issue-detail/components/IssueDetailActionBar.tsx+src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx+src/routes/project/issue-detail/components/IssueDetailLabels.tsx+src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx+src/routes/project/issue-detail/components/IssueDetailTitleInput.tsx+src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx+src/routes/project/plan-detail/components/PlanDetailHeader.tsx+src/routes/project/plan-detail/components/PlanDetailMeta.tsx+src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx+src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx+src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx+src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx+src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx+```++- [ ] Run the project route tests, especially plan-change, issue action, statement upload, database dialog, and schema-sync tests.+- [ ] Replace the four ad hoc sheet contracts with named widths: keep Import Revision and Target Selection at `wide` without consumer width classes, use `panel` for the mobile review sheet, and `narrow` for pending-task preview.+- [ ] Replace the two Table Detail tables and the Project Sync table with shared table primitives. Preserve sortable headers, column widths, row actions, scrolling, and empty/loading states.+- [ ] Replace file inputs with shared `Input` while preserving `accept`, `multiple`, drag/drop, refs, and reset behavior. Replace ordinary choices with `Select`/`Combobox`.+- [ ] Replace command buttons and dimension overrides with named `Button` sizes and `shape="square"`; preserve tab ARIA and keyboard navigation.+- [ ] Remove all raw colors, radii, gaps, and spacing debt in these owners.+- [ ] Verify wide tables and sheets at desktop and mobile widths, then confirm all 23 paths are absent from the report.+- [ ] Write the debt snapshot, run the scanner, and commit as `refactor(frontend): unify project workflows`.++### Task 9: Migrate Shared And Instance Composite Controls++**Files:** the complete remaining interactive shared and instance scope after Tasks 2-4; the functional Watermark color is reserved for Task 12:++```text+src/components/AccountMultiSelect.tsx+src/components/AdvancedSearch.tsx+src/components/AuditLogTable.tsx+src/components/BannersWrapper.tsx+src/components/CreateWorkloadIdentitySheet.tsx+src/components/CustomApproval/RulesSection.tsx+src/components/DashboardBodyShell.tsx+src/components/DatabaseGroupDataTable.tsx+src/components/DatabaseResourceSelector.tsx+src/components/ExprEditor.tsx+src/components/InstanceAssignmentSheet.tsx+src/components/IssueLabelSelect.tsx+src/components/IssueTable.tsx+src/components/LabelListEditor.tsx+src/components/MarkdownEditor/MarkdownEditor.tsx+src/components/MatchedDatabaseView.tsx+src/components/MaxRowCountSelect.tsx+src/components/Quickstart.tsx+src/components/ResourceIdField.tsx+src/components/UserCell.tsx+src/components/WorkspaceSetupGuide.tsx+src/components/database/LabelEditorSheet.tsx+src/components/header/DashboardHeader.tsx+src/components/header/HeaderBreadcrumb.tsx+src/components/header/ProfileMenuTrigger.tsx+src/components/plan-check/PlanCheckSection.tsx+src/components/sql-review/Panels.tsx+src/components/sql-review/RuleComponents.tsx+src/components/sql-review/RuleTable.tsx+src/components/sql-review/TemplateSelector.tsx+src/components/instance/CreateDataSourceExample.tsx+src/components/instance/DataSourceForm.tsx+src/components/instance/DataSourceSection.tsx+src/components/instance/InfoPanel.tsx+src/components/instance/InstanceDashboard.tsx+src/components/instance/InstanceFormBody.tsx+src/components/instance/SshConnectionForm.tsx+src/components/instance/SslCertificateForm.tsx+```++- [ ] Run focused tests for Advanced Search, expression editing, approval rules, account/database selection, SQL review, instance creation, SSH, SSL, uploads, and shared tables.+- [ ] Use shared controls for simple cases. For Advanced Search and ExprEditor, preserve the existing composite state machine but replace leaf input, textarea, and command nodes with `Input`, `Textarea`, and `Button`.+- [ ] Convert Instance Assignment to shared table primitives without changing horizontal overflow, selection, or minimum-width behavior.+- [ ] Convert native selects to `Select` unless search/custom creation is required, in which case use `Combobox`.+- [ ] Do not add a generic pressable escape hatch for composite rows. Use `Button` for commands and keep non-command row semantics explicit.+- [ ] Leave `Watermark.tsx` untouched for Task 12; every file listed in this task must leave this task debt-free.+- [ ] Run the scoped tests, write the debt snapshot, run the scanner, and commit as `refactor(frontend): unify shared composite controls`.++### Task 10: Migrate Schema, AI, And Agent Embedded Surfaces++**Files:**++```text+src/modules/schema-editor/Panels/IndexesEditor/IndexesEditor.tsx+src/modules/schema-editor/Panels/PartitionsEditor/PartitionsEditor.tsx+src/modules/schema-editor/Panels/PreviewPane.tsx+src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx+src/modules/schema-editor/Panels/TableColumnEditor/TableColumnEditor.tsx+src/modules/schema-editor/Panels/TableList/TableList.tsx+src/modules/schema-editor/TabsContainer.tsx+src/modules/schema-diagram/ER/TableNode.tsx+src/modules/schema-diagram/Navigator/Navigator.tsx+src/modules/schema-diagram/common/FocusButton.tsx+src/modules/ai/components/ActionBar.tsx+src/modules/ai/components/ChatView/ChatView.tsx+src/modules/ai/components/ChatView/Markdown/CodeBlock.tsx+src/modules/ai/components/DynamicSuggestions.tsx+src/modules/ai/components/HistoryPanel/ConversationList.tsx+src/modules/ai/components/PromptInput.tsx+src/modules/agent/components/AgentChat.tsx+src/modules/agent/components/AgentInput.tsx+src/modules/agent/components/AgentWindow.tsx+```++- [ ] Run all tests in the four module directories before editing.+- [ ] Normalize schema-editor square row actions through the shared Button contract without resizing the surrounding grid.+- [ ] Convert ER TableNode to shared table primitives while retaining `table-fixed`, node dimensions, ports, drag/selection behavior, and diagram-specific density.+- [ ] Convert AgentChat Markdown table rendering to shared table primitives with compact class overrides local to the renderer; do not impose operational header height on prose tables.+- [ ] Replace AI/agent native controls and raw colors while preserving streaming, abort, retry, history selection, keyboard submission, textarea growth, and overlay layers.+- [ ] Add focused tests for Markdown table output, ER-node geometry, prompt keyboard behavior, and history selection before the primitive swaps.+- [ ] Confirm all four module prefixes are absent from the report, write the debt snapshot, run the scanner, and commit as `refactor(frontend): unify embedded agent and schema UI`.++### Task 11: Migrate SQL Editor Controls Last++**Files:**++```text+src/modules/sql-editor/components/AccessGrantItem.tsx+src/modules/sql-editor/components/AdminModeButton.tsx+src/modules/sql-editor/components/AsidePanel/ActionBarTabItem.tsx+src/modules/sql-editor/components/ConnectChooser.tsx+src/modules/sql-editor/components/ConnectionChooserButton.tsx+src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx+src/modules/sql-editor/components/ConnectionPane/DatabaseGroupTag.tsx+src/modules/sql-editor/components/ConnectionPanel.tsx+src/modules/sql-editor/components/EditorAction.tsx+src/modules/sql-editor/components/FolderForm.tsx+src/modules/sql-editor/components/HistoryPane.tsx+src/modules/sql-editor/components/HistorySearchInput.tsx+src/modules/sql-editor/components/Panels/ExternalTablesPanel/ExternalTablesPanel.tsx+src/modules/sql-editor/components/Panels/FunctionsPanel/FunctionsPanel.tsx+src/modules/sql-editor/components/Panels/PackagesPanel/PackagesPanel.tsx+src/modules/sql-editor/components/Panels/ProceduresPanel/ProceduresPanel.tsx+src/modules/sql-editor/components/Panels/TablesPanel/TableDetail.tsx+src/modules/sql-editor/components/Panels/TriggersPanel/TriggersPanel.tsx+src/modules/sql-editor/components/Panels/ViewsPanel/ViewDetail.tsx+src/modules/sql-editor/components/Panels/common/CodeViewer.tsx+src/modules/sql-editor/components/Panels/common/PanelSearchBox.tsx+src/modules/sql-editor/components/ResultPanel/BatchQuerySelect.tsx+src/modules/sql-editor/components/ResultView/BinaryFormatButton.tsx+src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx+src/modules/sql-editor/components/ResultView/DetailPanel.tsx+src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx+src/modules/sql-editor/components/ResultView/ResultStatusBar.tsx+src/modules/sql-editor/components/ResultView/SelectionCopyTooltips.tsx+src/modules/sql-editor/components/ResultView/SingleResultView.tsx+src/modules/sql-editor/components/ResultView/TableCell.tsx+src/modules/sql-editor/components/ResultView/TextSearchControl.tsx+src/modules/sql-editor/components/ResultView/VirtualDataBlock.tsx+src/modules/sql-editor/components/ResultView/VirtualDataTable.tsx+src/modules/sql-editor/components/SQLEditorHomePage.tsx+src/modules/sql-editor/components/SchemaPane/FlatTableList.tsx+src/modules/sql-editor/components/SchemaPane/SchemaContextMenu.tsx+src/modules/sql-editor/components/SharePopoverBody.tsx+src/modules/sql-editor/components/StandardPanel/SQLUploadButton.tsx+src/modules/sql-editor/components/TabItem.tsx+src/modules/sql-editor/components/TabItem/Label.tsx+src/modules/sql-editor/components/TabList.tsx+src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx+```++Current snapshot after excluding CSS-only owners: 42 files, 58 fingerprints, and 71 occurrences. Most are button sizing; the behavior-sensitive tail includes `ConnectChooser`, `HistorySearchInput`, `VirtualDataTable`, `SharePopoverBody`, `SQLUploadButton`, `TabItem`, `TabList`, and `TerminalPanel`.++- [ ] Run the complete SQL Editor module suite before editing and preserve its result as the behavioral baseline.+- [ ] Migrate in four independently committed sub-waves: connection/toolbar controls, schema/panel controls, result-view controls, then tabs/uploads/terminal.+- [ ] Replace 20px and 22px controls with `xs`, 28px controls with `sm`, 36px controls with `md`, and square controls with `shape="square"`. Do not shrink the intended shared control to match an accidental neighboring measurement.+- [ ] Replace native search/text/file controls with shared primitives while preserving IME, Enter/Escape handling, file selection, focus restoration, resize, virtualization, clipboard, and editor shortcuts.+- [ ] Preserve result-table cell geometry and virtualization measurements; shared Button styles must not alter row height or measured canvas/table dimensions.+- [ ] Run focused tests after each sub-wave and the full SQL Editor suite after all four.+- [ ] Confirm `src/modules/sql-editor/` is absent from the report, write the debt snapshot, run the scanner, and commit each sub-wave separately.++### Task 12: Resolve Functional Colors And Remove The Debt System++**Files:**+- Modify: `frontend/src/components/Watermark.tsx`+- Modify: `frontend/src/assets/css/tailwind.css` only if a genuinely new semantic role is required+- Modify: `frontend/scripts/check-ui-guideline.mjs`+- Modify: `frontend/scripts/check-ui-guideline.test.mjs`+- Delete: `frontend/scripts/ui-guideline-legacy-debt.json`+- Modify: `docs/agents/frontend-ux.md`+- Modify: `frontend/AGENTS.md`++- [ ] Add a failing Watermark test that proves both watermark layers still generate non-empty data URLs with their intended opacity and that theme resolution does not produce an invalid canvas color.+- [ ] Replace AccountMultiSelect's literal blue with `bg-info` during Task 9.+- [ ] Resolve Watermark colors from existing semantic `error` and `control` CSS channels, applying the security-specific alpha in the canvas adapter. Do not move literal RGB strings to another TypeScript file or add a scanner ignore path.+- [ ] Run `node frontend/scripts/check-ui-guideline.mjs --report-only` and require `No UI guideline violations found`.+- [ ] Add a failing scanner integration test for zero-debt operation without a debt file.+- [ ] Simplify the scanner so normal mode fails on any violation and succeeds on zero; remove baseline comparison, stale-entry handling, metadata, and `--write-baseline` support.+- [ ] Delete `ui-guideline-legacy-debt.json` and update canonical docs/agent guidance to state zero-tolerance enforcement.+- [ ] Preserve unit coverage for every rule even though baseline comparison tests are removed.+- [ ] Run the complete verification sequence below and commit as `refactor(frontend): enforce zero UX guideline debt`.++## Final Verification++- [ ] `CI=true pnpm --dir frontend fix`+- [ ] `CI=true pnpm --dir frontend check`+- [ ] `CI=true pnpm --dir frontend type-check`+- [ ] `CI=true pnpm --dir frontend test`+- [ ] `node frontend/scripts/check-ui-guideline.mjs --report-only`+- [ ] `git diff --check`+- [ ] Confirm `frontend/scripts/ui-guideline-legacy-debt.json` does not exist.+- [ ] Confirm no feature file imports Base UI controls directly to evade a shared primitive.+- [ ] Confirm no new semantic CSS token duplicates an existing role.+- [ ] Review desktop and mobile screenshots for every sheet, table, form, and editor workflow changed in Tasks 7-11.++The known unrelated `frontend/src/react/` structure failure must be handled separately if it still exists; it must not be hidden by this migration or mistaken for a UX regression.diff --git a/frontend/AGENTS.md b/frontend/AGENTS.mdindex 7015061519..2adbb343ff 100644--- a/frontend/AGENTS.md+++ b/frontend/AGENTS.md@@ -9,6 +9,14 @@ This file provides additional guidance to AI coding assistants working under `./- All product UI code is React. Write new UI following the stack and component patterns in the root `../AGENTS.md` and the shadcn guidance below. The `pev2` adapter under `src/apps/explain-visualizer/` is the only Vue runtime exception.+## UX contract++- Follow [`../docs/agents/frontend-ux.md`](../docs/agents/frontend-ux.md) as the canonical source for foundations, page and sheet forms, sticky actions, dialogs, wizards, tables, pagination, selection, and responsive behavior.+- New shared UI and every UI element directly modified by a change MUST follow the guideline. Do not copy an adjacent legacy pattern merely because it is already present.+- Existing feature violations in `scripts/ui-guideline-legacy-debt.json` are temporary incremental exceptions, not permission for new debt. A change may leave unrelated fingerprints in place, but MUST NOT add, mutate, or increase them.+- Repeated measurements belong in `src/components/ui/styles.stylex.ts`; semantic colors belong in `src/assets/css/tailwind.css`; variants belong in the shared primitive's CVA definition.+- Run `pnpm --dir frontend check` or `node frontend/scripts/check-ui-guideline.mjs` after UI work. When a change removes legacy debt, run `node frontend/scripts/check-ui-guideline.mjs --write-baseline`; the updater accepts reductions only.+## Source ownershipUse route ownership as the primary organization axis. Do not add a generic `features/` directory.diff --git a/frontend/package.json b/frontend/package.jsonindex c0a7d1a2b3..c587dd9268 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -10,7 +10,7 @@"release-docker": "export NODE_OPTIONS=--max_old_space_size=8000 && pnpm run prepare:artifacts && vite build --mode release","release-aws": "export NODE_OPTIONS=--max_old_space_size=8000 && pnpm run prepare:artifacts && vite build --mode release-aws","precheck": "pnpm run prepare:artifacts",- "check": "biome ci . && node scripts/check-frontend-structure.mjs && node scripts/check-no-crypto-randomuuid.mjs && node scripts/check-react-i18n.mjs && node scripts/check-react-layering.mjs && node scripts/sort_i18n_keys.mjs --check",+ "check": "biome ci . && node scripts/check-frontend-structure.mjs && node scripts/check-ui-guideline.mjs && node scripts/check-no-crypto-randomuuid.mjs && node scripts/check-react-i18n.mjs && node scripts/check-react-layering.mjs && node scripts/sort_i18n_keys.mjs --check","fix": "pnpm run sort:i18n && biome check --write .","bundle-visualize": "export NODE_OPTIONS=--max_old_space_size=80000 && vite-bundle-visualizer -c vite.config.ts","pretype-check": "pnpm run prepare:artifacts",diff --git a/frontend/scripts/check-frontend-structure.mjs b/frontend/scripts/check-frontend-structure.mjsindex e662f0f7c6..7aa6225f73 100644--- a/frontend/scripts/check-frontend-structure.mjs+++ b/frontend/scripts/check-frontend-structure.mjs@@ -82,6 +82,7 @@ const agentFiles = [resolve(repoRoot, "AGENTS.md"),resolve(repoRoot, "CLAUDE.md"),resolve(repoRoot, "docs/superpowers/AGENTS.md"),+ resolve(repoRoot, "docs/agents/frontend-ux.md"),resolve(frontendRoot, "AGENTS.md"),resolve(frontendRoot, "CLAUDE.md"),resolve(frontendRoot, "components.json"),diff --git a/frontend/scripts/check-ui-guideline.mjs b/frontend/scripts/check-ui-guideline.mjsnew file mode 100644index 0000000000..880e943d83--- /dev/null+++ b/frontend/scripts/check-ui-guideline.mjs@@ -0,0 +1,467 @@+// Enforces the objective subset of docs/agents/frontend-ux.md.+//+// Existing feature debt is recorded as exact file/rule/token fingerprints in+// ui-guideline-legacy-debt.json. Shared primitives cannot use debt exceptions.+// This is a conservative static scanner, not a complete Tailwind evaluator.++import {+ existsSync,+ readFileSync,+ readdirSync,+ writeFileSync,+} from "node:fs";+import { dirname, relative, resolve } from "node:path";+import { fileURLToPath } from "node:url";+import ts from "typescript-6";++const scriptDir = dirname(fileURLToPath(import.meta.url));+const frontendRoot = resolve(scriptDir, "..");+const sourceRoot = resolve(frontendRoot, "src");+const baselinePath = resolve(scriptDir, "ui-guideline-legacy-debt.json");+const sharedPrimitivePrefix = "src/components/ui/";+const baselineDescription =+ "Committed legacy UX debt. New or increased violations are rejected.";+const baselineUpdateCommand =+ "node frontend/scripts/check-ui-guideline.mjs --write-baseline";+const baselineRemovalCondition =+ "Delete this file and baseline handling after all violations are fixed.";++const legacyRules = [+ "no-ad-hoc-sheet-width",+ "no-arbitrary-gap",+ "no-arbitrary-type",+ "no-manual-dark",+ "no-native-control",+ "no-raw-color",+ "no-space-between",+];+const enforcedRules = [+ ...legacyRules,+ "no-button-dimension-override",+ "no-literal-color",+ "no-off-scale-gap",+ "no-off-scale-radius",+ "no-raw-table",+].sort();++const ignoredPrefixes = ["src/apps/explain-visualizer/", "src/types/proto-es/"];+const nativeControls = new Set(["button", "input", "select", "textarea"]);+const rawColorFamilies = [+ "slate",+ "gray",+ "zinc",+ "neutral",+ "stone",+ "red",+ "orange",+ "amber",+ "yellow",+ "lime",+ "green",+ "emerald",+ "teal",+ "cyan",+ "sky",+ "blue",+ "indigo",+ "violet",+ "purple",+ "fuchsia",+ "pink",+ "rose",+ "black",+ "white",+].join("|");+const rawColorProperties = [+ "accent",+ "bg",+ "border",+ "caret",+ "divide",+ "fill",+ "outline",+ "placeholder",+ "ring",+ "shadow",+ "stroke",+ "text",+].join("|");+const rawColorPattern = new RegExp(+ `(?:^|:)(?:${rawColorProperties})-(?:${rawColorFamilies})(?:-|/|$)`+);+const approvedGapValues = new Set(["0", "1", "1.5", "2", "3", "4", "6", "8"]);+const approvedRadiusValues = new Set(["none", "xs", "sm", "full"]);+const cssColorPropertyPattern = /^(?:color|[A-Za-z]+Color)$/;+const literalColorPattern = /#[\da-f]{3,8}\b|\b(?:rgb|rgba|hsl|hsla)\s*\(/gi;++const isIgnoredPath = (path) =>+ ignoredPrefixes.some((prefix) => path.startsWith(prefix));++const isSharedPrimitive = (path) => path.startsWith(sharedPrimitivePrefix);++const sourceKind = (path) =>+ path.endsWith(".tsx") ? ts.ScriptKind.TSX : ts.ScriptKind.TS;++const createSourceFile = (source, path) =>+ ts.createSourceFile(path, source, ts.ScriptTarget.Latest, true, sourceKind(path));++const getTagName = (tagName) => {+ if (ts.isIdentifier(tagName)) return tagName.text;+ if (ts.isPropertyAccessExpression(tagName)) return tagName.name.text;+ return tagName.getText();+};++const staticStrings = (node) => {+ if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node)) {+ return [node.text];+ }+ if (ts.isTemplateExpression(node)) {+ return [+ node.head.text,+ ...node.templateSpans.flatMap((span) => [+ ...staticStrings(span.expression),+ span.literal.text,+ ]),+ ];+ }+ if (ts.isBinaryExpression(node) && node.operatorToken.kind === ts.SyntaxKind.PlusToken) {+ return [...staticStrings(node.left), ...staticStrings(node.right)];+ }+ if (ts.isCallExpression(node)) {+ return node.arguments.flatMap(staticStrings);+ }+ if (ts.isConditionalExpression(node)) {+ return [...staticStrings(node.whenTrue), ...staticStrings(node.whenFalse)];+ }+ if (ts.isParenthesizedExpression(node)) return staticStrings(node.expression);+ return [];+};++const classTokens = (value) => value.split(/\s+/).filter(Boolean);++const attributeTokens = (node, attributeNames) => {+ const attribute = node.attributes.properties.find(+ (property) =>+ ts.isJsxAttribute(property) &&+ attributeNames.has(property.name.getText())+ );+ if (!attribute || !ts.isJsxAttribute(attribute) || !attribute.initializer) {+ return [];+ }++ const initializer = attribute.initializer;+ const values = ts.isJsxExpression(initializer) && initializer.expression+ ? staticStrings(initializer.expression)+ : staticStrings(initializer);+ return values.flatMap(classTokens);+};++const rulesForToken = (token) => {+ const rules = [];+ if (/(?:^|:)space-[xy]-/.test(token)) rules.push("no-space-between");+ if (rawColorPattern.test(token)) rules.push("no-raw-color");+ if (token.includes("dark:")) rules.push("no-manual-dark");+ if (/(?:^|:)(?:gap|gap-x|gap-y)-\[[^\]]+\]/.test(token)) {+ rules.push("no-arbitrary-gap");+ }+ const gapMatch = token.match(+ /(?:^|:)(?:gap|gap-x|gap-y)-(\d+(?:\.\d+)?)!?$/+ );+ if (gapMatch && !approvedGapValues.has(gapMatch[1])) {+ rules.push("no-off-scale-gap");+ }+ const radiusMatch = token.match(+ /(?:^|:)rounded(?:-[trblse]{1,2})?-(\[[^\]]+\]|[a-z0-9.]+)!?$/+ );+ if (radiusMatch && !approvedRadiusValues.has(radiusMatch[1])) {+ rules.push("no-off-scale-radius");+ }+ if (/(?:^|:)(?:text|leading)-\[[^\]]+\]/.test(token)) {+ rules.push("no-arbitrary-type");+ }+ return rules;+};++const addViolation = (counts, path, rule, token) => {+ const key = JSON.stringify([path, rule, token]);+ const current = counts.get(key);+ counts.set(key, {+ path,+ rule,+ token,+ count: (current?.count ?? 0) + 1,+ });+};++const sortViolations = (violations) =>+ [...violations].sort(+ (a, b) =>+ a.path.localeCompare(b.path) ||+ a.rule.localeCompare(b.rule) ||+ a.token.localeCompare(b.token)+ );++export const isScannableSourcePath = (path) =>+ /\.(?:ts|tsx)$/.test(path) &&+ !path.endsWith(".d.ts") &&+ !/\.(?:test|spec)\.(?:ts|tsx)$/.test(path);++const scanSheetWidth = (node, path, counts) => {+ if (getTagName(node.tagName) !== "SheetContent") return;+ for (const token of attributeTokens(node, new Set(["className"]))) {+ if (/(?:^|:)(?:w|min-w|max-w)-/.test(token)) {+ addViolation(counts, path, "no-ad-hoc-sheet-width", token);+ }+ }+};++const scanButtonDimensions = (node, path, counts) => {+ if (isSharedPrimitive(path) || getTagName(node.tagName) !== "Button") return;+ for (const token of attributeTokens(node, new Set(["class", "className"]))) {+ const isDimensionOverride = /(?:^|:)(?:h|size)-/.test(token);+ const isResponsiveOverride =+ /^(?:sm|md|lg|xl|2xl|max-(?:sm|md|lg|xl|2xl)):(?:h|size)-/.test(+ token+ );+ if (isDimensionOverride && !isResponsiveOverride) {+ addViolation(counts, path, "no-button-dimension-override", token);+ }+ }+};++const scanLiteralColor = (node, path, counts) => {+ if (!ts.isPropertyAssignment(node)) return;+ const propertyName = ts.isIdentifier(node.name) || ts.isStringLiteral(node.name)+ ? node.name.text+ : "";+ if (!cssColorPropertyPattern.test(propertyName)) return;++ const initializer = node.initializer;+ const values = ts.isStringLiteral(initializer) ||+ ts.isNoSubstitutionTemplateLiteral(initializer)+ ? [initializer.text]+ : [];+ for (const value of values) {+ if (value.includes("var(--")) continue;+ for (const match of value.matchAll(literalColorPattern)) {+ addViolation(counts, path, "no-literal-color", match[0]);+ }+ }+};++export function scanSource(source, path) {+ if (isIgnoredPath(path)) return [];++ const sourceFile = createSourceFile(source, path);+ const counts = new Map();+ const scanTokenValue = (value) => {+ for (const token of classTokens(value)) {+ for (const rule of rulesForToken(token)) {+ addViolation(counts, path, rule, token);+ }+ }+ };+ const visit = (node) => {+ if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node)) {+ scanTokenValue(node.text);+ }+ if (ts.isTemplateExpression(node)) {+ scanTokenValue(node.head.text);+ for (const span of node.templateSpans) scanTokenValue(span.literal.text);+ }++ if (ts.isJsxOpeningElement(node) || ts.isJsxSelfClosingElement(node)) {+ const tagName = getTagName(node.tagName);+ if (!isSharedPrimitive(path) && nativeControls.has(tagName)) {+ addViolation(counts, path, "no-native-control", tagName);+ }+ if (!isSharedPrimitive(path) && tagName === "table") {+ addViolation(counts, path, "no-raw-table", tagName);+ }+ scanSheetWidth(node, path, counts);+ scanButtonDimensions(node, path, counts);+ }+ scanLiteralColor(node, path, counts);+ ts.forEachChild(node, visit);+ };+ visit(sourceFile);+ return sortViolations(counts.values());+}++const violationKey = ({ path, rule, token }) =>+ JSON.stringify([path, rule, token]);++export function compareWithBaseline(violations, baseline) {+ if (+ ![1, 2].includes(baseline.version) ||+ !Array.isArray(baseline.violations) ||+ (baseline.version === 2 && !Array.isArray(baseline.rules))+ ) {+ return [{ kind: "invalid", rule: "baseline", token: "version" }];+ }++ const issues = [];+ const currentByKey = new Map();+ const baselineByKey = new Map();++ for (const violation of violations) {+ if (isSharedPrimitive(violation.path)) {+ issues.push({ kind: "shared", ...violation });+ continue;+ }+ currentByKey.set(violationKey(violation), violation);+ }+ for (const violation of baseline.violations) {+ if (!isSharedPrimitive(violation.path)) {+ baselineByKey.set(violationKey(violation), violation);+ }+ }++ for (const [key, violation] of currentByKey) {+ const expected = baselineByKey.get(key);+ if (!expected || expected.count !== violation.count) {+ issues.push({ kind: "new", ...violation });+ }+ }+ for (const [key, violation] of baselineByKey) {+ const current = currentByKey.get(key);+ if (!current || current.count !== violation.count) {+ issues.push({ kind: "stale", ...violation });+ }+ }++ return sortViolations(issues);+}++export function getBaselineUpdateIssues(violations, baseline) {+ if (+ ![1, 2].includes(baseline.version) ||+ !Array.isArray(baseline.violations) ||+ (baseline.version === 2 && !Array.isArray(baseline.rules))+ ) {+ return [{ kind: "invalid", rule: "baseline", token: "version" }];+ }++ const previouslyEnforcedRules = new Set(+ baseline.version === 1 ? legacyRules : baseline.rules+ );++ const expectedByKey = new Map(+ baseline.violations+ .filter((violation) => !isSharedPrimitive(violation.path))+ .map((violation) => [violationKey(violation), violation])+ );+ const issues = [];+ for (const violation of violations) {+ if (isSharedPrimitive(violation.path)) {+ issues.push({ kind: "shared", ...violation });+ continue;+ }+ if (!previouslyEnforcedRules.has(violation.rule)) continue;+ const expected = expectedByKey.get(violationKey(violation));+ if (!expected || violation.count > expected.count) {+ issues.push({ kind: "new", ...violation });+ }+ }+ return sortViolations(issues);+}++const findSourceFiles = (directory) =>+ readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {+ const path = resolve(directory, entry.name);+ if (entry.isDirectory()) return findSourceFiles(path);+ if (!isScannableSourcePath(path)) return [];+ return [path];+ });++const scanFrontend = () =>+ sortViolations(+ findSourceFiles(sourceRoot).flatMap((file) => {+ const path = relative(frontendRoot, file);+ return scanSource(readFileSync(file, "utf8"), path);+ })+ );++const printViolation = (violation) => {+ const count = violation.count > 1 ? ` (${violation.count} occurrences)` : "";+ console.error(+ `- ${violation.path}: ${violation.rule}: ${violation.token}${count}`+ );+};++const run = () => {+ const writeBaseline = process.argv.includes("--write-baseline");+ const reportOnly = process.argv.includes("--report-only");+ const violations = scanFrontend();++ if (writeBaseline) {+ const previousBaseline = existsSync(baselinePath)+ ? JSON.parse(readFileSync(baselinePath, "utf8"))+ : { version: 1, violations: [] };+ const updateIssues = existsSync(baselinePath)+ ? getBaselineUpdateIssues(violations, previousBaseline)+ : violations+ .filter((violation) => isSharedPrimitive(violation.path))+ .map((violation) => ({ kind: "shared", ...violation }));+ if (updateIssues.length > 0) {+ console.error(+ "The UI guideline baseline may only remove existing debt. Fix new and shared violations first:\n"+ );+ updateIssues.forEach(printViolation);+ process.exit(1);+ }+ const baseline = {+ description: baselineDescription,+ updateCommand: baselineUpdateCommand,+ removalCondition: baselineRemovalCondition,+ version: 2,+ rules: enforcedRules,+ violations,+ };+ writeFileSync(baselinePath, `${JSON.stringify(baseline, null, 2)}\n`);+ console.log(`Wrote ${violations.length} UI guideline fingerprints`);+ return;+ }++ if (reportOnly) {+ if (violations.length === 0) {+ console.log("No UI guideline violations found");+ return;+ }+ console.error(`Found ${violations.length} UI guideline fingerprints:\n`);+ violations.forEach(printViolation);+ return;+ }++ if (!existsSync(baselinePath)) {+ console.error(+ "UI guideline baseline is missing. Run with --write-baseline after fixing shared violations."+ );+ process.exit(1);+ }++ const baseline = JSON.parse(readFileSync(baselinePath, "utf8"));+ const issues = compareWithBaseline(violations, baseline);+ if (issues.length > 0) {+ console.error("UI guideline ratchet failed:\n");+ for (const issue of issues) {+ const prefix =+ issue.kind === "stale"+ ? "remove stale baseline"+ : issue.kind === "shared"+ ? "fix shared primitive"+ : issue.kind === "new"+ ? "new violation"+ : "invalid baseline";+ console.error(`${prefix}:`);+ printViolation(issue);+ }+ process.exit(1);+ }++ console.log(`UI guideline check passed (${violations.length} legacy fingerprints)`);+};++if (process.argv[1] && fileURLToPath(import.meta.url) === resolve(process.argv[1])) {+ run();+}diff --git a/frontend/scripts/check-ui-guideline.test.mjs b/frontend/scripts/check-ui-guideline.test.mjsnew file mode 100644index 0000000000..70cd2fce61--- /dev/null+++ b/frontend/scripts/check-ui-guideline.test.mjs@@ -0,0 +1,358 @@+import { existsSync, readFileSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, test } from "vitest";+import {+ compareWithBaseline,+ getBaselineUpdateIssues,+ isScannableSourcePath,+ scanSource,+} from "./check-ui-guideline.mjs";++const FEATURE_FILE = "src/routes/project/Feature.tsx";+const SHARED_FILE = "src/components/ui/control.tsx";++describe("check-ui-guideline", () => {+ test("stores legacy debt as documented repository state", () => {+ const debtPath = join(import.meta.dirname, "ui-guideline-legacy-debt.json");+ const oldBaselinePath = join(import.meta.dirname, "ui-guideline-baseline.json");++ expect(existsSync(debtPath)).toBe(true);+ expect(existsSync(oldBaselinePath)).toBe(false);++ const debt = JSON.parse(readFileSync(debtPath, "utf8"));+ expect(debt.description).toBe(+ "Committed legacy UX debt. New or increased violations are rejected."+ );+ expect(debt.updateCommand).toBe(+ "node frontend/scripts/check-ui-guideline.mjs --write-baseline"+ );+ expect(debt.removalCondition).toBe(+ "Delete this file and baseline handling after all violations are fixed."+ );+ });++ test("scans product sources but not tests or generated declarations", () => {+ expect(isScannableSourcePath("src/routes/project/Feature.tsx")).toBe(true);+ expect(isScannableSourcePath("src/routes/project/Feature.test.tsx")).toBe(false);+ expect(isScannableSourcePath("src/routes/project/Feature.spec.ts")).toBe(false);+ expect(isScannableSourcePath("src/env.d.ts")).toBe(false);+ });++ test("allows semantic utilities and shared components", () => {+ const violations = scanSource(+ `+import { Button } from "@/components/ui/button";++export function Feature() {+ return (+ <div className="flex gap-x-2 bg-background text-control">+ <Button>Save</Button>+ </div>+ );+}+`,+ FEATURE_FILE+ );++ expect(violations).toEqual([]);+ });++ test("flags objective utility violations", () => {+ const violations = scanSource(+ `+export function Feature() {+ return (+ <div className="space-x-2 bg-gray-100 dark:bg-gray-900 gap-[10px] text-[13px] leading-[18px]" />+ );+}+`,+ FEATURE_FILE+ );++ expect(violations).toEqual(+ expect.arrayContaining([+ expect.objectContaining({ rule: "no-space-between", token: "space-x-2" }),+ expect.objectContaining({ rule: "no-raw-color", token: "bg-gray-100" }),+ expect.objectContaining({ rule: "no-manual-dark", token: "dark:bg-gray-900" }),+ expect.objectContaining({ rule: "no-arbitrary-gap", token: "gap-[10px]" }),+ expect.objectContaining({ rule: "no-arbitrary-type", token: "text-[13px]" }),+ expect.objectContaining({ rule: "no-arbitrary-type", token: "leading-[18px]" }),+ ])+ );+ });++ test("flags spacing values outside the product scale", () => {+ const violations = scanSource(+ '<div className="gap-0 gap-1 gap-x-1.5 gap-y-2 gap-3 gap-4 gap-6 gap-8 gap-0.5 md:gap-x-5" />;',+ FEATURE_FILE+ );++ expect(violations).toEqual([+ expect.objectContaining({ rule: "no-off-scale-gap", token: "gap-0.5" }),+ expect.objectContaining({ rule: "no-off-scale-gap", token: "md:gap-x-5" }),+ ]);+ });++ test("flags radii outside the approved corner vocabulary", () => {+ const violations = scanSource(+ '<div className="rounded-none rounded-xs rounded-sm rounded-full rounded-md md:rounded-t-lg rounded-[3px]" />;',+ FEATURE_FILE+ );++ expect(violations).toEqual(+ expect.arrayContaining([+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-md" }),+ expect.objectContaining({+ rule: "no-off-scale-radius",+ token: "md:rounded-t-lg",+ }),+ expect.objectContaining({+ rule: "no-off-scale-radius",+ token: "rounded-[3px]",+ }),+ ])+ );+ expect(violations).toHaveLength(3);+ });++ test("allows responsive Button sizing but flags other dimension overrides", () => {+ const violations = scanSource(+ `+export function Feature() {+ return (+ <>+ <Button size="sm" className="w-full" />+ <Button+ className={cn(+ "h-8",+ compact ? "md:size-7" : "",+ "hover:h-9 2xl:h-9 max-xl:size-7"+ )}+ />+ </>+ );+}+`,+ FEATURE_FILE+ );++ expect(violations).toEqual([+ expect.objectContaining({+ rule: "no-button-dimension-override",+ token: "h-8",+ }),+ expect.objectContaining({+ rule: "no-button-dimension-override",+ token: "hover:h-9",+ }),+ ]);+ });++ test("flags raw feature tables but allows the shared table owner", () => {+ const source = '<table><tbody><tr><td>Value</td></tr></tbody></table>;';++ expect(scanSource(source, FEATURE_FILE)).toEqual([+ expect.objectContaining({ rule: "no-raw-table", token: "table" }),+ ]);+ expect(scanSource(source, "src/components/ui/table.tsx")).toEqual([]);+ });++ test("flags literal colors assigned to CSS color properties", () => {+ const violations = scanSource(+ `+const direct = { backgroundColor: "#3B82F6" };+const fixed = { color: "hsl(220, 55%, 55%)" };+const dynamicDataColor = { color: \`hsl(\${hue}, 55%, 55%)\` };+const camelCase = { borderTopColor: "rgb(1 2 3)" };+const semantic = { borderColor: "rgb(var(--color-control-border))" };+const data = { color: colorToHex("#4f46e5") };+`,+ FEATURE_FILE+ );++ expect(violations).toEqual([+ expect.objectContaining({ rule: "no-literal-color", token: "#3B82F6" }),+ expect.objectContaining({+ rule: "no-literal-color",+ token: "hsl(",+ count: 1,+ }),+ expect.objectContaining({ rule: "no-literal-color", token: "rgb(" }),+ ]);+ });++ test("scans static portions of template expressions", () => {+ const violations = scanSource(+ 'const classes = `flex ${compact ? "gap-1" : "gap-2"} bg-gray-100`;',+ FEATURE_FILE+ );++ expect(violations).toEqual([+ expect.objectContaining({ rule: "no-raw-color", token: "bg-gray-100" }),+ ]);+ });++ test("flags native feature controls but allows primitive owners", () => {+ const source = `+export function Control() {+ return <button><input /><select /><textarea /></button>;+}+`;++ expect(scanSource(source, FEATURE_FILE)).toEqual(+ expect.arrayContaining([+ expect.objectContaining({ rule: "no-native-control", token: "button" }),+ expect.objectContaining({ rule: "no-native-control", token: "input" }),+ expect.objectContaining({ rule: "no-native-control", token: "select" }),+ expect.objectContaining({ rule: "no-native-control", token: "textarea" }),+ ])+ );+ expect(scanSource(source, SHARED_FILE)).toEqual([]);+ });++ test("flags ad hoc SheetContent widths", () => {+ const source = `+export function Feature() {+ return <SheetContent className="w-[42rem] max-w-4xl" />;+}+`;++ expect(scanSource(source, FEATURE_FILE)).toEqual(+ expect.arrayContaining([+ expect.objectContaining({+ rule: "no-ad-hoc-sheet-width",+ token: "w-[42rem]",+ }),+ expect.objectContaining({+ rule: "no-ad-hoc-sheet-width",+ token: "max-w-4xl",+ }),+ ])+ );+ expect(+ scanSource('<SheetContent width="wide" />;', FEATURE_FILE)+ ).toEqual([]);+ });++ test("accepts exact legacy fingerprints", () => {+ const violations = scanSource(+ '<div className="space-x-2 bg-gray-100" />;',+ FEATURE_FILE+ );+ const baseline = { version: 1, violations };++ expect(compareWithBaseline(violations, baseline)).toEqual([]);+ });++ test("rejects new and changed fingerprints", () => {+ const baselineViolations = scanSource(+ '<div className="space-x-2" />;',+ FEATURE_FILE+ );+ const currentViolations = scanSource(+ '<div className="space-x-4" />;',+ FEATURE_FILE+ );++ expect(+ compareWithBaseline(currentViolations, {+ version: 1,+ violations: baselineViolations,+ })+ ).toEqual(+ expect.arrayContaining([+ expect.objectContaining({ kind: "new", token: "space-x-4" }),+ expect.objectContaining({ kind: "stale", token: "space-x-2" }),+ ])+ );+ });++ test("rejects stale baseline entries after debt is removed", () => {+ const baselineViolations = scanSource(+ '<div className="space-x-2" />;',+ FEATURE_FILE+ );++ expect(+ compareWithBaseline([], { version: 1, violations: baselineViolations })+ ).toEqual([+ expect.objectContaining({ kind: "stale", token: "space-x-2" }),+ ]);+ });++ test("rejects baseline exceptions for shared primitives", () => {+ const sharedViolation = {+ path: SHARED_FILE,+ rule: "no-raw-color",+ token: "bg-gray-100",+ count: 1,+ };++ expect(+ compareWithBaseline([sharedViolation], {+ version: 1,+ violations: [sharedViolation],+ })+ ).toEqual([+ expect.objectContaining({ kind: "shared", token: "bg-gray-100" }),+ ]);+ });++ test("allows baseline updates only when debt shrinks", () => {+ const oldViolations = scanSource(+ '<div className="space-x-2 space-x-2 bg-gray-100" />;',+ FEATURE_FILE+ );+ const reducedViolations = scanSource(+ '<div className="space-x-2" />;',+ FEATURE_FILE+ );++ expect(+ getBaselineUpdateIssues(reducedViolations, {+ version: 1,+ violations: oldViolations,+ })+ ).toEqual([]);+ expect(+ getBaselineUpdateIssues(+ scanSource('<div className="space-x-4" />;', FEATURE_FILE),+ { version: 1, violations: oldViolations }+ )+ ).toEqual([+ expect.objectContaining({ kind: "new", token: "space-x-4" }),+ ]);+ });++ test("allows baseline updates to record only newly enforced rules", () => {+ const oldViolation = {+ path: FEATURE_FILE,+ rule: "no-space-between",+ token: "space-x-2",+ count: 1,+ };+ const newRuleViolation = {+ path: FEATURE_FILE,+ rule: "no-raw-table",+ token: "table",+ count: 1,+ };+ const baseline = {+ version: 2,+ rules: ["no-space-between"],+ violations: [oldViolation],+ };++ expect(+ getBaselineUpdateIssues([oldViolation, newRuleViolation], baseline)+ ).toEqual([]);+ expect(+ getBaselineUpdateIssues(+ [{ ...oldViolation, count: 2 }, newRuleViolation],+ baseline+ )+ ).toEqual([+ expect.objectContaining({ kind: "new", rule: "no-space-between" }),+ ]);+ });+});diff --git a/frontend/scripts/ui-guideline-legacy-debt.json b/frontend/scripts/ui-guideline-legacy-debt.jsonnew file mode 100644index 0000000000..f27b396d10--- /dev/null+++ b/frontend/scripts/ui-guideline-legacy-debt.json@@ -0,0 +1,3364 @@+{+ "description": "Committed legacy UX debt. New or increased violations are rejected.",+ "updateCommand": "node frontend/scripts/check-ui-guideline.mjs --write-baseline",+ "removalCondition": "Delete this file and baseline handling after all violations are fixed.",+ "version": 2,+ "rules": [+ "no-ad-hoc-sheet-width",+ "no-arbitrary-gap",+ "no-arbitrary-type",+ "no-button-dimension-override",+ "no-literal-color",+ "no-manual-dark",+ "no-native-control",+ "no-off-scale-gap",+ "no-off-scale-radius",+ "no-raw-color",+ "no-raw-table",+ "no-space-between"+ ],+ "violations": [+ {+ "path": "src/app/components/SessionExpiredSurface.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/app/components/SessionExpiredSurface.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/app/layouts/SplashLayout.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/AccountMultiSelect.tsx",+ "rule": "no-literal-color",+ "token": "#3B82F6",+ "count": 1+ },+ {+ "path": "src/components/AccountMultiSelect.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-manual-dark",+ "token": "dark:bg-dark-bg",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-manual-dark",+ "token": "dark:bg-zinc-700",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-manual-dark",+ "token": "dark:border-zinc-700",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-manual-dark",+ "token": "dark:placeholder:text-gray-500",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-manual-dark",+ "token": "dark:text-gray-100",+ "count": 2+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-raw-color",+ "token": "dark:bg-zinc-700",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-raw-color",+ "token": "dark:border-zinc-700",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-raw-color",+ "token": "dark:placeholder:text-gray-500",+ "count": 1+ },+ {+ "path": "src/components/AdvancedSearch.tsx",+ "rule": "no-raw-color",+ "token": "dark:text-gray-100",+ "count": 2+ },+ {+ "path": "src/components/AuditLogTable.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/auth/EmailCodeSigninForm.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/auth/EmailCodeSigninForm.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/components/auth/PasswordSigninForm.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/auth/PasswordSigninForm.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/components/auth/UserPasswordFields.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 2+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-200",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-indigo-50",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-white/10",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-white",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-800",+ "count": 1+ },+ {+ "path": "src/components/BannersWrapper.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 5+ },+ {+ "path": "src/components/ClassificationTree.tsx",+ "rule": "no-raw-color",+ "token": "bg-amber-500",+ "count": 1+ },+ {+ "path": "src/components/ClassificationTree.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-200",+ "count": 1+ },+ {+ "path": "src/components/ClassificationTree.tsx",+ "rule": "no-raw-color",+ "token": "bg-orange-300",+ "count": 1+ },+ {+ "path": "src/components/ClassificationTree.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-500",+ "count": 1+ },+ {+ "path": "src/components/ClassificationTree.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-200",+ "count": 1+ },+ {+ "path": "src/components/CreateWorkloadIdentitySheet.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/CreateWorkloadIdentitySheet.tsx",+ "rule": "no-native-control",+ "token": "select",+ "count": 2+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-blue-50",+ "count": 1+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50/50",+ "count": 1+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-100",+ "count": 1+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-200",+ "count": 3+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-200",+ "count": 2+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-50",+ "count": 1+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-400",+ "count": 3+ },+ {+ "path": "src/components/CustomApproval/RulesSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/components/DashboardBodyShell.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/DashboardBodyShell.tsx",+ "rule": "no-raw-color",+ "token": "bg-black/20",+ "count": 1+ },+ {+ "path": "src/components/DashboardBodyShell.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/DashboardFrameShell.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/DashboardSidebar.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-300",+ "count": 1+ },+ {+ "path": "src/components/DashboardSidebar.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 3+ },+ {+ "path": "src/components/DashboardSidebar.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-700",+ "count": 1+ },+ {+ "path": "src/components/database/DatabaseOverviewInfo.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/components/database/LabelEditorSheet.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/DatabaseGroupDataTable.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/DatabaseGroupDataTable.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/components/DatabaseGroupDataTable.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-white",+ "count": 1+ },+ {+ "path": "src/components/DatabaseResourceSelector.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 6+ },+ {+ "path": "src/components/DatabaseSelect.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-0.5",+ "count": 1+ },+ {+ "path": "src/components/EnvironmentSelect.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-0.5",+ "count": 1+ },+ {+ "path": "src/components/ExprEditor.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 12+ },+ {+ "path": "src/components/ExprEditor.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/components/ExprEditor.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/components/header/DashboardHeader.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/header/DashboardHeader.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-gray-900",+ "count": 1+ },+ {+ "path": "src/components/header/DashboardHeader.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/components/header/HeaderBreadcrumb.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 2+ },+ {+ "path": "src/components/header/HeaderBreadcrumb.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-auto",+ "count": 3+ },+ {+ "path": "src/components/header/HeaderBreadcrumb.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-6",+ "count": 1+ },+ {+ "path": "src/components/header/HeaderBreadcrumb.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/components/header/ProfileMenuTrigger.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/header/ProfileMenuTrigger.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-3xl",+ "count": 3+ },+ {+ "path": "src/components/header/ProfileMenuTrigger.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 3+ },+ {+ "path": "src/components/header/ProjectSwitchPanel.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-5",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-l-[3px]",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-r-[3px]",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 2+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-300",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-100",+ "count": 1+ },+ {+ "path": "src/components/instance/CreateDataSourceExample.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/components/instance/CredentialSourceForm.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/components/instance/CredentialSourceForm.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 2+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 3+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-raw-color",+ "token": "bg-indigo-100",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceForm.tsx",+ "rule": "no-raw-color",+ "token": "text-indigo-800",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceSection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 4+ },+ {+ "path": "src/components/instance/DataSourceSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-red-700",+ "count": 1+ },+ {+ "path": "src/components/instance/DataSourceSection.tsx",+ "rule": "no-raw-color",+ "token": "text-red-500",+ "count": 1+ },+ {+ "path": "src/components/instance/InfoPanel.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[12px]",+ "count": 1+ },+ {+ "path": "src/components/instance/InfoPanel.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/instance/InfoPanel.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-l-[3px]",+ "count": 1+ },+ {+ "path": "src/components/instance/InfoPanel.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-r-[3px]",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceDashboard.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-5",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceDetailView.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-700",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceDetailView.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceFormBody.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[11px]",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceFormBody.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 8+ },+ {+ "path": "src/components/instance/InstanceFormBody.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceFormBody.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 1+ },+ {+ "path": "src/components/instance/InstanceFormBody.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 4+ },+ {+ "path": "src/components/instance/SshConnectionForm.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/components/instance/SslCertificateForm.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/components/InstanceAssignmentSheet.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-5",+ "count": 1+ },+ {+ "path": "src/components/InstanceAssignmentSheet.tsx",+ "rule": "no-raw-table",+ "token": "table",+ "count": 1+ },+ {+ "path": "src/components/InstanceSelect.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-0.5",+ "count": 1+ },+ {+ "path": "src/components/IssueLabelSelect.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/IssueTable.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/components/LabelListEditor.tsx",+ "rule": "no-arbitrary-type",+ "token": "leading-[34px]",+ "count": 2+ },+ {+ "path": "src/components/LabelListEditor.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/LabelsDisplay.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/components/LearnMoreLink.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 1+ },+ {+ "path": "src/components/MarkdownEditor/MarkdownEditor.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/components/MatchedDatabaseView.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/components/MaxRowCountSelect.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/MaxRowCountSelect.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/components/monaco/DiffMonaco.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/components/monaco/MonacoEditor.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/components/plan-check/PlanCheckSection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/components/plan-check/PlanCheckSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 2+ },+ {+ "path": "src/components/plan-check/PlanCheckSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/components/plan-check/PlanCheckSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/plan-check/PlanCheckSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-100",+ "count": 1+ },+ {+ "path": "src/components/ProjectRouteShell.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/ProjectRouteShell.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/components/ProjectSidebar.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 3+ },+ {+ "path": "src/components/ProjectSidebar.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-700",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-200",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-300",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-indigo-400",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-indigo-500",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-indigo-600",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-50",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "group-hover:bg-gray-400",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-900",+ "count": 1+ },+ {+ "path": "src/components/Quickstart.tsx",+ "rule": "no-raw-color",+ "token": "text-indigo-600",+ "count": 1+ },+ {+ "path": "src/components/release/ReleaseInfoCard.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 3+ },+ {+ "path": "src/components/release/ReleaseInfoCard.tsx",+ "rule": "no-raw-color",+ "token": "bg-blue-100",+ "count": 1+ },+ {+ "path": "src/components/release/ReleaseInfoCard.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 2+ },+ {+ "path": "src/components/release/ReleaseInfoCard.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/components/release/ReleaseInfoCard.tsx",+ "rule": "no-raw-color",+ "token": "text-blue-800",+ "count": 1+ },+ {+ "path": "src/components/ResourceIdField.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/ResourceIdField.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/components/ResourceIdField.tsx",+ "rule": "no-raw-color",+ "token": "text-red-600",+ "count": 1+ },+ {+ "path": "src/components/ResourceIdField.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-600",+ "count": 1+ },+ {+ "path": "src/components/revision/RevisionDetailPanel.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/revision/RevisionDetailPanel.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-400",+ "count": 1+ },+ {+ "path": "src/components/sql-review/Panels.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/sql-review/Panels.tsx",+ "rule": "no-space-between",+ "token": "space-y-4",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-4",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-native-control",+ "token": "select",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-l",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-r",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-100",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-100",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "border-red-800",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "border-yellow-800",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-red-100",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-yellow-100",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "text-red-800",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleComponents.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-800",+ "count": 1+ },+ {+ "path": "src/components/sql-review/RuleTable.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 4+ },+ {+ "path": "src/components/sql-review/RuleTable.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/components/sql-review/TabsByEngine.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-200",+ "count": 1+ },+ {+ "path": "src/components/sql-review/TabsByEngine.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-800",+ "count": 1+ },+ {+ "path": "src/components/sql-review/TemplateSelector.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/components/TaskStatusIcon.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/components/TaskStatusIcon.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 2+ },+ {+ "path": "src/components/UserAvatar.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/components/UserCell.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-auto",+ "count": 1+ },+ {+ "path": "src/components/UserHoverCard.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-0.5",+ "count": 1+ },+ {+ "path": "src/components/Watermark.tsx",+ "rule": "no-literal-color",+ "token": "rgba(",+ "count": 2+ },+ {+ "path": "src/components/WorkspaceSetupGuide.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-auto",+ "count": 1+ },+ {+ "path": "src/components/WorkspaceSetupGuide.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 4+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "bg-amber-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "bg-blue-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "border-amber-200",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-800",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-900",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentChat.tsx",+ "rule": "no-raw-table",+ "token": "table",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-[34px]",+ "count": 2+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 5+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-raw-color",+ "token": "bg-amber-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-700",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentInput.tsx",+ "rule": "no-raw-color",+ "token": "text-red-700",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentWindow.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 7+ },+ {+ "path": "src/modules/agent/components/AgentWindow.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/AgentWindow.tsx",+ "rule": "no-raw-color",+ "token": "data-highlighted:bg-red-50",+ "count": 1+ },+ {+ "path": "src/modules/agent/components/ToolCallCard.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-600",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/ActionBar.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 2+ },+ {+ "path": "src/modules/ai/components/ChatView/ChatView.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/ChatView/Markdown/CodeBlock.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/modules/ai/components/DynamicSuggestions.tsx",+ "rule": "no-arbitrary-type",+ "token": "leading-[22px]",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/DynamicSuggestions.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-[22px]",+ "count": 3+ },+ {+ "path": "src/modules/ai/components/DynamicSuggestions.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-raw-color",+ "token": "bg-indigo-100",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-raw-color",+ "token": "border-indigo-400",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-indigo-50",+ "count": 3+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-raw-color",+ "token": "hover:border-indigo-400",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 3+ },+ {+ "path": "src/modules/ai/components/PromptInput.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 1+ },+ {+ "path": "src/modules/ai/components/PromptInput.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/common/FocusButton.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-t-md",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-50",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-50",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "bg-white/70",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-50",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "text-green-700",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "text-red-700",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-700",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/ER/TableNode.tsx",+ "rule": "no-raw-table",+ "token": "table",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/Navigator/Navigator.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/schema-diagram/SchemaDiagram.tsx",+ "rule": "no-raw-color",+ "token": "bg-white/40",+ "count": 1+ },+ {+ "path": "src/modules/schema-editor/Aside/AsideTree.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 1+ },+ {+ "path": "src/modules/schema-editor/Panels/IndexesEditor/IndexesEditor.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/schema-editor/Panels/PartitionsEditor/PartitionsEditor.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 2+ },+ {+ "path": "src/modules/schema-editor/Panels/PreviewPane.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/schema-editor/Panels/TableColumnEditor/TableColumnEditor.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 2+ },+ {+ "path": "src/modules/schema-editor/Panels/TableList/TableList.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 2+ },+ {+ "path": "src/modules/schema-editor/TabsContainer.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/AccessGrantItem.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 3+ },+ {+ "path": "src/modules/sql-editor/components/AccessGrantItem.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-[3px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/AdminModeButton.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/AsidePanel/ActionBarTabItem.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ConnectChooser.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ConnectChooser.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ConnectionChooserButton.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/ConnectionPane/DatabaseGroupTag.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ConnectionPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/EditorAction.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/EditorAction.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/FolderForm.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/HistoryPane.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/HistoryPane.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/HistorySearchInput.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/HistorySearchInput.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/MaskingReasonPopover.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-0.5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/common/CodeViewer.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/common/PanelSearchBox.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/ExternalTablesPanel/ExternalTablesPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/FunctionsPanel/FunctionsPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/PackagesPanel/PackagesPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/ProceduresPanel/ProceduresPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/TablesPanel/TableDetail.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/Panels/TriggersPanel/TriggersPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Panels/ViewsPanel/ViewDetail.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-8",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultPanel/BatchQuerySelect.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultPanel/BatchQuerySelect.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/BinaryFormatButton.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/detail-panel-search.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-[2px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DetailPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DetailPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DetailPanel.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-6",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-[2px]",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/ResultStatusBar.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-auto",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/SelectionCopyTooltips.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 3+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/SelectionCopyTooltips.tsx",+ "rule": "no-raw-color",+ "token": "border-white/30",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/SingleResultView.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/SingleResultView.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/SingleResultView.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-9",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/TableCell.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-6",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/TextSearchControl.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 3+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/VirtualDataBlock.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/VirtualDataTable.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-6",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/ResultView/VirtualDataTable.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/FlatTableList.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/HoverPanel/InfoItem.tsx",+ "rule": "no-arbitrary-type",+ "token": "leading-[20px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/HoverPanel/TableInfo.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/SchemaContextMenu.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/TreeNode/CheckNode.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/TreeNode/ColumnNode.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/TreeNode/icons.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[7px]",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/TreeNode/icons.tsx",+ "rule": "no-raw-color",+ "token": "fill-white",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SchemaPane/TreeNode/icons.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-500",+ "count": 2+ },+ {+ "path": "src/modules/sql-editor/components/SharePopoverBody.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-full",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SharePopoverBody.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/SQLEditorHomePage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/StandardPanel/SQLUploadButton.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/StandardPanel/SQLUploadButton.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TabItem.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-10",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TabItem/Label.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TabList.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TabList.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-t",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/TreeNodeSuffix.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-400",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/useExportGrantBypass.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-0.5",+ "count": 1+ },+ {+ "path": "src/modules/sql-editor/components/Welcome.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-10",+ "count": 1+ },+ {+ "path": "src/routes/auth/MultiFactorPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/auth/MultiFactorPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/auth/OAuth2ConsentPage.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 7+ },+ {+ "path": "src/routes/auth/OAuth2ConsentPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/auth/OAuth2ConsentPage.tsx",+ "rule": "no-space-between",+ "token": "space-y-1",+ "count": 1+ },+ {+ "path": "src/routes/auth/OAuth2ConsentPage.tsx",+ "rule": "no-space-between",+ "token": "space-y-6",+ "count": 1+ },+ {+ "path": "src/routes/auth/PasswordForgotPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/auth/PasswordResetPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/auth/PasswordResetPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/auth/SetupPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/auth/SigninPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/auth/SignupPage.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/auth/SignupPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/database-detail/DatabaseDetailHeader.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 6+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-color",+ "token": "bg-amber-500",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-200",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-color",+ "token": "bg-orange-300",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-500",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-200",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",+ "rule": "no-raw-table",+ "token": "table",+ "count": 2+ },+ {+ "path": "src/routes/project/database-detail/overview/TableMetadataTable.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 2+ },+ {+ "path": "src/routes/project/database-detail/panels/DatabaseCatalogPanel.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/revision/ImportRevisionSheet.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "max-w-[90vw]",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/revision/ImportRevisionSheet.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/revision/ImportRevisionSheet.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/database-detail/revision/ImportRevisionSheet.tsx",+ "rule": "no-native-control",+ "token": "select",+ "count": 1+ },+ {+ "path": "src/routes/project/DatabaseChangelogDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailAccessGrantDetails.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailActionBar.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "max-w-[32rem]",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailActionBar.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "w-[calc(100vw-2rem)]",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailActionBar.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-2.5",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailActionBar.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailActionBar.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailApprovalFlow.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[10px]",+ "count": 3+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailApprovalFlow.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 5+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[0.8rem]",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-200",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-gray-700",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "ring-white",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-400",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-700",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-b-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 3+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-t-md",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-50",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "border-yellow-200",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-800",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-900",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseCreateView.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-5",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseCreateView.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseCreateView.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 4+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseCreateView.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-900",+ "count": 3+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailLabels.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailLabels.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailRoleGrantDetails.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 4+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",+ "rule": "no-raw-color",+ "token": "text-red-600",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailTaskRolloutActionPanel.tsx",+ "rule": "no-raw-color",+ "token": "bg-white/50",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailTaskRunTable.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-0.5",+ "count": 1+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailTaskRunTable.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 6+ },+ {+ "path": "src/routes/project/issue-detail/components/IssueDetailTitleInput.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "max-w-[calc(100vw-2rem)]",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "w-[25rem]",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-space-between",+ "token": "space-y-1",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",+ "rule": "no-space-between",+ "token": "space-y-4",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployStageCard.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-400",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-b",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",+ "rule": "no-raw-color",+ "token": "bg-blue-100",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",+ "rule": "no-raw-color",+ "token": "border-blue-200",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",+ "rule": "no-raw-color",+ "token": "text-blue-900",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 5+ },+ {+ "path": "src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-0.5",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanChangeReference.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[11px]",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "sm:w-[80vw]",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-ad-hoc-sheet-width",+ "token": "w-screen",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-6",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-button-dimension-override",+ "token": "size-7",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 5+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailHeader.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailMeta.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailMeta.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 3+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",+ "rule": "no-space-between",+ "token": "space-y-1",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",+ "rule": "no-space-between",+ "token": "space-y-2",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",+ "rule": "no-space-between",+ "token": "space-y-3",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",+ "rule": "no-space-between",+ "token": "space-y-4",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",+ "rule": "no-raw-color",+ "token": "text-red-600",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-t-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 3+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-200",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTaskRolloutActionPanel.tsx",+ "rule": "no-raw-color",+ "token": "bg-white/50",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/components/review/ReviewActionPopover.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-2.5",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",+ "rule": "no-arbitrary-type",+ "token": "text-[11px]",+ "count": 2+ },+ {+ "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 3+ },+ {+ "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 3+ },+ {+ "path": "src/routes/project/ProjectAccessGrantsPage.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-0.5",+ "count": 2+ },+ {+ "path": "src/routes/project/ProjectAccessGrantsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-100",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectAccessGrantsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-green-700",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectAccessGrantsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectDatabaseGroupsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectGitOpsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectGitOpsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-200",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectGitOpsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectGitOpsPage.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-200",+ "count": 4+ },+ {+ "path": "src/routes/project/ProjectGitOpsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectIssueDetailPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectIssueDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-black/40",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectIssueDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 3+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-amber-500",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-100",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-green-200",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-orange-300",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-500",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-200",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "border-green-200",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "text-amber-600",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "text-blue-600",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "text-green-700",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectMaskingExemptionPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 2+ },+ {+ "path": "src/routes/project/ProjectPlanDashboardPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/project/ProjectReleaseDashboardPage.tsx",+ "rule": "no-native-control",+ "token": "select",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectReleaseDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-700",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectReleaseDetailPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectSettingsPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/project/ProjectSettingsPage.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectSyncSchemaPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 11+ },+ {+ "path": "src/routes/project/ProjectSyncSchemaPage.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-lg",+ "count": 1+ },+ {+ "path": "src/routes/project/ProjectSyncSchemaPage.tsx",+ "rule": "no-raw-table",+ "token": "table",+ "count": 1+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 4+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 2+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-200",+ "count": 1+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-gray-600",+ "count": 2+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-400",+ "count": 2+ },+ {+ "path": "src/routes/workspace/EnvironmentsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 2+ },+ {+ "path": "src/routes/workspace/general/AccountSection.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-7",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/AccountSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-300",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "border-gray-300",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-100",+ "count": 2+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-indigo-500",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/BrandingSection.tsx",+ "rule": "no-raw-color",+ "token": "text-indigo-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/SecuritySection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/SecuritySection.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-100",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/SecuritySection.tsx",+ "rule": "no-raw-color",+ "token": "hover:text-gray-700",+ "count": 1+ },+ {+ "path": "src/routes/workspace/general/SecuritySection.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 2+ },+ {+ "path": "src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-7",+ "count": 4+ },+ {+ "path": "src/routes/workspace/GlobalMaskingPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/workspace/GlobalMaskingPage.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-5",+ "count": 1+ },+ {+ "path": "src/routes/workspace/GlobalMaskingPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-800",+ "count": 1+ },+ {+ "path": "src/routes/workspace/GlobalMaskingPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-100",+ "count": 3+ },+ {+ "path": "src/routes/workspace/GlobalMaskingPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/GroupsPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/workspace/GroupsPage.tsx",+ "rule": "no-native-control",+ "token": "select",+ "count": 1+ },+ {+ "path": "src/routes/workspace/GroupsPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-200",+ "count": 1+ },+ {+ "path": "src/routes/workspace/LandingPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/workspace/LandingPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/LandingPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-100",+ "count": 4+ },+ {+ "path": "src/routes/workspace/LandingPage.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 6+ },+ {+ "path": "src/routes/workspace/MemberDatabaseResourceName.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/routes/workspace/MemberDatabaseResourceName.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/MemberDatabaseResourceName.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-800",+ "count": 1+ },+ {+ "path": "src/routes/workspace/MembersPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 3+ },+ {+ "path": "src/routes/workspace/MembersPage.tsx",+ "rule": "no-native-control",+ "token": "textarea",+ "count": 1+ },+ {+ "path": "src/routes/workspace/Page403.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/routes/workspace/Page403.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-50",+ "count": 1+ },+ {+ "path": "src/routes/workspace/Page403.tsx",+ "rule": "no-raw-color",+ "token": "border-red-200",+ "count": 1+ },+ {+ "path": "src/routes/workspace/Page403.tsx",+ "rule": "no-raw-color",+ "token": "text-red-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/Page403.tsx",+ "rule": "no-raw-color",+ "token": "text-red-800",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/AccountSettingsPage.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-0.5",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/AccountSettingsPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/SettingsCard.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-y-0.5",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/SettingsCard.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-md",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/UserPasswordSection.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/workspace/profile/UserPasswordSection.tsx",+ "rule": "no-raw-color",+ "token": "text-green-400",+ "count": 1+ },+ {+ "path": "src/routes/workspace/profile/UserPasswordSection.tsx",+ "rule": "no-raw-color",+ "token": "text-red-400",+ "count": 1+ },+ {+ "path": "src/routes/workspace/PurchaseSection.tsx",+ "rule": "no-button-dimension-override",+ "token": "h-full",+ "count": 2+ },+ {+ "path": "src/routes/workspace/PurchaseSection.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-12",+ "count": 1+ },+ {+ "path": "src/routes/workspace/PurchaseSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-l",+ "count": 1+ },+ {+ "path": "src/routes/workspace/PurchaseSection.tsx",+ "rule": "no-off-scale-radius",+ "token": "rounded-r",+ "count": 1+ },+ {+ "path": "src/routes/workspace/RolesPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/workspace/RolesPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-gray-50",+ "count": 2+ },+ {+ "path": "src/routes/workspace/RolesPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/SemanticTypesPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 6+ },+ {+ "path": "src/routes/workspace/SemanticTypesPage.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/workspace/ServiceAccountsPage.tsx",+ "rule": "no-native-control",+ "token": "input",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/RecoveryCodesView.tsx",+ "rule": "no-off-scale-gap",+ "token": "gap-x-24",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/RecoveryCodesView.tsx",+ "rule": "no-raw-color",+ "token": "bg-gray-50",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-blue-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-red-50",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "bg-yellow-50",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "border-red-200",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "border-yellow-200",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "hover:bg-blue-700",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "text-blue-600",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "text-gray-500",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "text-red-800",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "text-white",+ "count": 1+ },+ {+ "path": "src/routes/workspace/two-factor/TwoFactorSetupPage.tsx",+ "rule": "no-raw-color",+ "token": "text-yellow-800",+ "count": 1+ },+ {+ "path": "src/routes/workspace/users/UserFormSheet.tsx",+ "rule": "no-native-control",+ "token": "button",+ "count": 2+ },+ {+ "path": "src/routes/workspace/users/UserFormSheet.tsx",+ "rule": "no-raw-color",+ "token": "text-green-400",+ "count": 1+ },+ {+ "path": "src/routes/workspace/users/UserFormSheet.tsx",+ "rule": "no-raw-color",+ "token": "text-red-400",+ "count": 1+ }+ ]+}diff --git a/frontend/src/components/CustomApproval/ApprovalStepsTable.tsx b/frontend/src/components/CustomApproval/ApprovalStepsTable.tsxindex 87347e745d..bc6eb3fd62 100644--- a/frontend/src/components/CustomApproval/ApprovalStepsTable.tsx+++ b/frontend/src/components/CustomApproval/ApprovalStepsTable.tsx@@ -4,6 +4,14 @@ import { RoleSelect } from "@/components/RoleSelect";import { PresetRoleType } from "@/types";import { displayRoleTitle } from "@/utils";import { Button } from "../ui/button";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "../ui/table";interface ApprovalStepsTableProps {roles: string[];@@ -39,86 +47,81 @@ export function ApprovalStepsTable({return (<div>- <table className="w-full border-collapse border border-control-border text-sm">- <thead>- <tr className="bg-control-bg">- <th className="w-20 border border-control-border px-3 py-2 text-center font-medium text-control">- {t("custom-approval.approval-flow.node.order")}- </th>- <th className="border border-control-border px-3 py-2 text-left font-medium text-control">- {t("custom-approval.approval-flow.node.approver")}- </th>- {editable && (- <th className="border border-control-border px-3 py-2 text-left font-medium text-control">- {t("common.operations")}- </th>- )}- </tr>- </thead>- <tbody>- {roles.map((role, index) => (- <tr- key={index}- className={index % 2 === 1 ? "bg-control-bg/50" : "bg-background"}- >- <td className="border border-control-border px-3 py-2 text-center text-control">- {index + 1}- </td>- <td className="border border-control-border px-3 py-2">- {editable ? (- <RoleSelect- value={role ? [role] : []}- onChange={(vals) => {- const newRoles = [...roles];- newRoles[index] = vals[0] ?? "";- onRolesChange(newRoles);- }}- multiple={false}- />- ) : (- <span className="text-control">{displayRoleTitle(role)}</span>- )}- </td>- {editable && (- <td className="border border-control-border px-3 py-2">- <div className="flex gap-x-1">- <Button- appearance="outline"- size="sm"- disabled={index === 0 || !allowAdmin}- onClick={() => reorder(index, -1)}- >- <ArrowUp className="h-4 w-4" />- </Button>- <Button- appearance="outline"- size="sm"- disabled={index === roles.length - 1 || !allowAdmin}- onClick={() => reorder(index, 1)}- >- <ArrowDown className="h-4 w-4" />- </Button>- {allowAdmin && (+ <div className="overflow-hidden rounded-sm border border-block-border">+ <Table>+ <TableHeader className="bg-control-bg">+ <TableRow>+ <TableHead className="w-20 text-center">+ {t("custom-approval.approval-flow.node.order")}+ </TableHead>+ <TableHead>+ {t("custom-approval.approval-flow.node.approver")}+ </TableHead>+ {editable && <TableHead>{t("common.operations")}</TableHead>}+ </TableRow>+ </TableHeader>+ <TableBody>+ {roles.map((role, index) => (+ <TableRow key={index}>+ <TableCell className="py-2 text-center">{index + 1}</TableCell>+ <TableCell className="py-2">+ {editable ? (+ <RoleSelect+ value={role ? [role] : []}+ onChange={(vals) => {+ const newRoles = [...roles];+ newRoles[index] = vals[0] ?? "";+ onRolesChange(newRoles);+ }}+ multiple={false}+ />+ ) : (+ <span className="text-control">+ {displayRoleTitle(role)}+ </span>+ )}+ </TableCell>+ {editable && (+ <TableCell className="py-2">+ <div className="flex gap-x-2"><Buttonappearance="outline"size="sm"- title={t("custom-approval.approval-flow.node.delete")}- onClick={() => removeStep(index)}+ disabled={index === 0 || !allowAdmin}+ onClick={() => reorder(index, -1)}>- <Trash2 className="h-3 w-3" />+ <ArrowUp className="size-4" /></Button>- )}- </div>- </td>- )}- </tr>- ))}- </tbody>- </table>+ <Button+ appearance="outline"+ size="sm"+ disabled={index === roles.length - 1 || !allowAdmin}+ onClick={() => reorder(index, 1)}+ >+ <ArrowDown className="size-4" />+ </Button>+ {allowAdmin && (+ <Button+ appearance="outline"+ size="sm"+ title={t("custom-approval.approval-flow.node.delete")}+ onClick={() => removeStep(index)}+ >+ <Trash2 className="size-3" />+ </Button>+ )}+ </div>+ </TableCell>+ )}+ </TableRow>+ ))}+ </TableBody>+ </Table>+ </div>{editable && allowAdmin && (<div className="mt-4"><Button appearance="outline" onClick={addStep}>- <Plus className="h-4 w-4" />+ <Plus className="size-4" />{t("custom-approval.approval-flow.node.add")}</Button></div>diff --git a/frontend/src/components/WorkspaceSetupGuide.test.tsx b/frontend/src/components/WorkspaceSetupGuide.test.tsxindex 772bc46328..f87ab09fdc 100644--- a/frontend/src/components/WorkspaceSetupGuide.test.tsx+++ b/frontend/src/components/WorkspaceSetupGuide.test.tsx@@ -301,7 +301,7 @@ describe("WorkspaceSetupGuide", () => {});});- it("uses compact controls below 2xl and prominent controls at 2xl", async () => {+ it("uses caller-owned responsive button sizing", async () => {await render(<WorkspaceSetupGuide />);expect(container.firstElementChild?.getAttribute("class")).toContain(@@ -980,6 +980,15 @@ describe("WorkspaceSetupGuide", () => {expect(changeButton?.textContent).toContain("workspace-setup-guide.actions.change");+ const secondaryAction = container.querySelector(+ "[data-testid='secondary-action']"+ );+ expect(secondaryAction?.getAttribute("class")).toContain("h-9");+ for (const testId of ["active-action", "dismiss-guide"]) {+ const action = container.querySelector(`[data-testid='${testId}']`);+ expect(action?.getAttribute("class")).toContain("h-7");+ expect(action?.getAttribute("class")).toContain("2xl:h-9");+ }await act(async () => {changeButton?.click();diff --git a/frontend/src/components/WorkspaceSetupGuide.tsx b/frontend/src/components/WorkspaceSetupGuide.tsxindex aa18f9e348..3e913e3f5c 100644--- a/frontend/src/components/WorkspaceSetupGuide.tsx+++ b/frontend/src/components/WorkspaceSetupGuide.tsx@@ -363,7 +363,7 @@ export function WorkspaceSetupGuide() {return (<div className="flex w-full shrink-0 items-center gap-x-2 border-t border-block-border bg-white px-3 py-2 shadow-[0_-2px_10px_rgba(0,0,0,0.04)] 2xl:gap-x-4 2xl:px-5 2xl:py-4">- <div className="flex min-w-0 flex-1 items-center gap-x-2 overflow-hidden 2xl:gap-x-5">+ <div className="flex min-w-0 flex-1 items-center gap-x-2 overflow-hidden 2xl:gap-x-4"><div className="flex shrink-0 items-baseline gap-x-2"><div className="shrink-0 text-sm font-semibold text-main 2xl:text-base">{t("workspace-setup-guide.self")}diff --git a/frontend/src/components/issue-activity/IssueCommentActivity.tsx b/frontend/src/components/issue-activity/IssueCommentActivity.tsxindex 0492633d0b..fb8acfd94b 100644--- a/frontend/src/components/issue-activity/IssueCommentActivity.tsx+++ b/frontend/src/components/issue-activity/IssueCommentActivity.tsx@@ -21,6 +21,7 @@ import { ReadonlyDiffMonaco } from "@/components/monaco";import { RouterLink } from "@/components/RouterLink";import { UserAvatar } from "@/components/UserAvatar";import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog";import {diffEntryKey,@@ -142,7 +143,7 @@ export function ActivityRowShell({{!isLast && (<spanaria-hidden="true"- className="absolute left-4 -ml-px h-full w-0.5 bg-gray-200"+ className="absolute left-4 -ml-px h-full w-0.5 bg-block-border"/>)}<div className="relative flex items-start">@@ -150,13 +151,13 @@ export function ActivityRowShell({<div className="min-w-0 flex-1"><divclassName={cn(- "overflow-hidden rounded-lg border",+ "overflow-hidden rounded-sm border",body- ? "ml-3 border-gray-200 bg-white"+ ? "ml-3 border-block-border bg-background": "ml-1 border-transparent")}>- <div className={cn("px-3 py-2", body && "bg-gray-50")}>+ <div className={cn("px-3 py-2", body && "bg-control-bg/50")}><div className="flex items-center justify-between"><div className="flex min-w-0 flex-wrap items-center gap-x-2 text-sm">{header}@@ -165,7 +166,7 @@ export function ActivityRowShell({</div></div>{body && (- <div className="wrap-break-word border-t border-gray-200 px-3 py-2 text-sm text-gray-700 [&_.markdown-body>div>:first-child]:mt-0 [&_.markdown-body>div>:last-child]:mb-0">+ <div className="wrap-break-word border-block-border border-t px-3 py-2 text-control text-sm [&_.markdown-body>div>:first-child]:mt-0 [&_.markdown-body>div>:last-child]:mb-0">{body}</div>)}@@ -222,10 +223,12 @@ function IssueCommentHeader({</Badge>)}{comment.createTime && (- <HumanizeTs className="text-gray-500" ts={createdTs / 1000} />+ <HumanizeTs className="text-control-light" ts={createdTs / 1000} />)}{isEdited && (- <span className="text-xs text-gray-500">({t("common.edited")})</span>+ <span className="text-control-light text-xs">+ ({t("common.edited")})+ </span>)}</>);@@ -344,9 +347,9 @@ function IssueCommentActionIcon({ issue, plan, comment }: ActivityProps) {return (<div className="relative pl-0.5">- <div className="flex h-7 w-7 items-center justify-center rounded-full bg-white ring-4 ring-white">+ <div className="flex size-7 items-center justify-center rounded-full bg-background ring-4 ring-background"><UserAvatar- className="h-7 w-7 text-[0.8rem] font-medium"+ className="font-medium"size="sm"title={user.title || user.email}/>@@ -366,7 +369,7 @@ export function CommentIconBadge({<div className="relative pl-0.5"><divclassName={cn(- "flex h-7 w-7 items-center justify-center rounded-full ring-4 ring-white",+ "flex size-7 items-center justify-center rounded-full ring-4 ring-background",className)}>@@ -423,21 +426,21 @@ function IssueCommentActionSentence({const { status } = comment.event.value;if (status === IssueComment_Approval_Status.APPROVED) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("custom-approval.issue-review.approved-issue")}</span>);}if (status === IssueComment_Approval_Status.REJECTED) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("custom-approval.issue-review.rejected-issue")}</span>);}if (status === IssueComment_Approval_Status.PENDING) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("custom-approval.issue-review.re-requested-review")}</span>);@@ -467,7 +470,7 @@ function IssueCommentActionSentence({} = comment.event.value;if (fromTitle !== undefined && toTitle !== undefined) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.changed-from-to", {name: t("issue.issue-name").toLowerCase(),newValue: toTitle,@@ -478,7 +481,7 @@ function IssueCommentActionSentence({}if (fromDescription !== undefined && toDescription !== undefined) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.changed-description")}</span>);@@ -503,7 +506,7 @@ function IssueCommentActionSentence({: t("activity.sentence.review-skipped-rollout-created");return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{sentence}{planUID && planRoute && (<>@@ -520,21 +523,21 @@ function IssueCommentActionSentence({);}return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.resolved-issue")}</span>);}if (toStatus === IssueStatus.CANCELED) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.canceled-issue")}</span>);}if (toStatus === IssueStatus.OPEN) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.reopened-issue")}</span>);@@ -542,7 +545,7 @@ function IssueCommentActionSentence({}if (fromLabels.length !== 0 || toLabels.length !== 0) {return (- <span className="wrap-break-word min-w-0 text-gray-600">+ <span className="wrap-break-word min-w-0 text-control">{t("activity.sentence.changed-labels")}</span>);@@ -585,7 +588,7 @@ function IssueCommentActionSentence({);}- return <span className="wrap-break-word min-w-0 text-gray-600" />;+ return <span className="wrap-break-word min-w-0 text-control" />;}function SpecDiffRow({@@ -817,7 +820,7 @@ function SpecChangeRow({);return (- <span className="inline-flex items-center gap-1 whitespace-nowrap text-gray-600">+ <span className="inline-flex items-center gap-1 whitespace-nowrap text-control">{children}{" "}{specRoute != null ? (<RouterLink@@ -900,13 +903,14 @@ function IssueStatementUpdateButton({return (<>- <button- className="inline-flex items-center text-accent hover:underline"+ <Button+ appearance="link"onClick={() => setOpen(true)}+ size="xs"type="button">{t("common.view-details")}- </button>+ </Button><Dialog onOpenChange={setOpen} open={open}><DialogContent className="max-w-none border-0 p-0 sm:w-[calc(100vw-9rem)] 2xl:max-w-none"><div className="px-6 pt-5">@@ -925,7 +929,7 @@ function IssueStatementUpdateButton({if (isLoading) {return (<div- className="flex w-full items-center justify-center rounded-md border"+ className="flex w-full items-center justify-center rounded-sm border"style={{ height }}><Loader2 className="h-6 w-6 animate-spin text-control-light" />diff --git a/frontend/src/components/issue-activity/activityIcons.ts b/frontend/src/components/issue-activity/activityIcons.tsindex ce3362e782..2bf86bff6e 100644--- a/frontend/src/components/issue-activity/activityIcons.ts+++ b/frontend/src/components/issue-activity/activityIcons.ts@@ -65,11 +65,11 @@ export const ISSUE_EVENT_ICON = {reopened: { Icon: CircleDot, tone: "neutral" },} satisfies Record<string, ActivityIconSpec>;-// Tone → classes. Activity badges fill the circle (white glyph on bg-tone);+// Tone → classes. Activity badges fill the circle (on-fill glyph on bg-tone);// action buttons tint just the glyph (text-tone).export const ICON_BADGE_TONE: Record<IconTone, string> = {- success: "bg-success text-white",- error: "bg-error text-white",+ success: "bg-success text-accent-text",+ error: "bg-error text-accent-text",neutral: "bg-control-bg text-control",};diff --git a/frontend/src/components/task-run-log/SectionContent.tsx b/frontend/src/components/task-run-log/SectionContent.tsxindex d370fc12fc..5a8291f484 100644--- a/frontend/src/components/task-run-log/SectionContent.tsx+++ b/frontend/src/components/task-run-log/SectionContent.tsx@@ -34,26 +34,26 @@ export function SectionContent({return (<div- className="bg-gray-50 border-t border-gray-100 overflow-auto"+ className="overflow-auto border-block-border border-t bg-control-bg/50"style={{ maxHeight: `${MAX_VISIBLE_ITEMS * ITEM_HEIGHT}px` }}>{visibleItems.map((item, index) => (<divkey={item.key}className={cn(- "flex items-start gap-x-2 py-0.5 hover:bg-gray-100",+ "flex items-start gap-x-2 py-0.5 hover:bg-control-bg",indent ? "px-6" : "px-3",- index > 0 && "border-t border-gray-100"+ index > 0 && "border-block-border border-t")}>- <span className="w-6 shrink-0 text-right tabular-nums text-gray-300">+ <span className="w-6 shrink-0 text-right text-control-placeholder tabular-nums">{index + 1}</span>- <span className="shrink-0 tabular-nums text-gray-400">+ <span className="shrink-0 text-control-placeholder tabular-nums">{item.time}</span>{item.relativeTime ? (- <span className="shrink-0 tabular-nums text-gray-300">+ <span className="shrink-0 text-control-placeholder tabular-nums">{item.relativeTime}</span>) : null}@@ -65,12 +65,10 @@ export function SectionContent({</span><span className="ml-auto flex shrink-0 items-center gap-x-2">{item.duration ? (- <span className="tabular-nums text-blue-500">- {item.duration}- </span>+ <span className="text-info tabular-nums">{item.duration}</span>) : null}{item.affectedRows !== undefined ? (- <span className="text-gray-400">+ <span className="text-control-placeholder">{item.affectedRows} {t("task.affected-rows")}</span>) : null}@@ -82,10 +80,7 @@ export function SectionContent({type="button"appearance="secondary"size="sm"- className={cn(- "flex w-full items-center justify-center gap-x-2 rounded-none border-t border-gray-100 px-3 py-1.5 text-gray-500 hover:bg-gray-100 hover:text-gray-700",- indent ? "px-6" : "px-3"- )}+ className="w-full rounded-none border-block-border border-t text-control-light hover:bg-control-bg-hover hover:text-control"onClick={() => setShowAllItems(true)}><span>{t("common.load-more")}</span>diff --git a/frontend/src/components/task-run-log/SectionHeader.tsx b/frontend/src/components/task-run-log/SectionHeader.tsxindex 5a4d8a2147..5bf2e9c77c 100644--- a/frontend/src/components/task-run-log/SectionHeader.tsx+++ b/frontend/src/components/task-run-log/SectionHeader.tsx@@ -1,5 +1,5 @@import { ChevronDown, ChevronRight } from "lucide-react";-import type { ButtonHTMLAttributes } from "react";+import { Button, type ButtonProps } from "@/components/ui/button";import { cn } from "@/lib/utils";import type { Section } from "./types";@@ -18,8 +18,7 @@ export function SectionStatusIcon({ section }: { section: Section }) {);}-export interface SectionHeaderProps- extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {+export interface SectionHeaderProps extends Omit<ButtonProps, "onClick"> {section: Section;isExpanded: boolean;indent?: boolean;@@ -35,11 +34,13 @@ export function SectionHeader({...props}: SectionHeaderProps) {return (- <button+ <Buttontype="button"aria-expanded={isExpanded}+ appearance="secondary"+ size="sm"className={cn(- "flex w-full items-center gap-x-2 py-1.5 bg-background hover:bg-control-bg cursor-pointer select-none text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2",+ "w-full justify-start rounded-none bg-background text-left hover:bg-control-bg",indent ? "px-6" : "px-3",className)}@@ -62,7 +63,7 @@ export function SectionHeader({{section.duration}</span>) : null}- </button>+ </Button>);}diff --git a/frontend/src/components/task-run-log/TaskRunLogViewer.tsx b/frontend/src/components/task-run-log/TaskRunLogViewer.tsxindex 99b5348eb6..46b3c8aa4d 100644--- a/frontend/src/components/task-run-log/TaskRunLogViewer.tsx+++ b/frontend/src/components/task-run-log/TaskRunLogViewer.tsx@@ -136,7 +136,7 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({// the box in place instead of popping the card taller.if (logFetch.status === "loading") {return (- <div className="flex min-h-20 items-center justify-center rounded-md border bg-gray-50 px-3 py-2 text-sm text-control-light">+ <div className="flex min-h-20 items-center justify-center rounded-sm border border-block-border bg-control-bg/50 px-3 py-2 text-sm text-control-light">{t("common.loading")}</div>);@@ -154,7 +154,7 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({if (soleSection) {return (<div className="w-full font-mono text-xs">- <div className="w-full overflow-hidden rounded border border-gray-200 bg-gray-50">+ <div className="w-full overflow-hidden rounded-sm border border-block-border bg-control-bg/50"><div className="flex items-center gap-x-2 px-3 py-1.5 text-control"><SectionStatusIcon section={soleSection} /><span>{soleSection.label}</span>@@ -182,7 +182,10 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({section: (typeof sections)[number],indent = false) => (- <div key={section.id} className="border-b border-gray-200 last:border-b-0">+ <div+ key={section.id}+ className="border-block-border border-b last:border-b-0"+ ><SectionHeadersection={section}indent={indent}@@ -214,26 +217,28 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({return (<divkey={fileGroup.id}- className="border-b border-gray-200 last:border-b-0"+ className="border-block-border border-b last:border-b-0"><div className={indent ? "pl-4" : ""}>- <button+ <Buttontype="button"- className="flex w-full select-none items-center gap-x-2 bg-blue-50 px-3 py-1.5 text-left hover:bg-blue-100"+ appearance="secondary"+ size="sm"+ className="w-full justify-start rounded-none bg-info/10 text-info hover:bg-info/20"onClick={() => toggleReleaseFile(fileGroup.id)}>{isReleaseFileExpanded(fileGroup.id) ? (- <ChevronsDownUp className="h-3.5 w-3.5 shrink-0 text-blue-500" />+ <ChevronsDownUp className="size-4 shrink-0" />) : (- <ChevronsUpDown className="h-3.5 w-3.5 shrink-0 text-blue-500" />+ <ChevronsUpDown className="size-4 shrink-0" />)}- <FileCode className="h-3.5 w-3.5 shrink-0 text-blue-500" />- <span className="font-medium text-blue-700">+ <FileCode className="size-4 shrink-0" />+ <span className="font-medium">{fileGroup.filePath? `${fileGroup.version}: ${fileGroup.filePath}`: fileGroup.version}</span>- </button>+ </Button>{isReleaseFileExpanded(fileGroup.id) ? (<div className={indent ? "pl-4" : ""}>{fileGroup.sections.map((section) =>@@ -248,33 +253,35 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({const content = hasMultipleReplicas ? (<>- <div className="flex items-center gap-x-2 px-3 py-2 bg-amber-50 border-b border-amber-200 text-amber-800">- <AlertTriangle className="h-4 w-4 shrink-0" />+ <div className="flex items-center gap-x-2 border-warning/40 border-b bg-warning/10 px-3 py-2 text-warning">+ <AlertTriangle className="size-4 shrink-0" /><span>{t("task-run.log-viewer.multiple-replicas-notice")}</span></div>{replicaGroups.map((replicaGroup, replicaIdx) => (<divkey={replicaGroup.replicaId}- className="border-b border-gray-300 last:border-b-0"+ className="border-control-border border-b last:border-b-0">- <button+ <Buttontype="button"- className="flex w-full select-none items-center gap-x-2 bg-gray-100 px-3 py-1.5 text-left hover:bg-gray-200"+ appearance="secondary"+ size="sm"+ className="w-full justify-start rounded-none bg-control-bg text-control hover:bg-control-bg-hover"onClick={() => toggleReplica(replicaGroup.replicaId)}>{isReplicaExpanded(replicaGroup.replicaId) ? (- <ChevronsDownUp className="h-3.5 w-3.5 shrink-0 text-gray-500" />+ <ChevronsDownUp className="size-4 shrink-0 text-control-light" />) : (- <ChevronsUpDown className="h-3.5 w-3.5 shrink-0 text-gray-500" />+ <ChevronsUpDown className="size-4 shrink-0 text-control-light" />)}- <Server className="h-3.5 w-3.5 shrink-0 text-gray-500" />- <span className="font-medium text-gray-700">+ <Server className="size-4 shrink-0 text-control-light" />+ <span className="font-medium text-control">{t("task-run.log-viewer.replica-n", { n: replicaIdx + 1 })}</span>- <span className="text-[10px] font-normal text-gray-400">+ <span className="font-normal text-control-placeholder text-xs">{replicaGroup.replicaId.substring(0, 8)}</span>- </button>+ </Button>{isReplicaExpanded(replicaGroup.replicaId) ? (<div>@@ -299,10 +306,10 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({return (<div className="w-full font-mono text-xs">- <div className="w-full overflow-hidden rounded border border-gray-200 bg-gray-50">- <div className="flex items-center justify-between border-b border-gray-200 bg-gray-100 px-2 py-1">- <div className="flex items-center gap-x-2 text-gray-500">- <List className="h-3.5 w-3.5" />+ <div className="w-full overflow-hidden rounded-sm border border-block-border bg-control-bg/50">+ <div className="flex items-center justify-between border-block-border border-b bg-control-bg px-2 py-1">+ <div className="flex items-center gap-x-2 text-control-light">+ <List className="size-3.5" /><span>{t("task-run.log-viewer.summary", {sections: totalSections,@@ -318,9 +325,9 @@ export const TaskRunLogViewer = memo(function TaskRunLogViewer({onClick={toggleExpandAll}>{areAllExpanded ? (- <ChevronsDownUp className="h-3.5 w-3.5" />+ <ChevronsDownUp className="size-3.5" />) : (- <ChevronsUpDown className="h-3.5 w-3.5" />+ <ChevronsUpDown className="size-3.5" />)}<span>{areAllExpandeddiff --git a/frontend/src/components/task-run-log/model.ts b/frontend/src/components/task-run-log/model.tsindex 8f9c14245b..c1745e11f3 100644--- a/frontend/src/components/task-run-log/model.ts+++ b/frontend/src/components/task-run-log/model.ts@@ -20,10 +20,10 @@ const STATUS_CONFIG: Record<SectionStatus,{ icon: LucideIcon; className: string }> = {- success: { icon: CheckCircle2, className: "text-green-600" },- error: { icon: XCircle, className: "text-red-600" },- running: { icon: LoaderCircle, className: "text-blue-600" },- pending: { icon: Circle, className: "text-gray-400" },+ success: { icon: CheckCircle2, className: "text-success" },+ error: { icon: XCircle, className: "text-error" },+ running: { icon: LoaderCircle, className: "text-info" },+ pending: { icon: Circle, className: "text-control-placeholder" },};export interface BuildSectionsOptions {@@ -482,9 +482,9 @@ const buildDisplayItems = (time: formatTime(entry.logTime),relativeTime: relativeMs > 0 ? formatRelativeTime(relativeMs) : "",levelIndicator: entryHasError ? "\u2717" : "\u2713",- levelClass: entryHasError ? "text-red-600" : "text-green-600",+ levelClass: entryHasError ? "text-error" : "text-success",detail: getEntryDetail(entry, sheet, sheetsMap, detailText, fileVersion),- detailClass: entryHasError ? "text-red-700" : "text-gray-600",+ detailClass: entryHasError ? "text-error" : "text-control",affectedRows:entry.type === TaskRunLogEntry_Type.COMMAND_EXECUTE? Number(entry.commandExecute?.response?.affectedRows ?? 0) ||diff --git a/frontend/src/components/ui/alert.tsx b/frontend/src/components/ui/alert.tsxindex 16f101b04f..7ac9c5aaa2 100644--- a/frontend/src/components/ui/alert.tsx+++ b/frontend/src/components/ui/alert.tsx@@ -102,7 +102,7 @@ function Alert({<buttontype="button"aria-label="Dismiss"- className="shrink-0 rounded-xs p-0.5 text-control-light hover:bg-black/5 hover:text-control"+ className="shrink-0 rounded-xs p-0.5 text-control-light hover:bg-overlay/5 hover:text-control"onClick={onDismiss}><X className="size-4" />diff --git a/frontend/src/components/ui/button.tsx b/frontend/src/components/ui/button.tsxindex d716663203..6c6e9e02ea 100644--- a/frontend/src/components/ui/button.tsx+++ b/frontend/src/components/ui/button.tsx@@ -51,12 +51,13 @@ const buttonStyles = cva({variant: "destructive",appearance: "solid",- className: "bg-error text-white hover:bg-error-hover",+ className: "bg-error text-accent-text hover:bg-error-hover",},{variant: "destructive",appearance: "outline",- className: "border-error text-error hover:bg-error hover:text-white",+ className:+ "border-error text-error hover:bg-error hover:text-accent-text",},{variant: "destructive",diff --git a/frontend/src/components/ui/calendar.tsx b/frontend/src/components/ui/calendar.tsxindex e4f446e9ad..3ed5d32f63 100644--- a/frontend/src/components/ui/calendar.tsx+++ b/frontend/src/components/ui/calendar.tsx@@ -36,7 +36,7 @@ function Calendar({),month_grid: "w-full border-collapse",weekdays: "flex",- weekday: "text-control-light w-8 font-normal text-[0.8rem]",+ weekday: "text-control-light w-8 font-normal text-xs",week: "flex w-full mt-1",day: "relative size-8 p-0 text-center text-sm",day_button: cn(diff --git a/frontend/src/components/ui/expiration-picker.tsx b/frontend/src/components/ui/expiration-picker.tsxindex 46ee74ec7d..1c19208fe1 100644--- a/frontend/src/components/ui/expiration-picker.tsx+++ b/frontend/src/components/ui/expiration-picker.tsx@@ -38,7 +38,7 @@ export function ExpirationPicker({{value && (<buttontype="button"- className="p-1 rounded-full hover:bg-gray-200 text-control-placeholder shrink-0"+ className="p-1 rounded-full hover:bg-control-bg-hover text-control-placeholder shrink-0"onClick={() => onChange(undefined)}title={t("common.clear")}>diff --git a/frontend/src/components/ui/toast.tsx b/frontend/src/components/ui/toast.tsxindex 4f602501c3..4705efa624 100644--- a/frontend/src/components/ui/toast.tsx+++ b/frontend/src/components/ui/toast.tsx@@ -14,7 +14,7 @@ export type ToastVariant = "success" | "info" | "warning" | "error";const toastRoot = ["absolute right-0 bottom-0","w-(--toast-width) max-w-[calc(100vw-2rem)]",- "rounded-md border bg-background text-main shadow-md",+ "rounded-sm border bg-background text-main shadow-md","px-4 py-3 pr-10",// Base UI emits these CSS vars; we use them for the stack/expand transforms."transform [transition:transform_250ms,opacity_250ms]",diff --git a/frontend/src/modules/ai/components/HistoryPanel/HistoryPanel.tsx b/frontend/src/modules/ai/components/HistoryPanel/HistoryPanel.tsxindex 885ee95a64..53279a21af 100644--- a/frontend/src/modules/ai/components/HistoryPanel/HistoryPanel.tsx+++ b/frontend/src/modules/ai/components/HistoryPanel/HistoryPanel.tsx@@ -1,6 +1,7 @@import { useTranslation } from "react-i18next";import {Sheet,+ SheetBody,SheetContent,SheetHeader,SheetTitle,@@ -27,20 +28,20 @@ export function HistoryPanel() {open={showHistoryDialog}onOpenChange={(open) => setShowHistoryDialog(open)}>- <SheetContent width="wide" className="w-[calc(100vw-8rem)] max-w-6xl p-0">- <SheetHeader className="px-4 py-3 border-b">+ <SheetContent width="xlarge">+ <SheetHeader><SheetTitle>{t("plugin.ai.conversation.history-conversations")}</SheetTitle></SheetHeader>- <div className="flex h-full">- <aside className="hidden lg:flex lg:flex-col w-[14em] border-l border-b">+ <SheetBody className="flex-row gap-x-4 overflow-hidden">+ <aside className="hidden w-56 shrink-0 border-control-border border-r pr-4 lg:flex lg:flex-col"><ConversationList /></aside>- <div className="flex-1 flex flex-col py-2 bg-gray-100 overflow-hidden">+ <div className="flex min-w-0 flex-1 flex-col overflow-hidden rounded-sm bg-control-bg/50 py-2"><ChatView mode="VIEW" conversation={chat.selected} /></div>- </div>+ </SheetBody></SheetContent></Sheet>);diff --git a/frontend/src/modules/ai/components/HistoryPanel/HistoryPanelLayout.test.ts b/frontend/src/modules/ai/components/HistoryPanel/HistoryPanelLayout.test.tsnew file mode 100644index 0000000000..699df459cb--- /dev/null+++ b/frontend/src/modules/ai/components/HistoryPanel/HistoryPanelLayout.test.ts@@ -0,0 +1,18 @@+import { readFileSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, test } from "vitest";++const source = readFileSync(+ join(import.meta.dirname, "HistoryPanel.tsx"),+ "utf8"+);++describe("HistoryPanel sheet layout", () => {+ test("uses the shared sheet width and scrollable body contract", () => {+ expect(source).toContain('<SheetContent width="xlarge">');+ expect(source).toContain("<SheetHeader>");+ expect(source).toContain("<SheetBody");+ expect(source).not.toContain('className="w-[calc(100vw-8rem)]');+ expect(source).not.toContain("bg-gray-100");+ });+});diff --git a/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheet.tsx b/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheet.tsxindex 2577ddb8db..af389ccc37 100644--- a/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheet.tsx+++ b/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheet.tsx@@ -2,9 +2,11 @@ import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Combobox } from "@/components/ui/combobox";+import { FormField, FormFieldGroup } from "@/components/ui/form";import { Input } from "@/components/ui/input";import {Sheet,+ SheetBody,SheetContent,SheetFooter,SheetHeader,@@ -188,7 +190,7 @@ export function EditColumnForeignKeySheet({return (<Sheet open={open} onOpenChange={(next) => !next && onClose()}>- <SheetContent width="wide">+ <SheetContent width="standard"><SheetHeader><SheetTitle>{foreignKey@@ -196,70 +198,58 @@ export function EditColumnForeignKeySheet({: t("schema-editor.create-foreign-key")}</SheetTitle></SheetHeader>- <div className="flex flex-col gap-y-4 py-4">- <div>- <label className="mb-1 block text-sm font-medium">- {t("schema-editor.foreign-key.name")}- </label>- <Input- value={fkName}- autoComplete="off"- onChange={(e) => setFkName(e.target.value)}- />- </div>- {showSchemaSelector && (- <div>- <label className="mb-1 block text-sm font-medium">- {t("schema-editor.foreign-key.referenced-schema")}- </label>+ <SheetBody>+ <FormFieldGroup>+ <FormField title={t("schema-editor.foreign-key.name")}>+ <Input+ value={fkName}+ autoComplete="off"+ onChange={(e) => setFkName(e.target.value)}+ />+ </FormField>+ {showSchemaSelector && (+ <FormField+ title={t("schema-editor.foreign-key.referenced-schema")}+ >+ <Combobox+ value={refSchemaName}+ onChange={(val) => handleSchemaChange(val as string)}+ options={schemaOptions}+ portal+ />+ </FormField>+ )}+ <FormField title={t("schema-editor.foreign-key.referenced-table")}><Combobox- value={refSchemaName}- onChange={(val) => handleSchemaChange(val as string)}- options={schemaOptions}+ value={refTableName ?? ""}+ onChange={(val) => handleTableChange((val as string) || null)}+ options={tableOptions}portal/>- </div>+ </FormField>+ <FormField title={t("schema-editor.foreign-key.referenced-column")}>+ <Combobox+ value={refColumnName ?? ""}+ onChange={(val) => setRefColumnName((val as string) || null)}+ options={columnOptions}+ portal+ />+ </FormField>+ </FormFieldGroup>+ </SheetBody>+ <SheetFooter className={foreignKey ? "justify-between" : undefined}>+ {foreignKey && (+ <Button variant="destructive" onClick={handleDelete}>+ {t("common.delete")}+ </Button>)}- <div>- <label className="mb-1 block text-sm font-medium">- {t("schema-editor.foreign-key.referenced-table")}- </label>- <Combobox- value={refTableName ?? ""}- onChange={(val) => handleTableChange((val as string) || null)}- options={tableOptions}- portal- />- </div>- <div>- <label className="mb-1 block text-sm font-medium">- {t("schema-editor.foreign-key.referenced-column")}- </label>- <Combobox- value={refColumnName ?? ""}- onChange={(val) => setRefColumnName((val as string) || null)}- options={columnOptions}- portal- />- </div>- </div>- <SheetFooter>- <div className="flex w-full items-center justify-between">- <div>- {foreignKey && (- <Button variant="destructive" onClick={handleDelete}>- {t("common.delete")}- </Button>- )}- </div>- <div className="flex items-center gap-x-2">- <Button appearance="outline" onClick={onClose}>- {t("common.cancel")}- </Button>- <Button disabled={!allowConfirm} onClick={handleConfirm}>- {t("common.save")}- </Button>- </div>+ <div className="flex items-center gap-x-2">+ <Button appearance="outline" onClick={onClose}>+ {t("common.cancel")}+ </Button>+ <Button disabled={!allowConfirm} onClick={handleConfirm}>+ {t("common.save")}+ </Button></div></SheetFooter></SheetContent>diff --git a/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheetLayout.test.ts b/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheetLayout.test.tsnew file mode 100644index 0000000000..e061c60b1b--- /dev/null+++ b/frontend/src/modules/schema-editor/Modals/EditColumnForeignKeySheetLayout.test.ts@@ -0,0 +1,20 @@+import { readFileSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, test } from "vitest";++const source = readFileSync(+ join(import.meta.dirname, "EditColumnForeignKeySheet.tsx"),+ "utf8"+);++describe("EditColumnForeignKeySheet layout", () => {+ test("uses the standard sheet and shared form composition", () => {+ expect(source).toContain('<SheetContent width="standard">');+ expect(source).toContain("<SheetHeader>");+ expect(source).toContain("<SheetBody>");+ expect(source).toContain("<FormFieldGroup>");+ expect(source.match(/<FormField(?:\s|>)/g)).toHaveLength(4);+ expect(source).toContain("<SheetFooter");+ expect(source).not.toContain("<label");+ });+});diff --git a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.test.tsx b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.test.tsxindex d9ac7ad113..724589cb01 100644--- a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.test.tsx+++ b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.test.tsx@@ -79,4 +79,23 @@ describe("DatabaseDetailHeader", () => {expect(resource?.getAttribute("class")).toContain("min-w-0");expect(resource?.getAttribute("class")).toContain("truncate");});++ it("keeps the copy control adjacent to the database resource name", () => {+ const databaseName = "bb_sample_0123456789abcdef";+ const resourceName = `projects/project-a/instances/sample-0123456789abcdef/databases/${databaseName}`;++ act(() => {+ root.render(+ <DatabaseDetailHeader+ database={{ name: resourceName } as Database}+ />+ );+ });++ const resource = container.querySelector(`[title="${resourceName}"]`);+ const resourceRow = resource?.parentElement;+ expect(resourceRow?.getAttribute("class")).toContain("w-fit");+ expect(resourceRow?.getAttribute("class")).toContain("max-w-full");+ expect(resource?.getAttribute("class")).not.toContain("flex-1");+ });});diff --git a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsxindex e05cda47ab..6d9fdad773 100644--- a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx+++ b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx@@ -100,8 +100,8 @@ export function DatabaseDetailHeader({ database }: { database: Database }) {{databaseName}</span></div>- <div className="mt-1 flex w-full min-w-0 items-center gap-x-1 text-sm text-control-light">- <span className="min-w-0 flex-1 truncate" title={database.name}>+ <div className="mt-1 flex w-fit max-w-full min-w-0 items-center gap-x-1 text-sm text-control-light">+ <span className="min-w-0 truncate" title={database.name}>{database.name}</span><buttondiff --git a/frontend/src/routes/project/database-detail/overview/ObjectSectionTable.tsx b/frontend/src/routes/project/database-detail/overview/ObjectSectionTable.tsxindex 093ab8c3bc..f4f4cc2273 100644--- a/frontend/src/routes/project/database-detail/overview/ObjectSectionTable.tsx+++ b/frontend/src/routes/project/database-detail/overview/ObjectSectionTable.tsx@@ -1,5 +1,13 @@import type { ReactNode } from "react";import { useTranslation } from "react-i18next";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";export interface ObjectSectionRow {key: string;@@ -22,7 +30,7 @@ export function ObjectSectionTable({if (loading) {return (- <div className="rounded border border-dashed border-block-border px-4 py-6 text-sm text-control-light">+ <div className="rounded-sm border border-dashed border-block-border px-4 py-6 text-sm text-control-light">{t("common.loading")}</div>);@@ -30,29 +38,27 @@ export function ObjectSectionTable({if (rows.length === 0) {return (- <div className="rounded border border-dashed border-block-border px-4 py-6 text-sm text-control-light">+ <div className="rounded-sm border border-dashed border-block-border px-4 py-6 text-sm text-control-light">{emptyText || "-"}</div>);}return (- <div className="overflow-hidden rounded border border-block-border">- <table className="min-w-full divide-y divide-block-border">- <thead className="bg-control-bg">- <tr className="text-left text-sm text-control-light">- <th className="px-4 py-2 font-medium">{t("common.name")}</th>- <th className="px-4 py-2 font-medium">{t("common.definition")}</th>- <th className="px-4 py-2 font-medium">{t("common.comment")}</th>- </tr>- </thead>- <tbody className="divide-y divide-block-border bg-background">+ <div className="overflow-hidden rounded-sm border border-block-border">+ <Table>+ <TableHeader className="bg-control-bg">+ <TableRow>+ <TableHead>{t("common.name")}</TableHead>+ <TableHead>{t("common.definition")}</TableHead>+ <TableHead>{t("common.comment")}</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody striped={false} className="bg-background">{rows.map((row) => (- <tr+ <TableRowkey={row.key}- className={- row.onClick ? "cursor-pointer hover:bg-control-bg" : ""- }+ className={row.onClick ? "cursor-pointer" : undefined}role={row.onClick ? "button" : undefined}tabIndex={row.onClick ? 0 : undefined}onClick={row.onClick}@@ -67,17 +73,13 @@ export function ObjectSectionTable({: undefined}>- <td className="px-4 py-3 text-sm text-main">{row.name}</td>- <td className="px-4 py-3 text-sm text-control">- {row.description}- </td>- <td className="px-4 py-3 text-sm text-control">- {row.comment || "-"}- </td>- </tr>+ <TableCell className="text-main">{row.name}</TableCell>+ <TableCell>{row.description}</TableCell>+ <TableCell>{row.comment || "-"}</TableCell>+ </TableRow>))}- </tbody>- </table>+ </TableBody>+ </Table></div>);}diff --git a/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx b/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsxindex 6e98cca2e0..75fc948167 100644--- a/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx+++ b/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx@@ -27,6 +27,14 @@ import {StepIndicator,type StepIndicatorStep,} from "@/components/ui/step-indicator";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";@@ -633,33 +641,35 @@ function ReleaseSelector({}}className="block overflow-x-auto rounded-sm border border-control-border">- <table className="w-full text-sm">- <thead>- <tr className="border-b border-control-border bg-control-bg text-left">- <th className="w-10 px-4 py-2" />- <th className="px-4 py-2 font-medium">{t("common.name")}</th>- <th className="px-4 py-2 font-medium">{t("release.files")}</th>- </tr>- </thead>- <tbody>+ <Table>+ <TableHeader className="bg-control-bg">+ <TableRow>+ <TableHead className="w-10" />+ <TableHead>{t("common.name")}</TableHead>+ <TableHead>{t("release.files")}</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody striped={false}>{releases.map((release) => (- <tr+ <TableRowkey={release.name}- className="cursor-pointer border-b border-control-border last:border-b-0 hover:bg-control-bg"+ className="cursor-pointer"onClick={() => onSelectedReleaseChange(release)}>- <td className="px-4 py-2">+ <TableCell className="py-2"><RadioGroupItemvalue={release.name}aria-label={release.name.split("/").pop()}/>- </td>- <td className="px-4 py-2">{release.name.split("/").pop()}</td>- <td className="px-4 py-2">{release.files.length}</td>- </tr>+ </TableCell>+ <TableCell className="py-2">+ {release.name.split("/").pop()}+ </TableCell>+ <TableCell className="py-2">{release.files.length}</TableCell>+ </TableRow>))}- </tbody>- </table>+ </TableBody>+ </Table></RadioGroup></div>);diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsxindex 1616cbef03..a4a71b7930 100644--- a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx@@ -66,6 +66,14 @@ import {SheetTitle,} from "@/components/ui/sheet";import { Switch } from "@/components/ui/switch";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";import { Tooltip } from "@/components/ui/tooltip";import { useCurrentUser } from "@/hooks/useAppState";import { useOnKeyChange } from "@/hooks/useOnKeyChange";@@ -1806,10 +1814,10 @@ function DatabaseSelector({</div>) : (<>- <table className="w-full text-sm">- <thead>- <tr className="border-b text-left text-control-light">- <th className="w-8 py-2 pr-2">+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead className="w-10"><Checkboxchecked={someSelected ? "indeterminate" : allSelected}onCheckedChange={() =>@@ -1820,63 +1828,57 @@ function DatabaseSelector({)}/>- </th>- <th className="py-2 pr-4 font-medium">- {t("common.database")}- </th>- <th className="py-2 pr-4 font-medium">- {t("common.instance")}- </th>- <th className="py-2 pr-4 font-medium">- {t("common.environment")}- </th>- <th className="py-2 pr-4 font-medium whitespace-nowrap">+ </TableHead>+ <TableHead>{t("common.database")}</TableHead>+ <TableHead>{t("common.instance")}</TableHead>+ <TableHead>{t("common.environment")}</TableHead>+ <TableHead className="whitespace-nowrap">{t("common.status")}- </th>- </tr>- </thead>- <tbody>+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody striped={false}>{databases.map((db) => {const { databaseName } = extractDatabaseResourceName(db.name);const inst = getInstanceResource(db);const env = getDatabaseEnvironment(db);const isSelected = selectedNames.has(db.name);return (- <tr+ <TableRowkey={db.name}className={cn(- "cursor-pointer border-b hover:bg-control-bg",+ "cursor-pointer",isSelected && "bg-accent/5")}onClick={() => toggleDatabase(db.name)}>- <td className="py-2 pr-2">+ <TableCell className="py-2"><Checkbox checked={isSelected} />- </td>- <td className="py-2 pr-4">+ </TableCell>+ <TableCell className="py-2"><div className="flex items-center gap-x-1.5">{inst && (<EngineIcon engine={inst.engine} className="size-4" />)}<span>{databaseName}</span></div>- </td>- <td className="py-2 pr-4">{inst?.title}</td>- <td className="py-2 pr-4">+ </TableCell>+ <TableCell className="py-2">{inst?.title}</TableCell>+ <TableCell className="py-2">{env && <EnvironmentLabel environmentName={env.name} />}- </td>- <td className="py-2 pr-4">+ </TableCell>+ <TableCell className="py-2">{db.syncStatus === SyncStatus.FAILED ? (<XCircle className="size-4 text-error" />) : (<CheckCircle className="size-4 text-success" />)}- </td>- </tr>+ </TableCell>+ </TableRow>);})}- </tbody>- </table>+ </TableBody>+ </Table>{hasMore && (<div className="flex justify-center"><Button@@ -1939,43 +1941,38 @@ function DatabaseGroupSelector({onValueChange={(value) => onSelectedGroupChange(String(value))}className="block">- <table className="w-full text-sm">- <thead>- <tr className="border-b text-left text-control-light">- <th className="w-8 py-2 pr-2" />- <th className="py-2 pr-4 font-medium">- {t("common.database-group")}- </th>- </tr>- </thead>- <tbody>+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead className="w-10" />+ <TableHead>{t("common.database-group")}</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody striped={false}>{groups.map((group) => {const isSelected = selectedGroup === group.name;return (- <tr+ <TableRowkey={group.name}- className={cn(- "cursor-pointer border-b hover:bg-control-bg",- isSelected && "bg-accent/5"- )}+ className={cn("cursor-pointer", isSelected && "bg-accent/5")}onClick={() =>onSelectedGroupChange(isSelected ? undefined : group.name)}>- <td className="py-2 pr-2">+ <TableCell className="py-2"><RadioGroupItem value={group.name} aria-label={group.title} />- </td>- <td className="py-2 pr-4">+ </TableCell>+ <TableCell className="py-2"><div className="flex items-center gap-x-1.5"><FolderTree className="size-4 shrink-0 text-control-light" /><span>{group.title}</span></div>- </td>- </tr>+ </TableCell>+ </TableRow>);})}- </tbody>- </table>+ </TableBody>+ </Table></RadioGroup>);}diff --git a/frontend/src/routes/project/plan-detail/components/SchemaEditorSheet.tsx b/frontend/src/routes/project/plan-detail/components/SchemaEditorSheet.tsxindex ab63b2ffb5..13c5ac463e 100644--- a/frontend/src/routes/project/plan-detail/components/SchemaEditorSheet.tsx+++ b/frontend/src/routes/project/plan-detail/components/SchemaEditorSheet.tsx@@ -1,14 +1,15 @@import { cloneDeep } from "lodash-es";-import { Loader2, Maximize2, Minimize2, X } from "lucide-react";+import { Loader2, Maximize2, Minimize2 } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Combobox } from "@/components/ui/combobox";import {Sheet,- SheetClose,+ SheetBody,SheetContent,SheetFooter,+ SheetHeader,SheetTitle,} from "@/components/ui/sheet";import { SchemaEditorLite } from "@/modules/schema-editor";@@ -54,16 +55,14 @@ export function SchemaEditorSheet({width={maximized ? "huge" : "xlarge"}className="flex flex-col">- {open && (- <SchemaEditorSheetBody- databaseNames={databaseNames}- project={project}- onInsert={onInsert}- onCancel={() => handleOpenChange(false)}- maximized={maximized}- onMaximizedChange={setMaximized}- />- )}+ <SchemaEditorSheetBody+ databaseNames={databaseNames}+ project={project}+ onInsert={onInsert}+ onCancel={() => handleOpenChange(false)}+ maximized={maximized}+ onMaximizedChange={setMaximized}+ /></SheetContent></Sheet>);@@ -229,71 +228,62 @@ function SchemaEditorSheetBody({return (<>- {/* Compact single-row toolbar — title, template-database picker, and- window controls share one line so the editor below gets back the- ~50px we used to spend on a separate combobox row. */}- <div className="flex items-center gap-x-3 border-b border-control-border px-4 py-2">- <SheetTitle className="text-base font-semibold">- {t("schema-editor.self")}- </SheetTitle>- {databaseNames.length > 1 && (- <div className="flex min-w-0 items-center gap-x-2">- <span className="shrink-0 text-xs text-control-light">- {t("schema-editor.template-database")}:- </span>- <Combobox- value={selectedDatabaseName}- onChange={setSelectedDatabaseName}- options={databaseOptions}- disabled={isPreparingMetadata}- clearable={false}- size="sm"- className="w-56"- portal- />- </div>- )}- <div className="ml-auto flex items-center gap-x-1">- <button- type="button"+ <SheetHeader+ className="items-center px-4 py-2"+ actions={+ <Button+ appearance="secondary"+ size="xs"aria-label={maximizeLabel}title={maximizeLabel}onClick={() => onMaximizedChange(!maximized)}- className="shrink-0 cursor-pointer rounded-xs p-1 text-control hover:bg-control-bg focus:outline-hidden focus-visible:ring-2 focus-visible:ring-accent"><MaximizeIcon className="size-4" />- </button>- <SheetClose- aria-label={t("common.close")}- className="shrink-0 cursor-pointer rounded-xs p-1 text-control hover:bg-control-bg focus:outline-hidden focus-visible:ring-2 focus-visible:ring-accent"- >- <X className="size-4" />- </SheetClose>+ </Button>+ }+ >+ <div className="flex min-w-0 items-center gap-x-3">+ <SheetTitle className="text-base font-semibold">+ {t("schema-editor.self")}+ </SheetTitle>+ {databaseNames.length > 1 && (+ <div className="flex min-w-0 items-center gap-x-2">+ <span className="shrink-0 text-xs text-control-light">+ {t("schema-editor.template-database")}:+ </span>+ <Combobox+ value={selectedDatabaseName}+ onChange={setSelectedDatabaseName}+ options={databaseOptions}+ disabled={isPreparingMetadata}+ clearable={false}+ size="sm"+ className="w-56"+ portal+ />+ </div>+ )}</div>- </div>- <div className="relative flex-1 overflow-hidden px-4 pt-2 pb-2">+ </SheetHeader>+ <SheetBody className="relative overflow-hidden px-4 py-2"><SchemaEditorLiteref={schemaEditorRef}project={project}targets={targets}loading={isPreparingMetadata}/>- </div>+ </SheetBody><SheetFooter>- <div className="flex w-full items-center justify-end gap-x-2">- <Button appearance="outline" onClick={onCancel}>- {t("common.cancel")}- </Button>- <Button- disabled={- isPreparingMetadata || isInserting || targets.length === 0- }- onClick={() => void handleInsert()}- >- {isInserting && <Loader2 className="size-4 animate-spin" />}- {t("schema-editor.insert-sql")}- </Button>- </div>+ <Button appearance="outline" onClick={onCancel}>+ {t("common.cancel")}+ </Button>+ <Button+ disabled={isPreparingMetadata || isInserting || targets.length === 0}+ onClick={() => void handleInsert()}+ >+ {isInserting && <Loader2 className="size-4 animate-spin" />}+ {t("schema-editor.insert-sql")}+ </Button></SheetFooter></>);diff --git a/frontend/src/routes/project/plan-detail/components/SchemaEditorSheetLayout.test.ts b/frontend/src/routes/project/plan-detail/components/SchemaEditorSheetLayout.test.tsnew file mode 100644index 0000000000..b624f72a15--- /dev/null+++ b/frontend/src/routes/project/plan-detail/components/SchemaEditorSheetLayout.test.ts@@ -0,0 +1,23 @@+import { readFileSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, test } from "vitest";++const source = readFileSync(+ join(import.meta.dirname, "SchemaEditorSheet.tsx"),+ "utf8"+);++describe("SchemaEditorSheet layout", () => {+ test("keeps the editor mounted through the sheet close animation", () => {+ expect(source).toContain("<SchemaEditorSheetBody");+ expect(source).not.toContain("{open && (");+ });++ test("uses the shared sheet regions and header actions", () => {+ expect(source).toContain("<SheetHeader");+ expect(source).toContain("actions={");+ expect(source).toContain("<SheetBody");+ expect(source).toContain("<SheetFooter>");+ expect(source).not.toContain("<SheetClose");+ });+});diff --git a/frontend/src/routes/project/plan-detail/components/review/ReviewApprovalFlow.tsx b/frontend/src/routes/project/plan-detail/components/review/ReviewApprovalFlow.tsxindex 4810a3dda0..12bfeb1005 100644--- a/frontend/src/routes/project/plan-detail/components/review/ReviewApprovalFlow.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/ReviewApprovalFlow.tsx@@ -215,9 +215,9 @@ function StatusDot({<divclassName={cn("flex size-6 shrink-0 items-center justify-center rounded-full text-xs font-medium",- status === "approved" && "bg-success text-white",- status === "rejected" && "bg-error text-white",- status === "current" && "bg-accent text-white",+ status === "approved" && "bg-success text-accent-text",+ status === "rejected" && "bg-error text-accent-text",+ status === "current" && "bg-accent text-accent-text",status === "pending" && "bg-control-bg text-control")}>@@ -285,7 +285,7 @@ function FlowNode({{roleName}</span>{step.status === "current" && (- <Badge className="px-1.5 py-0 text-[10px]" variant="secondary">+ <Badge className="px-1.5 py-0 text-xs" variant="secondary">{t("plan.review.approval-flow.current")}</Badge>)}@@ -353,17 +353,17 @@ function NodeReviewers({nativeButton={false}openOnHoverrender={- <div className="mt-1 flex h-4 w-fit cursor-default items-center gap-x-1.5">- <div className="flex items-center -space-x-1">+ <div className="mt-1 flex h-5 w-fit cursor-default items-center gap-x-1.5">+ <div className="flex items-center">{visible.map((user) => (<InitialsAvatar- className="size-4 text-[9px] ring-2 ring-white"+ className="-ml-1 size-5 text-xs ring-2 ring-background first:ml-0"key={user.name}user={user}/>))}{overflow > 0 && (- <span className="flex size-4 items-center justify-center rounded-full bg-control-bg text-[9px] font-medium text-control ring-2 ring-white">+ <span className="-ml-1 flex size-5 items-center justify-center rounded-full bg-control-bg font-medium text-control text-xs ring-2 ring-background first:ml-0">+{overflow}</span>)}@@ -380,7 +380,7 @@ function NodeReviewers({<div className="flex max-h-64 flex-col gap-y-2 overflow-y-auto">{listed.map((user) => (<div className="flex items-center gap-x-2" key={user.name}>- <InitialsAvatar className="size-6 text-[10px]" user={user} />+ <InitialsAvatar className="size-6 text-xs" user={user} /><div className="min-w-0"><div className="truncate text-sm text-main">{user.title || user.email.split("@")[0]}@@ -412,14 +412,14 @@ function ApprovedChip({ steps }: { steps: FlowStep[] }) {openOnHoverrender={<div className="flex shrink-0 cursor-default items-start gap-x-2">- <div className="flex size-6 shrink-0 items-center justify-center rounded-full bg-success text-white">+ <div className="flex size-6 shrink-0 items-center justify-center rounded-full bg-success text-accent-text"><Check className="size-3.5" /></div><div className="min-w-0"><span className="text-sm font-medium text-control">{t("plan.review.approval-flow.n-approved", { n: steps.length })}</span>- <div className="mt-1 flex h-4 items-center">+ <div className="mt-1 flex h-5 items-center"><ChipAvatars principals={steps.map((s) => s.approver ?? "")} /></div></div>@@ -427,7 +427,7 @@ function ApprovedChip({ steps }: { steps: FlowStep[] }) {}/><PopoverContent align="start" className="w-64" side="bottom">- <div className="flex flex-col gap-y-2.5">+ <div className="flex flex-col gap-y-2">{steps.map((step) => (<ApprovedPopoverRow key={step.index} step={step} />))}@@ -447,16 +447,13 @@ function ApprovedPopoverRow({ step }: { step: FlowStep }) {const roleName = displayRoleTitleFromList(step.role, roleList);return (<div className="flex items-start gap-x-2">- <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-success text-white">+ <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-success text-accent-text"><Check className="size-3" /></span><div className="min-w-0 flex-1"><div className="truncate text-sm font-medium text-main">{roleName}</div><div className="mt-0.5 flex items-center gap-x-1 text-xs text-control-light">- <InitialsAvatar- className="size-4 shrink-0 text-[8px]"- user={approver}- />+ <InitialsAvatar className="size-5 shrink-0 text-xs" user={approver} /><span className="truncate">{t("plan.review.approval-flow.approved-by", {user: approver.title,@@ -481,7 +478,7 @@ function InitialsAvatar({return (<spanclassName={cn(- "flex items-center justify-center rounded-full font-medium text-white",+ "flex items-center justify-center rounded-full font-medium text-accent-text",className)}style={{ backgroundColor: getAvatarColor(name) }}@@ -494,10 +491,10 @@ function InitialsAvatar({function ChipAvatars({ principals }: { principals: string[] }) {const getUserByIdentifier = useAppStore((state) => state.getUserByIdentifier);return (- <span className="flex items-center -space-x-1">+ <span className="flex items-center">{principals.slice(0, 3).map((principal, i) => (<InitialsAvatar- className="size-4 text-[9px] ring-1 ring-white"+ className="-ml-1 size-5 text-xs ring-1 ring-background first:ml-0"key={`${principal}-${i}`}user={getUserByIdentifier(principal) ?? unknownUser(principal)}/>@@ -524,7 +521,7 @@ function PendingChip({ issue, steps }: { issue: Issue; steps: FlowStep[] }) {}/><PopoverContent align="start" className="w-64" side="bottom">- <div className="flex flex-col gap-y-2.5">+ <div className="flex flex-col gap-y-2">{steps.map((step) => (<PendingPopoverRow issue={issue} key={step.index} step={step} />))}@@ -551,23 +548,23 @@ function PendingPopoverRow({ issue, step }: { issue: Issue; step: FlowStep }) {return (<div className="flex items-start gap-x-2">- <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-control-bg text-[10px] font-medium text-control">+ <span className="flex size-5 shrink-0 items-center justify-center rounded-full bg-control-bg font-medium text-control text-xs">{step.index + 1}</span><div className="min-w-0 flex-1"><div className="truncate text-sm font-medium text-main">{roleName}</div>{candidates.length > 0 && (<div className="mt-1 flex items-center gap-x-1.5">- <div className="flex items-center -space-x-1">+ <div className="flex items-center">{visible.map((user) => (<InitialsAvatar- className="size-4 text-[8px] ring-2 ring-background"+ className="-ml-1 size-5 text-xs ring-2 ring-background first:ml-0"key={user.name}user={user}/>))}{overflow > 0 && (- <span className="flex size-4 items-center justify-center rounded-full bg-control-bg text-[8px] text-control ring-2 ring-background">+ <span className="-ml-1 flex size-5 items-center justify-center rounded-full bg-control-bg text-control text-xs ring-2 ring-background first:ml-0">+{overflow}</span>)}diff --git a/frontend/src/routes/project/plan-detail/components/review/ReviewCommentComposer.tsx b/frontend/src/routes/project/plan-detail/components/review/ReviewCommentComposer.tsxindex bd78e1b43f..9985b3b587 100644--- a/frontend/src/routes/project/plan-detail/components/review/ReviewCommentComposer.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/ReviewCommentComposer.tsx@@ -67,13 +67,15 @@ export function ReviewCommentComposer({ issueName }: { issueName: string }) {title={currentUser.title || currentUser.email}/></div>- <button- className="min-w-0 flex-1 rounded-md border px-3 py-1.5 text-left text-sm text-control-placeholder hover:border-control-border"+ <Button+ appearance="outline"+ className="min-w-0 flex-1 justify-start text-control-placeholder"onClick={() => setExpanded(true)}+ size="md"type="button">{t("plan.review.activity.add-a-comment")}- </button>+ </Button></div>);}diff --git a/frontend/src/routes/project/plan-detail/components/review/ReviewReadinessFooter.tsx b/frontend/src/routes/project/plan-detail/components/review/ReviewReadinessFooter.tsxindex fbf3c7c826..471ec3413d 100644--- a/frontend/src/routes/project/plan-detail/components/review/ReviewReadinessFooter.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/ReviewReadinessFooter.tsx@@ -111,15 +111,17 @@ export function ReviewReadinessFooter({)}{weight === "link" && (- <button- className="ml-auto inline-flex shrink-0 items-center gap-x-1 text-xs text-control-placeholder underline hover:text-control disabled:opacity-60"+ <Button+ appearance="link"+ className="ml-auto shrink-0 text-control-placeholder underline hover:text-control"disabled={creating}onClick={triggerDeploy}+ size="xs"type="button">{creating && <Loader2 className="size-3 animate-spin" />}{t("plan.review.footer.bypass-and-deploy")}- </button>+ </Button>)}{weight === "button" && (<Buttondiff --git a/frontend/src/routes/project/plan-detail/components/review/ReviewRejectionBanner.tsx b/frontend/src/routes/project/plan-detail/components/review/ReviewRejectionBanner.tsxindex 30ba8f9abd..be2e9e106e 100644--- a/frontend/src/routes/project/plan-detail/components/review/ReviewRejectionBanner.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/ReviewRejectionBanner.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { issueServiceClientConnect } from "@/api";import { HumanizeTs } from "@/components/HumanizeTs";import { Alert } from "@/components/ui/alert";+import { Button } from "@/components/ui/button";import { useCurrentUser } from "@/hooks/useAppState";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";@@ -113,14 +114,15 @@ export function ReviewRejectionBanner({<span>{t("plan.review.rejection.guidance-prefix")}{" "}{isCreator && !page.readonly ? (- <button- className="font-medium text-accent hover:underline disabled:opacity-60"+ <Button+ appearance="link"disabled={reRequesting}onClick={() => void handleReRequest()}+ size="xs"type="button">{t("plan.review.rejection.re-request-review")}- </button>+ </Button>) : (<span>{t("plan.review.rejection.re-request-review")}</span>)}{" "}diff --git a/frontend/src/routes/project/plan-detail/components/review/bypassDeploy.tsx b/frontend/src/routes/project/plan-detail/components/review/bypassDeploy.tsxindex 1ef9894075..7562b63f98 100644--- a/frontend/src/routes/project/plan-detail/components/review/bypassDeploy.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/bypassDeploy.tsx@@ -221,10 +221,7 @@ export function BypassAndDeploySheet({}}open={confirmOpen}>- <SheetContent- className="w-[28rem] max-w-[calc(100vw-2rem)]"- width="standard"- >+ <SheetContent width="narrow"><SheetHeader><SheetTitle>{t("plan.review.footer.bypass-and-deploy")}</SheetTitle></SheetHeader>@@ -263,7 +260,7 @@ export function BypassAndDeploySheet({<h3 className="textlabel uppercase">{t("plan.navigator.review")}</h3>- <div className="rounded-md border">+ <div className="rounded-sm border"><ReviewApprovalFlow issue={issue} /></div></div>diff --git a/frontend/src/routes/workspace/IDPsPage.tsx b/frontend/src/routes/workspace/IDPsPage.tsxindex 66b96ef80a..fda506bab9 100644--- a/frontend/src/routes/workspace/IDPsPage.tsx+++ b/frontend/src/routes/workspace/IDPsPage.tsx@@ -1,5 +1,6 @@import { create } from "@bufbuild/protobuf";import { Code, ConnectError } from "@connectrpc/connect";+import { cva } from "class-variance-authority";import {ArrowRight,Building,@@ -128,6 +129,22 @@ interface FieldMappingState {groups: string;}+const selectionCardVariants = cva(+ "block rounded-sm border p-4 transition-colors",+ {+ variants: {+ selected: {+ true: "border-accent bg-accent/10",+ false: "border-block-border hover:border-control-border",+ },+ disabled: {+ true: "cursor-not-allowed opacity-50",+ false: "cursor-pointer",+ },+ },+ }+);+// ============================================================// ExternalURLInfo// ============================================================@@ -160,18 +177,18 @@ function ExternalURLInfo({ type }: { type: IdentityProviderType }) {};return (- <div className="p-4 rounded-sm border border-gray-200 bg-gray-50">+ <div className="rounded-sm border border-block-border bg-control-bg p-4"><div className="flex items-start gap-x-3">- <Info className="w-5 h-5 text-blue-500 mt-0.5 shrink-0" />+ <Info className="mt-0.5 size-5 shrink-0 text-info" /><div className="flex-1 min-w-0">- <p className="text-sm font-medium text-gray-900 mb-2">+ <p className="mb-2 font-medium text-main text-sm">{t("settings.sso.form.identity-provider-needed-information")}</p>- <p className="text-sm text-gray-600 mb-3">+ <p className="mb-3 text-control-light text-sm">{t("settings.sso.form.redirect-url-description")}</p><div>- <label className="block text-sm font-medium text-gray-700 mb-1">+ <label className="mb-1 block font-medium text-control text-sm">{t("settings.sso.form.redirect-url")}</label><div className="flex items-center gap-x-2">@@ -363,7 +380,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.in-parameters")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.in-parameters-description")}</div></div>@@ -377,7 +394,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.in-header")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.in-header-description")}</div></div>@@ -506,7 +523,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.in-parameters")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.in-parameters-description")}</div></div>@@ -520,7 +537,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.in-header")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.in-header-description")}</div></div>@@ -697,7 +714,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.starttls")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.starttls-description")}</div></div>@@ -711,7 +728,7 @@ function ProviderConfigForm({<div className="font-medium">{t("settings.sso.form.ldaps")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.ldaps-description")}</div></div>@@ -725,7 +742,7 @@ function ProviderConfigForm({><div><div className="font-medium">{t("settings.sso.form.none")}</div>- <div className="text-sm text-gray-600">+ <div className="text-control-light text-sm">{t("settings.sso.form.none-description")}</div></div>@@ -784,15 +801,15 @@ function FieldMappingForm({placeholder={t("settings.sso.form.identifier-placeholder")}/><div className="flex items-center text-base">- <ArrowRight className="mx-2 h-5 w-5 text-gray-400" />- <p className="flex items-center font-semibold text-gray-800">+ <ArrowRight className="mx-2 size-5 text-control-placeholder" />+ <p className="flex items-center font-semibold text-control">{t("settings.sso.form.identifier")}<span className="ml-0.5 text-error">*</span><spanclassName="ml-1"title={t("settings.sso.form.identifier-tips")}>- <Info className="w-4 h-4 text-blue-500" />+ <Info className="size-4 text-info" /></span></p></div>@@ -809,8 +826,8 @@ function FieldMappingForm({placeholder={t("settings.sso.form.display-name-placeholder")}/><div className="flex items-center text-base">- <ArrowRight className="mx-2 h-5 w-5 text-gray-400" />- <p className="font-semibold text-gray-800">+ <ArrowRight className="mx-2 size-5 text-control-placeholder" />+ <p className="font-semibold text-control">{t("settings.sso.form.display-name")}</p></div>@@ -827,8 +844,8 @@ function FieldMappingForm({placeholder={t("settings.sso.form.phone-placeholder")}/><div className="flex items-center text-base">- <ArrowRight className="mx-2 h-5 w-5 text-gray-400" />- <p className="font-semibold text-gray-800">+ <ArrowRight className="mx-2 size-5 text-control-placeholder" />+ <p className="font-semibold text-control">{t("settings.sso.form.phone")}</p></div>@@ -846,8 +863,8 @@ function FieldMappingForm({placeholder={t("settings.sso.form.groups-placeholder")}/><div className="flex items-center text-base">- <ArrowRight className="mx-2 h-5 w-5 text-gray-400" />- <p className="font-semibold text-gray-800">+ <ArrowRight className="mx-2 size-5 text-control-placeholder" />+ <p className="font-semibold text-control">{t("settings.sso.form.groups")}</p></div>@@ -1384,7 +1401,7 @@ function CreateWizardDrawer({return (<Sheet open onOpenChange={(nextOpen) => !nextOpen && onClose()}>- <SheetContent width="large" className="bg-white">+ <SheetContent width="large"><SheetHeader><SheetTitle>{t("identity-provider.self")}</SheetTitle></SheetHeader>@@ -1399,15 +1416,15 @@ function CreateWizardDrawer({/>{/* Step content */}- <div className="bg-white rounded-sm border border-gray-200 px-6 pt-6 pb-10">+ <div className="rounded-sm border border-block-border bg-background px-6 pt-6 pb-10">{/* Step 1: Select provider type */}{currentStep === 1 && (<div className="flex flex-col gap-y-6"><div className="text-center flex flex-col gap-y-2">- <h2 className="text-2xl font-bold text-gray-900">+ <h2 className="font-bold text-2xl text-main">{t("settings.sso.form.type")}</h2>- <p className="text-gray-600">+ <p className="text-control-light">{t("settings.sso.form.type-description")}</p></div>@@ -1434,11 +1451,10 @@ function CreateWizardDrawer({return (<divkey={item.type}- className={`block border rounded-sm p-4 transition-colors cursor-pointer ${- selectedType === item.type- ? "border-blue-500 bg-blue-50"- : "border-gray-200 hover:border-gray-300"- } ${!hasFeature ? "opacity-50 cursor-not-allowed" : ""}`}+ className={selectionCardVariants({+ selected: selectedType === item.type,+ disabled: !hasFeature,+ })}onClick={() => {if (hasFeature) {handleTypeChange(item.type);@@ -1455,16 +1471,16 @@ function CreateWizardDrawer({radioClassName="mt-1.5"/><Icon- className="w-6 h-6 mt-1 shrink-0"+ className="mt-1 size-6 shrink-0"strokeWidth={1.5}/><div className="flex-1"><div className="flex items-center gap-x-2">- <span className="text-lg font-medium text-gray-900">+ <span className="font-medium text-lg text-main">{identityProviderTypeToString(item.type)}</span></div>- <p className="text-sm text-gray-600 mt-1">+ <p className="mt-1 text-control-light text-sm">{getProviderDescription(item.type)}</p></div>@@ -1480,10 +1496,10 @@ function CreateWizardDrawer({{currentStep === 2 && isOAuth2 && (<div className="flex flex-col gap-y-6"><div className="text-center flex flex-col gap-y-2">- <h2 className="text-2xl font-bold text-gray-900">+ <h2 className="font-bold text-2xl text-main">{t("settings.sso.form.use-template")}</h2>- <p className="text-gray-600">+ <p className="text-control-light">{t("settings.sso.form.template-description")}</p></div>@@ -1510,11 +1526,10 @@ function CreateWizardDrawer({return (<divkey={tmpl.title}- className={`block border rounded-sm p-4 transition-colors cursor-pointer ${- selectedTemplate?.title === tmpl.title- ? "border-blue-500 bg-blue-50"- : "border-gray-200 hover:border-gray-300"- } ${!hasFeature ? "opacity-50 cursor-not-allowed" : ""}`}+ className={selectionCardVariants({+ selected: selectedTemplate?.title === tmpl.title,+ disabled: !hasFeature,+ })}onClick={() => {if (hasFeature) {applyTemplate(tmpl);@@ -1527,15 +1542,12 @@ function CreateWizardDrawer({aria-label={tmpl.title}disabled={!hasFeature}/>- <Icon- className="w-8 h-8 shrink-0"- strokeWidth={1}- />+ <Icon className="size-8 shrink-0" strokeWidth={1} /><div className="flex-1">- <span className="text-base font-medium text-gray-900">+ <span className="font-medium text-base text-main">{tmpl.title}</span>- <p className="text-sm text-gray-600">+ <p className="text-control-light text-sm">{getTemplateDescription(tmpl.title)}</p></div>@@ -1551,10 +1563,10 @@ function CreateWizardDrawer({{currentStep === basicInfoStep && (<div className="flex flex-col gap-y-6"><div className="text-center flex flex-col gap-y-2">- <h2 className="text-2xl font-bold text-gray-900">+ <h2 className="font-bold text-2xl text-main">{t("common.general")}</h2>- <p className="text-gray-600">+ <p className="text-control-light">{t("settings.sso.form.general-setting-description")}</p></div>@@ -1607,10 +1619,10 @@ function CreateWizardDrawer({{currentStep === configStep && (<div className="flex flex-col gap-y-6"><div className="text-center flex flex-col gap-y-2">- <h2 className="text-2xl font-bold text-gray-900">+ <h2 className="font-bold text-2xl text-main">{t("settings.sso.form.configuration")}</h2>- <p className="text-gray-600">+ <p className="text-control-light">{t("settings.sso.form.configuration-description")}</p></div>@@ -1640,10 +1652,10 @@ function CreateWizardDrawer({{currentStep === mappingStep && (<div className="flex flex-col gap-y-6"><div className="text-center flex flex-col gap-y-2">- <h2 className="text-2xl font-bold text-gray-900">+ <h2 className="font-bold text-2xl text-main">{t("settings.sso.form.user-information-mapping")}</h2>- <p className="text-gray-600">+ <p className="text-control-light">{t("settings.sso.form.user-information-mapping-description")}{" "}@@ -1696,8 +1708,8 @@ function CreateWizardDrawer({</SheetFooter>{isCreating && (- <div className="absolute inset-0 z-10 bg-white/50 flex items-center justify-center">- <div className="animate-spin h-6 w-6 border-2 border-accent border-t-transparent rounded-full" />+ <div className="absolute inset-0 z-10 flex items-center justify-center bg-background/50">+ <div className="size-6 animate-spin rounded-full border-2 border-accent border-t-transparent" /></div>)}</SheetContent>@@ -1776,8 +1788,8 @@ export function IDPsPage() {<FeatureBadgefeature={PlanFeature.FEATURE_GOOGLE_AND_GITHUB_SSO}clickable={false}- className="mr-1 text-white inline-flex"- fallback={<Plus className="h-4 w-4 mr-1" />}+ className="inline-flex text-accent-text"+ fallback={<Plus className="size-4" />}/>{t("common.create")}</Button>diff --git a/frontend/src/routes/workspace/IDPsPageLayout.test.ts b/frontend/src/routes/workspace/IDPsPageLayout.test.tsindex ed3153f97e..26ab70509a 100644--- a/frontend/src/routes/workspace/IDPsPageLayout.test.ts+++ b/frontend/src/routes/workspace/IDPsPageLayout.test.ts@@ -47,5 +47,12 @@ describe("IDPsPage create SSO layout", () => {expect(providerConfigSource).toContain("FormTitle");expect(providerConfigSource).not.toContain("FormLabel");expect(fieldMappingSource).toContain("FormFieldGroup");+ expect(createWizardSource.match(/selectionCardVariants\(/g)).toHaveLength(+ 2+ );+ expect(createWizardSource).toContain('width="large"');+ expect(createWizardSource).toContain("<SheetHeader>");+ expect(createWizardSource).toContain("<SheetBody");+ expect(createWizardSource).toContain("<SheetFooter>");});});diff --git a/frontend/src/routes/workspace/ServiceAccountsPage.tsx b/frontend/src/routes/workspace/ServiceAccountsPage.tsxindex ffb92f01b0..39eedd6932 100644--- a/frontend/src/routes/workspace/ServiceAccountsPage.tsx+++ b/frontend/src/routes/workspace/ServiceAccountsPage.tsx@@ -757,11 +757,7 @@ export function ServiceAccountsPage({ projectId }: { projectId?: string }) {return (<PageLayout>- {/* Header */}- <PageToolbar>- <h2 className="text-lg font-medium leading-7 text-main">- {t("settings.members.service-accounts")}- </h2>+ <PageToolbar align="end"><PermissionGuardpermissions={["bb.serviceAccounts.create"]}project={project}diff --git a/frontend/src/routes/workspace/WorkloadIdentitiesPage.tsx b/frontend/src/routes/workspace/WorkloadIdentitiesPage.tsxindex d48982965f..06fa586fd9 100644--- a/frontend/src/routes/workspace/WorkloadIdentitiesPage.tsx+++ b/frontend/src/routes/workspace/WorkloadIdentitiesPage.tsx@@ -358,11 +358,7 @@ export function WorkloadIdentitiesPage({ projectId }: { projectId?: string }) {return (<PageLayout>- {/* Header */}- <PageToolbar>- <p className="text-lg font-medium leading-7 text-main">- {t("settings.members.workload-identities")}- </p>+ <PageToolbar align="end"><PermissionGuardpermissions={["bb.workloadIdentities.create"]}project={project}diff --git a/frontend/src/routes/workspace/WorkspacePageLayout.test.ts b/frontend/src/routes/workspace/WorkspacePageLayout.test.tsindex 36f58054a3..2009b216d4 100644--- a/frontend/src/routes/workspace/WorkspacePageLayout.test.ts+++ b/frontend/src/routes/workspace/WorkspacePageLayout.test.ts@@ -128,6 +128,23 @@ describe("workspace list page layout", () => {}});+ test("keeps machine identity toolbars action-only", () => {+ for (const file of [+ "ServiceAccountsPage.tsx",+ "WorkloadIdentitiesPage.tsx",+ ] as const) {+ const source = readSettingsPage(file);++ expect(source, file).toContain('<PageToolbar align="end">');+ expect(source, file).not.toContain(+ 't("settings.members.service-accounts")'+ );+ expect(source, file).not.toContain(+ 't("settings.members.workload-identities")'+ );+ }+ });+test("uses shared workspace info surfaces for persistent page descriptions", () => {for (const file of workspaceInfoPages) {const source = readSettingsPage(file);