Skip to content

feat(frontend): the 14px type scale — one ladder for the whole app - #5850

Merged
mmabrouk merged 1 commit into
release/v0.112.0from
feat/type-scale-14
Aug 9, 2026
Merged

feat(frontend): the 14px type scale — one ladder for the whole app#5850
mmabrouk merged 1 commit into
release/v0.112.0from
feat/type-scale-14

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Aug 9, 2026

Copy link
Copy Markdown
Member

The approved typography proposal (visual audit), implemented in one pass. 181 files, +730/−748.

The scale

  • Base 12→14 with line-height 1.6667→1.4286 — the body text box stays exactly 20px, so default and small controls do not change height; only large controls grow 2px.
  • Page titles 20→24/32 (both title line-height variants unify — the home/settings 25-vs-28 split is gone).
  • fontSizeSM 10→12, fontSizeLG 14→16, plus ~230 mirrored token values.
  • Tailwind xs 12→13/18 (the new secondary step) — moves the 335-site sweep; 10px sites →12px (128 sites).
  • Sidebar nav, group titles, project switcher: body size (14), the audit's headline fix.
  • Hero 20→24 (the 30px first-run hero stays); section headings 16/600 in both columns; card titles 16.

Judgment calls (details in the commit)

  • Four @agenta/ui shadcn parity shims updated to the new antd values (divider/progress/spinner/alert) — leaving them would silently break antd↔shadcn parity.
  • NOT changed: 9px avatar monograms and badge-dot geometry (geometry-bound; claude.ai runs 9px monograms too), 61 text-[13px] sites (13 IS the new secondary step), MarkdownPreview's content scale.
  • ~25 sites hardcode the OLD token line-height as arbitrary values — stale but not broken; follow-up lane candidate.

Verification

Resolved Tailwind config emits the new ladder end to end; generated theme files byte-identical (fonts never fed them); zero new eslint findings across all 181 files; 312/312 entity-ui tests; live stack compiles and serves the scale. Visual QA sweep (screenshots, both themes) running now — its findings land here before merge.

Stacked on #5848; merge last.

@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Error Error Aug 9, 2026 9:23pm

Request Review

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. frontend ui labels Aug 9, 2026
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Style
    • Standardized typography across the application using consistent text sizes and line heights.
    • Improved readability of labels, metadata, badges, helper text, empty states, tooltips, and status messages.
    • Increased visibility of key headings, badges, controls, and progress indicators.
    • Updated global theme typography for buttons, fields, headings, inputs, and other interface elements.

Walkthrough

The PR standardizes typography across OSS components and shared packages. It replaces many fixed pixel values with Tailwind text utilities, increases selected labels and badges, adds the xs Tailwind token, and updates control-scale and Ant Design typography tokens.

Changes

Typography standardization

