Skip to content

Consolidate EMCN controls and redundant styling options - #7998

Open
BillLeoutsakosvl346 wants to merge 4 commits into
codex/control-fix-icon-button-sizingfrom
codex/emcn-consolidation
Open

BillLeoutsakosvl346 wants to merge 4 commits into
codex/control-fix-icon-button-sizingfrom
codex/emcn-consolidation

Conversation

@BillLeoutsakosvl346

@BillLeoutsakosvl346 BillLeoutsakosvl346 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Consolidates overlapping EMCN controls while preserving product layouts, selection values, form behavior, and marketing treatments.

  • Make ChipSelect the single menu-selection API, supporting rich labels, grouped/searchable options, typed single/multiple selection, trigger refs, and field accessibility. Preserve caller-specific menu width, modal behavior, empty-selection semantics, and selection indicators.
  • Share one Radix segmented-control implementation through ChipButtonGroup and its ChipSwitch adapter. Remove redundant styling dimensions and unused Button, Checkbox, and Badge choices.
  • Exclude inherited generic sizing props from specialized action buttons that own their geometry.
  • Use existing chip controls for ordinary auth/credential fields and deployment descriptions, retain specialized editing surfaces, and reuse shared chip and dropdown styling definitions.

Intentional visual differences: multiple-selection menus use checkbox rows; segmented groups use zero gap; former large badges use medium sizing; table bulk actions use the adaptive dark fill; migrated fields use chip corners and surfaces while retaining required height constraints. Marketing single-selection checkmarks, form heights, and pricing-toggle treatment are retained.

Validation: all 26 workspace type checks and lint checks, import-specifier checks, API validation, 350 EMCN tests, and 91 relevant consumer tests passed. The migration audit found zero retired-API references or parse failures; all 37 dynamic references were reviewed. Representative product and marketing flows received browser review, including table execution and re-execution. Browser coverage is not exhaustive.

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 23, 2026 2:13am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no outstanding previous findings or actionable new regressions remain.

Summary

Consolidates overlapping EMCN selection and segmented-control APIs while migrating consumers away from redundant styling variants and legacy controls.

  • Makes ChipSelect the canonical menu-selection component, including searchable, grouped, and multi-select use cases.
  • Shares one Radix segmented-control implementation between ChipButtonGroup and ChipSwitch.
  • Removes unused Button, Checkbox, and Badge variants and migrates affected consumers.
  • Reuses canonical chip inputs, password fields, geometry tokens, and dropdown styling across product and marketing surfaces.
  • The changes since the previous review correctly replace the remaining EMCN deep import with the public @sim/emcn barrel.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Consumers[Product and marketing consumers] --> Select[ChipSelect]
  Select --> Single[Single selection]
  Select --> Multi[Multiple selection]
  Select --> Search[Grouped and searchable options]
  Compound[ChipButtonGroup compound API] --> Segmented[Shared Radix segmented control]
  Adapter[ChipSwitch options adapter] --> Segmented
  Tokens[Shared chip chrome and geometry tokens] --> Select
  Tokens --> Segmented
Loading

Reviews (6) · Last reviewed commit: "test(emcn): read email geometry from the..."

Comment thread apps/sim/app/f/[token]/public-file-auth.tsx Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 87 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/ee/organization-usage/components/activity-panel.tsx
Comment thread packages/emcn/src/components/chip-select/chip-select.tsx
Comment thread apps/sim/app/f/[token]/public-file-auth.tsx Outdated
Comment thread packages/emcn/src/components/chip/chip-chrome.ts Outdated
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 88 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptileai @cubic-dev-ai Please review the current head; the previous scored reviews cover an earlier commit.

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@greptileai @cubic-dev-ai Please review the current head; the previous scored reviews cover an earlier commit.

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 88 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

Comment thread apps/sim/components/emails/_styles/base.tokens.test.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 86 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346
BillLeoutsakosvl346 changed the base branch from staging to codex/overrides-button-sizing September 22, 2026 19:41
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 88 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 88 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Re-trigger cubic

Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
Base automatically changed from codex/overrides-button-sizing to codex/control-fix-icon-button-sizing September 23, 2026 02:12

This branch was successfully deployed

1 active deployment
Preview 380bf5dd Deployed Sep 23, 2026 by vercel[bot]
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