Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
- Last reviewed commit: acb153a4c6d469b19be07559ed497cfaa6466dd6
- Latest commit, not reviewed: 44d19554b94ed05c025282cb51a40a54a54ea941
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The change adds HTML table serialization and a “Copy as HTML” menu action. The clipboard hook accepts per-call flavors. Tests cover serializer output and browser clipboard content.
Changes: HTML table copy
Layer / File(s) Summary HTML table serialization
apps/web/src/markdown-clipboard.ts,apps/web/src/markdown-clipboard.test.tsThe serializer emits styled table markup and handles sections, cell content, alignment, spans, and direction. Tests cover output and edge cases. Clipboard and menu integration
apps/web/src/components/chat/markdownActionFailure.ts,apps/web/src/hooks/useCopyToClipboard.ts,apps/web/src/components/chat/MarkdownTable.tsx,apps/web/src/components/chat/MarkdownCopy.browser.test.tsxThe copy hook accepts per-call clipboard flavors. The table menu adds “Copy as HTML” and supplies HTML clipboard data with a UTF-8 meta tag. The browser test checks clipboard content. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 actor User 3 participant MarkdownTable 4 participant serializeTableElementToHtml 5 participant useCopyToClipboard 6 participant writeTextToClipboard 7 participant Clipboard 8 User->>MarkdownTable: Selects Copy as HTML 9 MarkdownTable->>serializeTableElementToHtml: Serialize table 10 serializeTableElementToHtml-->>MarkdownTable: Return HTML markup 11 MarkdownTable->>useCopyToClipboard: Copy plain text with text/html flavor 12 useCopyToClipboard->>writeTextToClipboard: Pass selected clipboard flavors 13 writeTextToClipboard->>Clipboard: Write clipboard item Possibly related PRs
- pingdotgg/t3code#25246: This PR routes table copy through
useCopyToClipboardand adds clipboard fallback support. The current change uses the same hook for HTML copies and per-call clipboard flavors. - pingdotgg/t3code#29233: This PR adds rich-text table copying with
text/htmlandtext/plainflavors throughMarkdownTableanduseCopyToClipboard. The current change implements the same clipboard formats with a new HTML serializer.
Suggested reviewers:
saphid,juliusmarminge,t3dotgg - pingdotgg/t3code#25246: This PR routes table copy through
Merge Risk: External image Low · previous review acb15
-
Some RTL tables may paste with changed direction, and clipboard fallback can paste HTML markup as text. These bounded issues warrant follow-up.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title clearly and concisely identifies the main change: adding HTML copying for chat tables. Description check Passed The description covers the problem, change, scope and approval context, verification results, screenshots, and untested areas. It follows the required template and provides enough detail to assess the… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description covers the problem, change, scope and approval context, verification results, screenshots, and untested areas. It follows the required template and provides enough detail to assess the change.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
External image Recent review info
-
External image Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 2b65ffb
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5345855c-b52f-4ea2-85ee-37f9147dc4f7
External image Commits
-
Reviewing files that changed from the base of the PR and between fb8b094d7f9d50cdeccb5c6f9a5318bc87ebab8a and acb153a4c6d469b19be07559ed497cfaa6466dd6.
External image Files selected for processing: 2
-
apps/web/src/markdown-clipboard.test.tsapps/web/src/markdown-clipboard.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
External image Recent review info
-
External image Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 2b65ffb
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5345855c-b52f-4ea2-85ee-37f9147dc4f7
External image Commits
-
Reviewing files that changed from the base of the PR and between fb8b094d7f9d50cdeccb5c6f9a5318bc87ebab8a and acb153a4c6d469b19be07559ed497cfaa6466dd6.
External image Files selected for processing: 2
-
apps/web/src/markdown-clipboard.test.tsapps/web/src/markdown-clipboard.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-