Skip to content

improvement(ui): unbold the app, align the folder chevron, tidy the feedback modal - #6400

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/font-weight-regression
Aug 8, 2026
Merged

improvement(ui): unbold the app, align the folder chevron, tidy the feedback modal#6400
waleedlatif1 merged 1 commit into
stagingfrom
fix/font-weight-regression

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes the widespread unintended bolding. improvement(platform): drop lucide-react for the in-house icon set, flatten the type and border scales, and retire scheduled tasks and workflow references #6241 deleted the --font-weight-* scale from globals.css and its fontWeight mapping from tailwind.config.ts, so font-medium jumped 440/480 → 500, font-semibold 500/550 → 600, and body dropped 420 → 400. Nothing was restyled — the utility's meaning changed under ~300 call sites at once. improvement(emcn): let every primitive inherit the document font weight #6291 fixed packages/emcn only; every product call site was left behind
  • Strips the weight class from body, label, row, and heading text across app/workspace, ee, workflow-renderer, the unsubscribe/invite/f/[token]/oauth-error/_shell/playground/(interfaces) route groups, and components/ui/button.tsx — whose buttonVariants injected font-medium into every consumer, the single widest source
  • Keeps weight only where it steps up per .claude/rules/sim-styling.md: markdown/prose bold (<strong>, prose-strong:, [&_strong]:, markdown headings and <th>) and micro avatar initials / tile glyphs at text-[7px]/[8px]/micro
  • Aligns the workflow-tree folder chevron to the sidebar section header — size-[16px]/duration-100size-[14px]/duration-150. The files-tree chevron was already on spec, so both trees now agree
  • Feedback modal: drops the "What did you like?" / "What could be improved?" line above the Feedback field on both variants, and re-homes Copy ID from an icon button to a footer secondaryActions chip. That also removes a hand-rolled field row from ChipModalBody, which CLAUDE.md prohibits — it sat at px-2 instead of the field's effective px-4, misaligned with the header and footer gutters

Type of Change

  • Bug fix

Testing

Tested manually.

Verification beyond that:

  • bunx turbo run type-check — 23/23 pass; biome check clean across apps + packages (11 pre-existing warnings, all in untouched files)
  • No state affordance lost: git grep for a weight class inside a conditional on the base commit returns zero — there was no isActive && 'font-medium' anywhere — so unconditional stripping cannot have erased a selected/hover distinction
  • No test or snapshot asserts on a weight class
  • Paired elements verified stripped in matched pairs (the invisible width-measuring span in settings general.tsx, the transparent-input + overlay in the MCP form modal), since those drift visibly if only one half changes

