Skip to content

Remove the floating text bar from the canvas - #1692

Open
quanvu309 wants to merge 3 commits into
mainfrom
remove-text-bar
Open

quanvu309 wants to merge 3 commits into
mainfrom
remove-text-bar

Conversation

@quanvu309

@quanvu309 quanvu309 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Goal: one place to format text. The floating bar above the slide repeated controls the Design panel already has, so it is gone.

 editing a text layer
-  floating "Text formatting" bar: style menu, Bold, Italic, Underline, bullets, numbers
   keys: Ctrl/Cmd+B, I, U, Shift+X, Shift+8, Shift+7, Alt+L/T/R/J      unchanged
   Design panel, Text section: style, weight, marks, list             unchanged

Deleted with it: text-bar.tsx, its seven copy strings, setStyle and theme on the text session (the bar was their only caller), and the four text-toolbar* look states.

Surfaces: canvas only (the bar, and text selection during a repaint). Design panel, filmstrip, undo, offline replay, the agent tools and Aira are untouched.

A person loses one thing: a mouse control that formats only the selected words. The keys still do that. The panel formats the whole layer.

Evidence

  • Before: editing a title on main shows the bar above the slide.
    After: the same state shows no bar (image below). Look findings on text-format-bold and text-format-bullets: 0.

  • editor-text, editor-text-format and editor-text-format-weight browser specs: 28 passed. The specs that clicked the bar's Bold and Italic now press the keys and read the painted weight. Two specs that tested only the bar's buttons are deleted.

  • Typecheck, check:boundaries, and 1,390 unit tests under apps/web/src and verify-airdesign pass.

  • Race found by ci: editor-text.spec.ts:38 bolded 2 letters of 5 on one run. A repaint with an unchanged draft wrote the session's older copy of the selection over the one the editor held. text-host.tsx now puts back the held selection.
    Before: with selectionchange delayed 1.5 s and a font held, the new spec in editor-text-format-weight.spec.ts loses the selection every time.
    After: the same spec passes 5 of 5. The bar's removal did not cause this; the key sequence is the same on main.

Before / after

Annotated before and after: Editing a title

main this PR
main: Editing a title this PR: Editing a title

Merge Danger

Door: two-way

Only UI code and tests are removed. Nothing stored changes.

Blast Radius: editor

People who formatted selected words with the mouse now use the keys.

@github-actions github-actions Bot added editor Touches the editor: canvas, slides, export and their screens verify Touches the verify-airdesign skills or journeys labels Nov 25, 2026
@quanvu309

Copy link
Copy Markdown
Collaborator Author

🤖 AI Agent responding on behalf of Quan Vu

ci failed on 7c30081 in two tests this PR does not edit: tests/linked-instance-replay.test.ts (60 s timeout) and tests/browser/editor-line-ends.spec.ts:216. Both passed on the previous head b9a2247, which has the same app code, and both pass locally (the browser test 5 of 5). Rebasing onto main for one fresh run.

The Design panel already sets a text layer's style, weight, marks and
list, and the keys format the selected words. The bar above the slide
was a second control for the same things.
A repaint with an unchanged draft, as when a font arrives, wrote the
session's copy of the selection over the one the editor held. Under
load that copy trails, so Ctrl+B bolded two letters of five.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Touches the editor: canvas, slides, export and their screens verify Touches the verify-airdesign skills or journeys

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant