Repository navigation
fix(platform): fix export-dialog nested-button hydration and relabel PDF export - #2160
Merged
Merged
Conversation
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
#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 nobutton buttonnesting, 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)