Implement custom Kapa support handoff chat with polished codeblock UX - #502
Closed
dannyneira wants to merge 18 commits into
Closed
Implement custom Kapa support handoff chat with polished codeblock UX#502dannyneira wants to merge 18 commits into
dannyneira wants to merge 18 commits into
Conversation
Co-Authored-By: Warp Agent <agent@warp.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Contributor
There was a problem hiding this comment.
Overview
This PR restores the custom Kapa chat panel, adds code-block rendering and copy UX, documents MCP OAuth workarounds, and introduces support handoff/highlight API routes.
Concerns
- The code highlighting cleanup path can still emit an unhandled rejection when Shiki highlighting fails.
Security
- The new support handoff endpoint is public and can be scripted to create support tickets without a rate limit or proof that the request came from a real Kapa conversation.
Verdict
Found: 0 critical, 2 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
Co-authored-by: oz-for-oss[bot] <277970191+oz-for-oss[bot]@users.noreply.github.com>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Fail closed when SUPPORT_HANDOFF_SHARED_SECRET is missing so public requests cannot reach the upstream without auth. Co-Authored-By: Warp Agent <agent@warp.dev>
The chat's copy button was a one-off lucide SVG inside EC-lookalike markup, so Expressive Code's stylesheet (which paints the icon via button::after mask on an empty inner div) never styled it, leaving a plain clipboard glyph that didn't match docs code blocks. - ChatCodeBlock now emits EC's exact copy markup (aria-live feedback div + button with data-copied/data-code, newlines encoded as \u007f), so ec.css styles it pixel-identical to docs blocks and ec.js attaches its own click handler (navigator.clipboard with execCommand fallback plus the "Copied!" tooltip) via its MutationObserver. - KapaLauncher.astro renders a hidden <Code> block so EC's hashed assets ship on every page, not just pages with fenced code blocks. - Dropped the now-redundant React copy state/helpers and the Kapa-specific .copy CSS overrides. Co-Authored-By: Warp Agent <agent@warp.dev>
Stop reusing Expressive Code .copy markup, which stacked EC's CSS mask icon with residual SVG. Own one frosted-glass button with a CSS-mask icon and clipboard handler. Co-Authored-By: Warp Agent <agent@warp.dev>
gcp-front-docs-handoff validates WEBHOOK_SECRET via ?secret=, not Authorization bearer. Co-Authored-By: Warp Agent <agent@warp.dev>
Member
Author
|
Closing in favor of #512, which replaces this PR with the final curated Kapa custom chat and support handoff change set on a clean branch. It preserves the intended fixes while removing unrelated and stale work from this PR. |
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
This PR restores a custom Kapa side-chat experience for docs and adds a robust support handoff flow to Front, while preserving Kapa answer quality and improving chat UX.
What’s included
Verification
npm run buildpasses.Notes
Co-Authored-By: Warp Agent agent@warp.dev