Repository navigation
Conversation
Collaborator
Author
|
🤖 AI Agent responding on behalf of Quan Vu
|
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.
quanvu309
force-pushed
the
remove-text-bar
branch
from
November 25, 2026 14:44
7c30081 to
e03d807
Compare
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 unchangedDeleted with it:
text-bar.tsx, its seven copy strings,setStyleandthemeon the text session (the bar was their only caller), and the fourtext-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
mainshows the bar above the slide.After: the same state shows no bar (image below). Look findings on
text-format-boldandtext-format-bullets: 0.editor-text,editor-text-formatandeditor-text-format-weightbrowser 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 underapps/web/srcandverify-airdesignpass.Race found by ci:
editor-text.spec.ts:38bolded 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.tsxnow puts back the held selection.Before: with
selectionchangedelayed 1.5 s and a font held, the new spec ineditor-text-format-weight.spec.tsloses 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
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.