Skip to content

fix(platform): fix export-dialog nested-button hydration and relabel PDF export - #2160

Merged
Israeltheminer merged 4 commits into
mainfrom
fix/export-dialog-hydration
Jun 26, 2026
Merged

Israeltheminer merged 4 commits into
mainfrom
fix/export-dialog-hydration

Conversation

@Israeltheminer

Copy link
Copy Markdown
Contributor

Summary

#1973 — nested <button> hydration error. Each message row in the export dialog was a <button> wrapping a Radix <Checkbox> (itself a <button>) — invalid HTML that logged <button> cannot be a descendant of <button> and broke per-row toggling. The row is now a <label htmlFor> driving the checkbox: no nesting, whole row clickable, keyboard-operable.

#2086 [32] — PDF label. The "Download PDF" button actually opens the browser print dialog (iframe.contentWindow.print()), no download. Relabeled to "Print to PDF" (en/de/fr).

Tests

export-chat-dialog.test.tsx: asserts no button button nesting, the vitest-axe a11y check passes, and the button reads "Print to PDF".

Coordination

Touches export-chat-dialog.tsx, which open PR #2140 also edits (the "Deselect all" selection logic). The regions are disjoint (selection state vs. row markup), so whichever merges second needs only a trivial rebase.

Closes #1973
Addresses #2086 (item [32]; [25] handled separately)

@Israeltheminer
Israeltheminer merged commit b948ee2 into main Jun 26, 2026
31 checks passed
@Israeltheminer
Israeltheminer deleted the fix/export-dialog-hydration branch June 26, 2026 13:32
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.

Bug: Export-chat dialog renders an invalid nested <button> (hydration error) and message selection is non-functional

1 participant