Layer / File(s) Summary
Shared typography tokens
web/oss/src/styles/theme/controlScale.ts, web/oss/src/styles/tokens/antd-themeConfig.json, web/oss/tailwind.config.ts
Control scales and Ant Design typography tokens use larger, normalized font sizes and line heights. Tailwind adds an xs token with 13px text and 18px line height.
OSS component typography
web/oss/src/components/...
Agent chat, drives, inspectors, evaluations, playground, references, onboarding, sidebar, templates, and related components replace fixed small text sizes with shared utilities or 12px–16px values.
Shared package typography
web/packages/agenta-annotation-ui/..., web/packages/agenta-entity-ui/..., web/packages/agenta-playground-ui/..., web/packages/agenta-sessions-ui/..., web/packages/agenta-ui/...
Shared controls, drawers, selectors, editors, playground views, session views, and presentational components use the updated typography scale.
Component line-height updates
web/packages/agenta-ui/src/components/ui/*
Alert, divider, progress, and spinner typography documentation and rendered styles use updated text sizes and line-height values.

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

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 60.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: applying a unified 14px typography scale across the frontend.
Description check ✅ Passed The description directly explains the typography-scale implementation, scope, judgment calls, and verification results.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/type-scale-14

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@mmabrouk
mmabrouk changed the base branch from feat/create-agent-flow to release/v0.112.0 August 9, 2026 21:22
Mahmoud's approved scale (audit artifact 783b0df0): base 12->14 with
line-height 1.6667->1.4286 (the body box stays exactly 20px, so default
and small controls do not grow), titles 20->24/32, fontSizeSM 10->12,
fontSizeLG 14->16, and the ~230 token values that mirror them; Tailwind
xs -> 13/18 (the new secondary step); control ramps to 14/16; and the
per-surface sweep - 15/14.5/13.5/12.5/11.5/11px -> the scale, 10px ->
12px, hero 20->24 (first-run 30 kept), section headings 16/600 both
columns, sidebar nav and switcher on body size. Four @agenta/ui shadcn
parity shims updated to the new antd values so the shared package stays
in parity. Icon/monogram geometry (9px avatars, badge dots) untouched;
61 text-[13px] sites left as-is (13 IS the new secondary step).

181 files. Verified: resolved Tailwind config emits the new ladder, the
generated theme files are byte-identical (fonts never fed them), eslint
zero new findings, 312/312 entity-ui tests, live stack compiles and
serves the new scale.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 8

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
web/packages/agenta-entity-ui/src/selection/components/UnifiedEntityPicker/variants/PopoverCascaderVariant.tsx (1)

154-172: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Let the multi-select child header grow with the new text size.

The header keeps a fixed h-8 height. It contains two stacked text rows and vertical padding. The new text-[12px] rows can exceed the fixed height and overlap the first child row. Use min-h-8 instead of h-8, or set an explicit compact line height and adjust the padding.

Proposed fix
- className="... bg-[var(--ag-c-05172905)] h-8 flex items-start justify-between gap-2"
+ className="... bg-[var(--ag-c-05172905)] min-h-8 flex items-start justify-between gap-2"

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: f87503b4-035d-4078-8ff2-22cf63df42b0

📥 Commits

Reviewing files that changed from the base of the PR and between cd13ca3 and 44f8e99.

📒 Files selected for processing (181)
  • web/oss/src/components/AgentChatSlice/components/AgentChatEmptyState.tsx
  • web/oss/src/components/AgentChatSlice/components/AgentMessage.tsx
  • web/oss/src/components/AgentChatSlice/components/AgentTurn.tsx
  • web/oss/src/components/AgentChatSlice/components/ApprovalDock.tsx
  • web/oss/src/components/AgentChatSlice/components/AudioPlayer.tsx
  • web/oss/src/components/AgentChatSlice/components/ComposerAttachments.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/EventRow.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/Inspector.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/InspectorDrawer.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/LensBody.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/lenses/ContextLens.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/lenses/ResponseLens.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/lenses/RuntimeLens.tsx
  • web/oss/src/components/AgentChatSlice/components/Inspector/lenses/TimelineLens.tsx
  • web/oss/src/components/AgentChatSlice/components/QueuedMessages.tsx
  • web/oss/src/components/AgentChatSlice/components/SessionHistoryMenu.tsx
  • web/oss/src/components/AgentChatSlice/components/SessionRail.tsx
  • web/oss/src/components/AgentChatSlice/components/ToolActivity.tsx
  • web/oss/src/components/AgentChatSlice/components/VoiceInputButton.tsx
  • web/oss/src/components/AgentChatSlice/components/approvals/ApprovedContentManifest.tsx
  • web/oss/src/components/AgentChatSlice/components/approvals/CommitRevisionApproval.tsx
  • web/oss/src/components/AgentChatSlice/components/approvals/RevisionOperations.tsx
  • web/oss/src/components/AgentChatSlice/components/clientTools/ElicitationWidget.tsx
  • web/oss/src/components/CustomUIs/CustomAntdBadge.tsx
  • web/oss/src/components/DrillInView/DrillInFieldHeader.tsx
  • web/oss/src/components/DrillInView/EntityDualViewEditor.tsx
  • web/oss/src/components/DrillInView/PrettyJsonView.tsx
  • web/oss/src/components/DrillInView/TraceSpanDrillInView.tsx
  • web/oss/src/components/Drives/ContextRail.tsx
  • web/oss/src/components/Drives/DriveBreadcrumb.tsx
  • web/oss/src/components/Drives/DriveExplorerStates.tsx
  • web/oss/src/components/Drives/DriveFileCard.tsx
  • web/oss/src/components/Drives/DriveFileRow.tsx
  • web/oss/src/components/Drives/DriveHeader.tsx
  • web/oss/src/components/Drives/DrivePendingTiles.tsx
  • web/oss/src/components/Drives/DriveTreeList.tsx
  • web/oss/src/components/Drives/DriveTreeRow.tsx
  • web/oss/src/components/Drives/FolderTile.tsx
  • web/oss/src/components/Drives/FolderView.tsx
  • web/oss/src/components/Drives/OriginTag.tsx
  • web/oss/src/components/Drives/StorageSection.tsx
  • web/oss/src/components/Drives/fileMeta.tsx
  • web/oss/src/components/Drives/renderers.tsx
  • web/oss/src/components/Drives/repoMeta.tsx
  • web/oss/src/components/EntityIdentity/fields.tsx
  • web/oss/src/components/EvalRunDetails/components/TableCells/InvocationTraceSummary.tsx
  • web/oss/src/components/EvalRunDetails/components/views/ConfigurationView/components/InvocationSection.tsx
  • web/oss/src/components/EvalRunDetails/components/views/ConfigurationView/components/RunSummaryCard.tsx
  • web/oss/src/components/EvalRunDetails/components/views/ConfigurationView/components/SectionPrimitives.tsx
  • web/oss/src/components/EvalRunDetails/components/views/ConfigurationView/components/TestsetSection.tsx
  • web/oss/src/components/EvalRunDetails/etl/ScenarioFilterBar.tsx
  • web/oss/src/components/EvalRunDetails/utils/renderChatMessages.tsx
  • web/oss/src/components/EvaluationRunsTablePOC/components/headers/MetricColumnHeader.tsx
  • web/oss/src/components/Evaluations/MetricDetailsPopover/assets/ResponsiveFrequencyChart.tsx
  • web/oss/src/components/Evaluations/MetricDetailsPopover/assets/ResponsiveMetricChart.tsx
  • web/oss/src/components/Evaluations/components/MetricDetailsPreviewPopover.tsx
  • web/oss/src/components/Evaluators/components/ConfigureEvaluator/RunOnSelector.tsx
  • web/oss/src/components/Evaluators/components/ConfigureEvaluator/SelectAppEmptyState.tsx
  • web/oss/src/components/NewAgentButton/index.tsx
  • web/oss/src/components/Playground/Components/AgentCommitNotice.tsx
  • web/oss/src/components/Playground/Components/AgentRevisionSelector/index.tsx
  • web/oss/src/components/Playground/Components/AlwaysAllowedNotice.tsx
  • web/oss/src/components/Playground/Components/Modals/RefinePromptModal/assets/InstructionsPanel.tsx
  • web/oss/src/components/Playground/Components/Modals/RefinePromptModal/assets/PreviewPanel.tsx
  • web/oss/src/components/Playground/Components/Modals/RefinePromptModal/assets/RefinePromptModalContent.tsx
  • web/oss/src/components/Playground/Components/PlaygroundVariantConfigPrompt/assets/GatewayToolsPanel.tsx
  • web/oss/src/components/Playground/Components/ProviderKeyNotice.tsx
  • web/oss/src/components/References/ReferenceTag.tsx
  • web/oss/src/components/References/cells/QueryCells.tsx
  • web/oss/src/components/SeedAttachments/index.tsx
  • web/oss/src/components/SessionInspector/tabs/StatesTab.tsx
  • web/oss/src/components/SharedDrawers/TraceDrawer/components/AccordionTreePanel.tsx
  • web/oss/src/components/SharedDrawers/TraceDrawer/components/TraceContent/components/AnnotationTabItem/index.tsx
  • web/oss/src/components/SharedDrawers/TraceDrawer/components/TraceSidePanel/TraceAnnotations/index.tsx
  • web/oss/src/components/SharedDrawers/TraceDrawer/components/TraceTreeSettings/index.tsx
  • web/oss/src/components/Sidebar/components/ProjectOrgSwitcher/index.tsx
  • web/oss/src/components/Sidebar/components/WorkflowIdentity.tsx
  • web/oss/src/components/Sidebar/scopes/bottomSection.tsx
  • web/oss/src/components/TemplateStrip/components/StripCard.tsx
  • web/oss/src/components/TemplateStrip/components/TemplateChip.tsx
  • web/oss/src/components/TemplateStrip/index.tsx
  • web/oss/src/components/UsageSummary/index.tsx
  • web/oss/src/components/Webhooks/RequestPreview.tsx
  • web/oss/src/components/pages/agent-home/PlaygroundOnboarding/OnboardingConfigPanel.tsx
  • web/oss/src/components/pages/agent-home/StripHome.tsx
  • web/oss/src/components/pages/agent-home/components/EmptyAgents.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateDetail/index.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateSetupDrawer/IntegrationRow.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateSetupDrawer/ModelRow.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateSetupDrawer/SetupRow.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateSetupDrawer/ToolsPreview.tsx
  • web/oss/src/components/pages/agent-home/components/TemplateSetupDrawer/index.tsx
  • web/oss/src/components/pages/agent-home/components/TemplatesGallery/TemplateSection.tsx
  • web/oss/src/components/pages/agent-home/components/TemplatesSection/TemplateCard.tsx
  • web/oss/src/components/pages/agent-home/components/TutorialVideoEmbed.tsx
  • web/oss/src/components/pages/agent-home/components/YourAgentsTable/AgentRow.tsx
  • web/oss/src/components/pages/agent-home/components/YourAgentsTable/columns.tsx
  • web/oss/src/components/pages/agent-home/index.tsx
  • web/oss/src/components/pages/evaluations/onlineEvaluation/components/FiltersPreview.tsx
  • web/oss/src/components/pages/evaluations/onlineEvaluation/components/QueryFiltersCell.tsx
  • web/oss/src/components/pages/observability/components/EvaluatorMetricsCell.tsx
  • web/oss/src/components/pages/observability/dashboard/widgetCard.tsx
  • web/oss/src/components/pages/overview/agent/AgentFilesCard.tsx
  • web/oss/src/components/pages/sessions/components/SessionListCard.tsx
  • web/oss/src/styles/theme/controlScale.ts
  • web/oss/src/styles/tokens/antd-themeConfig.json
  • web/oss/tailwind.config.ts
  • web/packages/agenta-annotation-ui/src/components/AddToQueuePopover/index.tsx
  • web/packages/agenta-annotation-ui/src/components/AnnotationSession/ScenarioListSidebar.tsx
  • web/packages/agenta-annotation-ui/src/components/AnnotationSession/ScenarioListView.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/CodeBlockLanguageMenu.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/ConfigItemDrawer.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/FieldsTagsEditorControl.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/InstructionsDrawer.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/MarkdownEditor.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/McpServerFormView.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/PromptSchemaControl.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/SchemaTree.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/SkillFormView.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/ToolFormView.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/ToolSelectorPopover.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/WorkflowReferenceSelector.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/BuildKitSection.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ItemRow.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ParameterNodeEditor.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ParameterTree.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/PermissionPolicySelect.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ProviderCredentialsSectionView.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ProviderKeyField.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/RevertGroupButton.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/SectionTitleBadge.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/useModelHarness.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/sectionGroups.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/triggerManagement/SubscriptionChildRow.tsx
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/triggerManagement/TriggerRow.tsx
  • web/packages/agenta-entity-ui/src/agent/AgentCard.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/AddItemMenu.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/CatalogAppCard.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/CatalogChooser.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/GatewayCatalogDrawer.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/MasterDetailRail.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/RailField.tsx
  • web/packages/agenta-entity-ui/src/drawers/shared/SectionRail.tsx
  • web/packages/agenta-entity-ui/src/gatewayTool/components/SchemaForm.tsx
  • web/packages/agenta-entity-ui/src/gatewayTool/drawers/CatalogDrawer.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/ScheduleBuilderField.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/schedule/MessageComposer.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/schedule/RunInPlaygroundButton.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/schedule/WindowField.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/shared/EventSourcePicker.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/shared/RunVersionField.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/subscription/InputsMappingField.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/subscription/MappingSection.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/subscription/PillEditor.tsx
  • web/packages/agenta-entity-ui/src/gatewayTrigger/drawers/subscription/SourceField.tsx
  • web/packages/agenta-entity-ui/src/modals/commit/components/EntityCommitFooter.tsx
  • web/packages/agenta-entity-ui/src/modals/commit/components/changes/AgentChangesSummary.tsx
  • web/packages/agenta-entity-ui/src/selection/adapters/evaluatorLabelUtils.ts
  • web/packages/agenta-entity-ui/src/selection/adapters/workflowRevisionRelationAdapter.ts
  • web/packages/agenta-entity-ui/src/selection/components/UnifiedEntityPicker/variants/PopoverCascaderVariant.tsx
  • web/packages/agenta-entity-ui/src/testcase/TestcaseDrawer.tsx
  • web/packages/agenta-playground-ui/src/components/ExecutionItems/assets/RepetitionNavigation/index.tsx
  • web/packages/agenta-playground-ui/src/components/ExecutionResultView/index.tsx
  • web/packages/agenta-playground-ui/src/components/PlaygroundInputsBody/VariableCard.tsx
  • web/packages/agenta-playground-ui/src/components/TestsetSelectionModal/components/CreateTestsetCard.tsx
  • web/packages/agenta-playground-ui/src/components/adapters/VariableControlAdapter.tsx
  • web/packages/agenta-playground-ui/src/components/shared/NodeResultCard/index.tsx
  • web/packages/agenta-sessions-ui/src/SessionListStates.tsx
  • web/packages/agenta-ui/src/CellRenderers/EvaluatorMetricBar.tsx
  • web/packages/agenta-ui/src/Editor/MarkdownToolbar.tsx
  • web/packages/agenta-ui/src/Editor/plugins/code/extensions/validationReact.tsx
  • web/packages/agenta-ui/src/Editor/plugins/code/nodes/LongTextNode.tsx
  • web/packages/agenta-ui/src/Editor/plugins/token/TokenTypeaheadPlugin.tsx
  • web/packages/agenta-ui/src/RichChatInput/RichChatInput.tsx
  • web/packages/agenta-ui/src/SelectLLMProvider/SelectLLMProviderBase.tsx
  • web/packages/agenta-ui/src/components/EntityCard.tsx
  • web/packages/agenta-ui/src/components/presentational/layout/PanelSection.tsx
  • web/packages/agenta-ui/src/components/ui/alert.tsx
  • web/packages/agenta-ui/src/components/ui/divider.tsx
  • web/packages/agenta-ui/src/components/ui/progress.tsx
  • web/packages/agenta-ui/src/components/ui/spinner.tsx

Comment thread web/oss/src/components/EntityIdentity/fields.tsx
</TooltipWithCopyAction>
{hasWindowingMeta ? (
<div className="flex flex-wrap gap-2 text-[11px] text-[var(--ag-c-667085)]">
<div className="flex flex-wrap gap-2 text-xs text-[var(--ag-c-667085)]">

@coderabbitai coderabbitai Bot Aug 9, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Replace the legacy color token on this changed line.

text-[var(--ag-c-667085)] violates the rule that forbids --ag-c-* literals. Keep text-xs, but use the matching semantic token, such as text-colorTextTertiary, after confirming color parity.

Proposed fix
-                <div className="flex flex-wrap gap-2 text-xs text-[var(--ag-c-667085)]">
+                <div className="flex flex-wrap gap-2 text-xs text-colorTextTertiary">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div className="flex flex-wrap gap-2 text-xs text-[var(--ag-c-667085)]">
<div className="flex flex-wrap gap-2 text-xs text-colorTextTertiary">

Source: Coding guidelines

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Declining for this PR — scope. This is a pure typography change (text-[10px]/text-[11px] → the text-xs/text-sm ladder). The colour token on this line is pre-existing; the diff here changes only the size class beside it.

The guideline is right and these sites should move to sanctioned tokens, but doing it here would turn a mechanical 181-file type-scale pass into a colour-token migration, and each replacement needs a light+dark parity check that has nothing to do with the type ladder. That is a separate change with its own review, not a rider on this one.

Tracking them rather than dropping them — the full list from this review is going to the team as follow-up.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mmabrouk Acknowledged. The color-token migration is out of scope for this typography-only PR.

The existing text-[var(--ag-c-667085)] token can be handled in the separate follow-up with light and dark parity validation. Would you like me to create a GitHub issue for that follow-up?

🐇


✏️ Learnings added
Learnt from: mmabrouk
Repo: Agenta-AI/agenta PR: 5850
File: web/oss/src/components/References/cells/QueryCells.tsx:81-81
Timestamp: 2026-08-09T21:59:52.584Z
Learning: For frontend typography-only migrations, do not require replacement of pre-existing legacy color tokens on otherwise typography-only changed lines. Track color-token migrations separately because each replacement requires light and dark appearance parity validation.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Comment on lines +538 to +541
<span className="text-xs uppercase tracking-wide text-[var(--ag-c-97A4B0,#97a4b0)]">
Version history
</span>
<span className="rounded-full border border-solid border-[var(--ag-c-EAEFF5,#eaeff5)] px-1.5 text-[10px] text-[var(--ag-c-97A4B0,#97a4b0)]">
<span className="rounded-full border border-solid border-[var(--ag-c-EAEFF5,#eaeff5)] px-1.5 text-[12px] text-[var(--ag-c-97A4B0,#97a4b0)]">

@coderabbitai coderabbitai Bot Aug 9, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Replace forbidden legacy and raw color tokens in both changed class strings.

Both sites retain colors that bypass the approved theme-token system.

  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/useModelHarness.tsx#L538-L541: replace the --ag-c-* variables and hex fallbacks with supported semantic tokens.
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ProviderCredentialsSectionView.tsx#L160-L160: replace text-[#586673] with a supported theme token.
📍 Affects 2 files
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/useModelHarness.tsx#L538-L541 (this comment)
  • web/packages/agenta-entity-ui/src/DrillInView/SchemaControls/agentTemplate/ProviderCredentialsSectionView.tsx#L160-L160

Source: Coding guidelines

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Declining for this PR — scope. This is a pure typography change (text-[10px]/text-[11px] → the text-xs/text-sm ladder). The colour token on this line is pre-existing; the diff here changes only the size class beside it.

The guideline is right and these sites should move to sanctioned tokens, but doing it here would turn a mechanical 181-file type-scale pass into a colour-token migration, and each replacement needs a light+dark parity check that has nothing to do with the type ladder. That is a separate change with its own review, not a rider on this one.

Tracking them rather than dropping them — the full list from this review is going to the team as follow-up.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mmabrouk, understood. The color-token finding is valid but out of scope for this typography-only PR. I will not require it for this change.

Would you like me to create a GitHub follow-up issue for the sanctioned color-token migration, with links to the affected files and this discussion?

(ᵕ—ᴗ—) 🐇

You are interacting with an AI system.

"span",
{
className: "text-[10px] px-1.5 py-0.5 rounded bg-gray-100 text-gray-500",
className: "text-[12px] px-1.5 py-0.5 rounded bg-gray-100 text-gray-500",

@coderabbitai coderabbitai Bot Aug 9, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Make the workflow group tag theme-aware.

bg-gray-100 text-gray-500 are fixed light-theme colors. The changed tag has no dark variant. Use semantic theme utilities or supported theme variables so the tag remains readable in dark mode.

As per coding guidelines, every changed UI element must support light and dark appearance.

Source: Coding guidelines

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Right that this is a real gap, declining for this PR on scope — but flagging it as the one finding here worth its own follow-up.

bg-gray-100 text-gray-500 genuinely has no dark variant, so the tag is a light-theme island. But it is pre-existing: this PR changes only the size on that line.

-  className: "text-[10px] px-1.5 py-0.5 rounded bg-gray-100 text-gray-500",
+  className: "text-[12px] px-1.5 py-0.5 rounded bg-gray-100 text-gray-500",

Fixing it needs a dark-mode parity check on the workflow group tag, which is a different kind of change from a type-scale pass. I am raising it to the team as a standalone follow-up rather than letting it disappear with this thread.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mmabrouk, agreed. The dark-mode gap is pre-existing and is outside this typography-scale change.

Please let me know if you want me to create a GitHub follow-up issue for the workflow group tag dark-mode parity check.

You are interacting with an AI system.

})}
</div>
<span className="text-center text-[11px] text-[var(--ag-c-97A4B0,#97a4b0)]">
<span className="text-center text-xs text-[var(--ag-c-97A4B0,#97a4b0)]">

@coderabbitai coderabbitai Bot Aug 9, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use a supported theme color token.

Line 128 uses the forbidden --ag-c-* variable and a raw hex fallback. Replace them with a Tailwind semantic color or a supported var(--ag-color*) variable.

Proposed fix
-            <span className="text-center text-xs text-[var(--ag-c-97A4B0,`#97a4b0`)]">
+            <span className="text-center text-xs text-[var(--ag-colorTextTertiary)]">

As per coding guidelines, consume theme colors through Ant Design semantic tokens, Tailwind color utilities, or supported var(--ag-color*) variables; do not use raw hex colors or --ag-c-* literals.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<span className="text-center text-xs text-[var(--ag-c-97A4B0,#97a4b0)]">
<span className="text-center text-xs text-[var(--ag-colorTextTertiary)]">

Source: Coding guidelines

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Declining for this PR — scope. This is a pure typography change (text-[10px]/text-[11px] → the text-xs/text-sm ladder). The colour token on this line is pre-existing; the diff here changes only the size class beside it.

The guideline is right and these sites should move to sanctioned tokens, but doing it here would turn a mechanical 181-file type-scale pass into a colour-token migration, and each replacement needs a light+dark parity check that has nothing to do with the type ladder. That is a separate change with its own review, not a rider on this one.

Tracking them rather than dropping them — the full list from this review is going to the team as follow-up.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mmabrouk, acknowledged. This PR only changes the typography class. The pre-existing color token should move in the separate color-token migration.

Would you like me to create a GitHub issue for the follow-up, or is the team already tracking it elsewhere?

(╥﹏╥)🐇

You are interacting with an AI system.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-08-09T22:02:39.161Z

@mmabrouk
mmabrouk merged commit 9d283cd into release/v0.112.0 Aug 9, 2026
73 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend size:L This PR changes 100-499 lines, ignoring generated files. ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant