Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
18e7ccf
Add custom Kapa handoff ticket flow for docs chat
dannyneira Jul 23, 2026
939c966
Fix PR preview build for Kapa handoff API route
dannyneira Jul 23, 2026
6c0eb87
Fix preview build by moving handoff endpoint off /api
dannyneira Jul 23, 2026
5a22dc9
docs: document MCP OAuth workarounds (#422)
dannyneira Jul 30, 2026
4a9c518
Replace custom Kapa chat with website widget
dannyneira Jul 30, 2026
b5ebf2e
Tweak Ask AI widget title and panel behavior
dannyneira Jul 30, 2026
a6048d3
Hide Ask tooltip while Kapa panel is open
dannyneira Jul 30, 2026
c805b22
Move Ask tooltip above the panel
dannyneira Jul 30, 2026
93f73dd
Suppress clipped Kapa attachment tooltip artifact
dannyneira Jul 30, 2026
fd762df
Broaden Kapa tooltip suppression for portal tooltips
dannyneira Jul 30, 2026
05d2674
Revert "Broaden Kapa tooltip suppression for portal tooltips"
dannyneira Jul 30, 2026
cfdf79e
Revert "Suppress clipped Kapa attachment tooltip artifact"
dannyneira Jul 30, 2026
7e955bc
Revert "Move Ask tooltip above the panel"
dannyneira Jul 30, 2026
6a5cef3
Revert "Hide Ask tooltip while Kapa panel is open"
dannyneira Jul 30, 2026
1e12da1
Allow Vercel live feedback script in CSP
dannyneira Jul 30, 2026
97b247d
Stabilize Kapa preview CORS and CSP allowances
dannyneira Jul 30, 2026
05572a2
Adjust Kapa answer bubble padding
dannyneira Jul 30, 2026
c8c6a12
Add focus dim effect behind Kapa sidebar
dannyneira Jul 30, 2026
60edc9a
Remove Kapa sidebar focus blur overlay
dannyneira Jul 30, 2026
98b7933
Add spacing between Kapa question and answer bubbles
dannyneira Jul 30, 2026
8a85cc6
Tune Kapa handoff trigger conditions
dannyneira Jul 30, 2026
57e560b
Disable Kapa feedback survey prompts
dannyneira Jul 31, 2026
875f234
Restore custom Kapa chat with trigger-based support handoff
dannyneira Aug 3, 2026
a0f688c
Allow hCaptcha in CSP for custom Kapa chat previews
dannyneira Aug 5, 2026
76ba532
Add docs support-handoff API flow for custom Kapa chat
dannyneira Aug 6, 2026
0aa8fb8
Refine custom Kapa handoff form visibility and validation UX
dannyneira Aug 6, 2026
91d4d74
Fix first-response handoff thread context resolution
dannyneira Aug 6, 2026
0ff8286
Support Enter submit and optional Kapa project ID in handoff
dannyneira Aug 6, 2026
2488457
Add fallback docs handoff endpoint for preview testing
dannyneira Aug 6, 2026
2b751e0
Improve handoff status visibility and hide Front link\n\nCo-Authored-…
dannyneira Aug 6, 2026
a077468
Fix handoff auth header and auto-scroll inline ticket form\n\nCo-Auth…
dannyneira Aug 6, 2026
42e174c
Auto-scroll chat while Kapa responses stream\n\nCo-Authored-By: Warp …
dannyneira Aug 7, 2026
886ff84
Render chat code blocks with scoped scroll and copy button
dannyneira Aug 7, 2026
09ce625
Use icon copy control for chat code blocks
dannyneira Aug 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
# Values below are PUBLIC (they're shipped to the browser by Astro's
# `envField`, and live behind rate limiting / allow-lists on the vendor side).

# Kapa Custom Frontend integration ID for the "Ask AI" button in the header.
# If unset, the Ask AI button is hidden and the site still runs normally.
# Get yours at: https://app.kapa.ai/admin
# Kapa Website Widget integration ID for the "Ask AI" button in the sidebar.
# If unset, docs falls back to the shared widget integration ID used in preview/prod.
# Get yours at: https://app.kapa.ai/admin (Integrations → Widget → Copy integration ID).
# The same value is passed to the widget as `data-website-id`.
# PUBLIC_KAPA_INTEGRATION_ID=f31c5644-dd65-4f49-9762-bf580062afa8
PUBLIC_KAPA_INTEGRATION_ID=

# Optional Kapa project ID used to build internal conversation links in
# "Create ticket" email drafts:
# https://app.kapa.ai/<PROJECT_ID>/conversations/<THREAD_ID>
# You can find this in the Kapa dashboard URL while viewing the project.
PUBLIC_KAPA_PROJECT_ID=

# RudderStack analytics — required for docs_404 event tracking and page analytics.
# Without these, no analytics events are sent and the weekly 404 monitor will
# report zero data. Set both in the Vercel project environment (all environments).
Expand All @@ -21,3 +29,12 @@ PUBLIC_KAPA_INTEGRATION_ID=
# directive in vercel.json (a mismatch silently blocks all events in the browser).
PUBLIC_RUDDERSTACK_WRITE_KEY=
PUBLIC_RUDDERSTACK_DATA_PLANE_URL=

# Server-side handoff forwarding endpoint used by /api/support-handoff.
# This should point at the DevX service endpoint that creates Front
# conversations from docs chat handoff requests.
SUPPORT_HANDOFF_ENDPOINT_URL=

# Optional shared secret sent as an authorization bearer token when
# forwarding to SUPPORT_HANDOFF_ENDPOINT_URL.
SUPPORT_HANDOFF_SHARED_SECRET=
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export default defineConfig({
access: 'public',
optional: true,
}),
PUBLIC_KAPA_PROJECT_ID: envField.string({
context: 'client',
access: 'public',
optional: true,
}),
PUBLIC_RUDDERSTACK_WRITE_KEY: envField.string({
context: 'client',
access: 'public',
Expand All @@ -43,6 +48,16 @@ export default defineConfig({
access: 'public',
optional: true,
}),
SUPPORT_HANDOFF_ENDPOINT_URL: envField.string({
context: 'server',
access: 'secret',
optional: true,
}),
SUPPORT_HANDOFF_SHARED_SECRET: envField.string({
context: 'server',
access: 'secret',
optional: true,
}),
},
},
integrations: [
Expand Down
Loading