Skip to content

fix(studio): give the prompt preview editor an accessible name - #6450

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/prompt-preview-accessible-name
Oct 26, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
fix/prompt-preview-accessible-name

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The prompt editor in the catalog's "Ask agent" modal gets aria-label="Prompt", so screen readers announce it by name instead of reading the whole prompt text.

Why

Fixes #4384. Re-lands #4398 by @lorenzozanee, closed after it went idle with one stale test string; the dialog label is now Ask agent: <title>, and the test expects that.

Before

Before: textbox has no name

After

After: textbox named Prompt

Test plan

  • PromptPreviewModal.test.tsx (from the original PR, label string updated): 1/1, 3 runs. With main's PromptPreviewModal.tsx restored, it fails.
  • oxfmt, oxlint and the comment ratchet: clean.

Why under 100 lines

It re-lands one outside contributor's fix with their co-author credit and its own captures; bundling it with other re-lands would reset an approved review for no gain.

Co-authored-by: lorenzozanee <wyz0707@proton.me>
@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 133 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

Unstable (2)

  • seqplainkeys-none-center-r0-root-z100: tracking 0.06, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo false, teleport true / tracking 0.06, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true / tracking 0.06, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true
  • seqplainkeys-none-px-r0-nested-z100: tracking 0.07, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo false, teleport true / tracking 0.07, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true / tracking 0.07, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true

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

Verdict: APPROVE · 0 blocker · 0 important · 0 nits · fa50e82a

Scope

Read both files. The textarea had no <label> and no aria-labelledby, so aria-label="Prompt" is the only name it gets, and the dialog's Ask agent: <title> label is unchanged. The newest CI and PR captures runs on this head passed. The earlier PR captures failures came before the body edits.

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 25e5ab7 Oct 26, 2026
198 of 200 checks passed
@miguel-heygen
miguel-heygen deleted the fix/prompt-preview-accessible-name branch October 26, 2026 18:54
SanHsien added a commit to SanHsien/hyperframes that referenced this pull request Oct 26, 2026
Brings in 10 upstream commits (ad4d3fa..15367a9): heygen-com#6425, heygen-com#6427, heygen-com#6429,
heygen-com#6431, heygen-com#6436, heygen-com#6432, heygen-com#6453, heygen-com#6457, heygen-com#6450, heygen-com#6451.

One conflict, packages/core/src/compiler/compositionScoping.ts (heygen-com#6436). This
fork passes authored composition code to Function() as a JSON string literal,
so upstream's markers around the raw source would sit outside the text its
page-side scan reads and the fix would silently not apply: the wrapper's own
__timelines use would make every composition look able to register a timeline.
The markers go inside the literal instead, begin marker on the first source
line so error line numbers do not shift. The pageBuild goldens change only by
those two marker comments. A new engine test runs upstream's scan on this
fork's real wrapper output and fails without the markers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

Studio catalog prompt editor has no accessible name

1 participant