Skip to content

fix(web): open chat documents in preview and expose code copy icons - #216

Draft
firstintent wants to merge 1 commit into
mainfrom
dev
Draft

firstintent wants to merge 1 commit into
mainfrom
dev

Conversation

@firstintent

Copy link
Copy Markdown
Owner

Chat document links that contain an absolute project path currently navigate to a nonexistent web route, while code-block controls disappear when the parent conversation rerenders. Resolve project Markdown/HTML links through the existing preview API using the current origin and fresh capabilities on activation; preserve source line navigation and external links. Keep Markdown DOM decorations stable across parent updates and show an accessible copy icon on every code block with clipboard fallback and truthful feedback.

Maps to local issue docs-local/issues/#230.

Validation:

  • Regression tests failed on the original implementation (6 failures), then passed after the fixes.
  • cargo fmt --all -- --check and git diff --check passed.
  • make web-check: 869 tests passed.
  • SPA production build passed.
  • DSH plugin npm test: 287 tests passed.
  • Playwright: 6 passed, covering Chromium and WebKit touch at 390px/1360px, standalone previews, per-block copy, keyboard activation, and existing file/line navigation.
  • Independent checker reviewed expiry, daemon restart, project containment, and decorator lifecycle; no remaining blockers.

No version bump or deployment. cswap integration remains a separate proposal in local issue #229.

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