Not covered, deliberately: app/(landing)/**, apps/docs, lib/content/mdx.tsx and faq.tsx carry the same regression — separate design surface, separate PR.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…eedback modal

#6241 deleted the --font-weight-* scale from globals.css and its fontWeight
mapping from tailwind.config.ts. font-medium jumped 440/480 -> 500,
font-semibold 500/550 -> 600, and body dropped 420 -> 400, so every existing
call site snapped a full step above a body that got lighter. #6291 fixed
packages/emcn only; the product call sites were left behind.

Strips the weight class from body, label, row, and heading text across
app/workspace, ee, workflow-renderer, the non-workspace route groups, and
components/ui/button.tsx, whose buttonVariants injected font-medium into every
consumer. Keeps it only where it steps up: markdown/prose bold and micro
avatar initials.

Also aligns the workflow-tree folder chevron to the sidebar section header
(14px, 150ms), and on the feedback modal drops the prompt line above the
Feedback field and re-homes Copy ID as a footer secondary action.
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 8, 2026 3:08am

Request Review

@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Visual-only className changes with no logic, auth, or data-path edits; risk is limited to typography and modal chrome consistency.

Overview
Reverses unintended bolding across the product app by stripping font-medium, font-semibold, and related weight utilities from headings, labels, table headers, deploy modals, logs/trace UI, chat surfaces, auth/public routes, and shared tokens like AUTH_TEXT_LINK. The change restores normal weight after the global --font-weight-* scale removal made those utilities heavier everywhere they were still used outside emcn.

Feedback modal (message-actions): removes the extra “What did you like?” / “What could be improved?” line above the field and moves Copy ID from a header icon button to ChipModalFooter secondaryActions, aligning with chip modal layout rules.

Comment-only tweak in resource-header reflects that buttonVariants no longer injects font-medium into breadcrumb chips.

Reviewed by Cursor Bugbot for commit 1ead892. Configure here.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile-apps

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1ead892. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR restores the intended normal font weight across product UI after the typography scale changed, aligns the workflow-folder chevron with the existing sidebar convention, and reorganizes the feedback modal around canonical ChipModal fields and footer actions.

  • Removes unintended weight utilities from shared primitives and product call sites while preserving explicit markdown emphasis and micro-glyph weights.
  • Moves the feedback request-ID copy action into the modal footer and removes the misaligned hand-built body row.
  • Standardizes the workflow-tree folder chevron at 14px with a 150ms transition.

Confidence Score: 5/5

The PR appears safe to merge, with the reviewed changes consistently limited to intended presentation and modal-action placement.

Shared typography now follows the documented normal-weight contract, the feedback copy action preserves its behavior and state lifecycle in the footer, and the chevron adjustment does not alter interaction logic.

Important Files Changed

Filename Overview
apps/sim/components/ui/button.tsx Removes the shared medium-weight default so button text inherits the repository’s canonical normal typography.
apps/sim/app/workspace/[workspaceId]/components/message-actions/message-actions.tsx Replaces the feedback modal’s custom prompt/copy row with a canonical field and footer secondary action without changing copy or dismissal behavior.
apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx Aligns the folder disclosure chevron’s size and transition duration with the established sidebar convention.
packages/workflow-renderer/src/note/note-block-view.tsx Removes unintended weight utilities from workflow-renderer note chrome while retaining explicit semantic emphasis.

Reviews (1): Last reviewed commit: "improvement(ui): unbold the app, align t..." | Re-trigger Greptile

@waleedlatif1
waleedlatif1 merged commit 08af7db into staging Aug 8, 2026
30 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/font-weight-regression branch August 8, 2026 03:12
waleedlatif1 added a commit that referenced this pull request Aug 8, 2026
Six conflicts, all one cause: staging's unbolding sweep (#6400) landed on code
this branch had moved out of the route tree.

Resolved by keeping this branch's structure and replaying every one of staging's
21 `font-medium` removals at the element's new home — 16 applied, the rest
already absorbed by the auto-merge. Verified none of the strings staging
unbolded is still bold anywhere in the tree.

One deliberate deviation: staging rewrote the file-preview fallback as
`text-[14px]`, which the styling rule forbids (font-size only, inherits the
wrong line-height). Took staging's intent — dropping `font-medium` — and kept
the named `text-sm`, which is the same 14px.

`base.tsx` and `file-viewer.tsx` came back as delete/modify conflicts because
they no longer exist here; their changes were ported into `document-list.tsx`
and the file-view unit rather than dropped.

Suite: 20951 passed. R6/R3c 0, 23 audits green.
waleedlatif1 added a commit that referenced this pull request Aug 8, 2026
…e menus like the sidebar (#6447)

* improvement(ui): consolidate the disclosure chevron and order resource menus like the sidebar

#6400 aligned the workflow-tree folder chevron to the sidebar section header
(16px/100ms -> 14px/150ms) but left the literal hand-copied in three files, so the
next edit could drift them apart again. Extracts `disclosureChevronClass` into
chip-chrome as the single source and points the section header and both sidebar
trees at it. Adds `chipIconSlotClass` for the 16px slot that ChipChevronDown,
ChipSelect, ChipDropdown and ChipDatePicker each re-derived.

Both Back buttons rendered a ChevronDown rotated 90deg at 10px — wrong glyph, and
4px under every other chevron in the app; they are now ChevronLeft at 14px in that
shared slot. The sidebar file tree drew hand-inlined SVGs at strokeWidth 2 next to
the workflow tree's emcn icons at 1.55, so the two trees showed different folder
glyphs; both now use the emcn set. Its file rows also indented by the chevron's
width alone, landing their icon 4px left of a folder's and 2px smaller despite the
comment claiming they lined up — they now clear the chevron plus the row gap at
the same 16px size.

Separately, the chat `+`/`@` resource menus rendered every foldered family as a
submenu and only then the flat ones, which pinned Workflows to the top regardless
of any ordering. Adds `RESOURCE_MENU_ORDER` mirroring the sidebar top-down and
merges both kinds into one ordered pass, so the menus read Integrations, Chats,
Tables, Files, Knowledge Bases, Logs, Workflows, then Browser and Terminal on
desktop. Documents the general rule in .claude/rules/sim-list-ordering.md.

* improvement(ui): order the remaining resource menus the way the user reads them

An audit of every menu, tab strip, and context menu against the surface the user
already reads those items on turned up six more divergences.

The table row context menu put View execution before the Run/Re-run/Stop cluster
while the action bar puts it after, so the same four actions read in two orders;
the menu now follows the bar. The Files, Tables, and Knowledge empty-space create
menus were each the exact reverse of their own page header, and each named the
same action differently ("Create table" vs "New table", "Add knowledge base" vs
"New base") — reversed to match, labels unified.

Recently Deleted led with Workflows and buried Chats last, and put Knowledge Bases
ahead of Files; it now follows the sidebar after the default All tab. The command
palette hoisted Workflows from last to second for the same reason, and is now in
sidebar order too. Chats stays first in both, so the palette's Enter default is
unchanged.

Drops the unused RESOURCE_TYPES export: nothing consumed it, and its declaration
order was nearly the inverse of RESOURCE_MENU_ORDER, so the first consumer to map
it would have silently rendered a backwards menu.

Not included: buildUnifiedSettingsNavigation never applies its own unified.order
and returns registry declaration order instead. Nothing user-visible today (the
sidebar re-sorts before rendering) but navigation.test.ts pins the unsorted order
as canonical, so fixing it means changing that test — worth doing deliberately
rather than inside this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant