Skip to content

feat(chat): copy inner Markdown from blockquotes - #2

Merged
nicolasmendonca merged 1 commit into
mainfrom
feat/chat-quote-copy
Nov 24, 2026
Merged

nicolasmendonca merged 1 commit into
mainfrom
feat/chat-quote-copy

Conversation

@nicolasmendonca

Copy link
Copy Markdown
Owner

Summary

  • Add an icon-only ghost Copy action to source-backed Markdown blockquotes.
  • Copy the authored inner Markdown, removing exactly one enclosing quote layer while retaining nested quotes, blank lines, links, indentation, and fenced-code literals.
  • Preserve source-less render paths, whole-message Markdown copy, and plain/rich selection copy without toolbar or feedback leakage.
  • Use theme primary color on hover/keyboard focus and accent during a press; keep the control transparent, borderless, keyboard accessible, and touch sized.
  • Guard success/error feedback against stale requests, changed sources, and unmounts, and account for the added elements in preview limits.

Design

The interaction follows the compact icon-and-success-feedback pattern used by T3 Code's Markdown code-block copy action, adapted for quote-local authored Markdown. No third-party implementation code was copied. The icon-only ghost styling and primary/pressed-accent states follow the fork owner's requested design. Dark/light desktop and mobile previews were shared for review.

Base and scope

  • Destination: nicolasmendonca/ovis:main (not upstream).
  • Based on 56fb6175d0351cc888a1784463d19be1c1bfa637, after rebasing the fork's existing Markdown colors onto upstream fd21a7eb21cc867df950c7fe3d7fde5f55fbb0c7.
  • Only implementation, regression tests, and a changelog fragment are included. No preview scripts, sample documents, screenshots, dependencies, or workflow changes are added by this PR.

Verification

  • 190 targeted tests across 10 files passed, including parser fidelity, component async/error behavior, clipboard serialization, nested/source-less preview budgets, conventions, and i18n.

  • Real Chromium app checks passed in dark/light desktop and touch-sized mobile contexts: actual clipboard contents, nested/fenced/empty quotes, keyboard activation, denied-copy feedback, unchanged message copy, and plain/rich selection with idle/success/error feedback.

  • Computed ghost styles verified: no visible button text, transparent background and zero border widths, primary hover/focus-visible, and accent active state. Touch-only hover is intentionally unavailable; pressed CSS was checked through browser pseudo-state emulation.

  • Independent final diff review passed with no security or logic findings.

  • Whitespace and static added-line security checks passed.

  • Fresh build, typecheck, generated-type/theme freshness checks, and workflow syntax checks passed.

  • Full bun run check fast is not green: completed on both unchanged fork main and this final candidate. Comparison by file and test name found 890 shared failing test identities, zero new failures, and zero new failing files. Both runs retained unchanged source fingerprints throughout execution. These results establish that the observed failures also occur on the base; they do not establish a root cause for every failure or replace upstream CI/platform validation.

@nicolasmendonca
nicolasmendonca merged commit e22acac into main Nov 24, 2026
7 of 9 checks passed
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.

1 participant