Skip to content

improvement(editor): refine previews and compact formatting controls - #8860

Merged
waleedlatif1 merged 4 commits into
stagingfrom
codex/refine-previews-and-formatting
Oct 9, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
codex/refine-previews-and-formatting

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Shorten the text selection toolbar with Style and More menus while preserving existing formatting commands and shortcuts. Add Text and Heading 3 to match the insert menu.
  • Align source previews, text and table toolbars, and editor link cards with shared EMCN menu surfaces and controls.
  • Centralize neutral chip keyboard-focus styling in EMCN for buttons, links, and picker triggers; preserve selected surfaces in both segmented controls.
  • Keep typing in the editor after choosing a format, preserve Escape focus restoration, and retain read-only and table formatting restrictions.

Type of Change

  • Improvement

Testing

  • Full root test suite, including script tests and all workspace suites (36,890 app tests passing); adjacent editor tests (8 passing) and the existing chip-select test. Existing timing-sensitive billing and CLI-router tests needed unchanged reruns.
  • Root lint, all 26 workspace type checks, 58 audits, block registry, docs manifest, and actionlint 1.7.12.
  • Regenerated agent stream docs, docs manifest, and skill links with no generated changes.
  • Browser checks using the real components and editor extensions: dark/light previews, narrow layout and touch targets, pointer and keyboard menu navigation, selection preservation, Markdown round trips, Text conversion preserving inline marks, table restrictions, and closing menus when editing becomes read-only. Saved local screenshots.
  • Checked shared Chip focus in both themes: neutral buttons, links, and filled triggers use the focus surface; selected, primary, and destructive variants retain their colors. Verified selected ChipSwitch and ChipButtonGroup surfaces before/after the fix, arrow navigation, disabled-option skipping, and default/compact geometry.
  • No tests added or modified; validation uses existing suites and browser interaction checks.

Checklist

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

@vercel

vercel Bot commented Oct 9, 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 Oct 9, 2026 8:20pm UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

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

All reported issues were addressed across 5 files

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

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new blocking issue remains.

Summary

The PR compacts editor formatting into Style and More menus, aligns previews with shared controls, and centralizes neutral chip focus colors.

  • The editor’s selection toolbar keeps formatting in two compact menus.
  • Source previews fit into a narrower, tidier card.
  • Floating editor menus use the shared EMCN surface.
  • Neutral chips show a surface when focused by keyboard.

Reviews (4) · Last reviewed commit: "fix(emcn): preserve selected segment foc..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 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 5 files

Confidence score: 5/5

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

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 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 6 files

Confidence score: 5/5

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

Turn on auto-fix | Re-trigger cubic

Comment thread packages/emcn/src/components/chip/chip.tsx
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 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 7 files

Confidence score: 5/5

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

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 903c16d into staging Oct 9, 2026
50 of 51 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/refine-previews-and-formatting branch October 9, 2026 22:20

This branch was successfully deployed

1 active deployment
Preview — f7adb15a Deployed Oct 9, 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