Skip to content

Website: support chat on every page, and the support email - #106

Open
Skeyelab wants to merge 2 commits into
mainfrom
website-support-chat
Open

Skeyelab wants to merge 2 commits into
mainfrom
website-support-chat

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds support intake to soundcheckplayer.app the way showrecorder.app does it.

  • Chat bubble on every page (components/ChatBubble.tsx, lib/chat.ts), ported from ShowRecorder's website/. Chatwoot, self-hosted at chatwoot.ericdahl.dev, inbox "SoundcheckPlayer Website" (its own website token; public by design). The bubble is our own static button in the site's green (--button-bg). Nothing loads from the chat host until it is pressed: no prefetch, preconnect or preload, so the site stays cookieless until then. Once loaded it hides and Chatwoot's own launcher takes over. If the chat does not load within 15 s, it offers soundcheckplayer@ericdahl.dev instead. It is hidden on /support, which will get its own "Chat with us" button.
  • No PostHog event for the chat: unlike showrecorder.app, this site counts only Get the beta and sign-ups, as its privacy section says, so the bubble has no tracking attributes.
  • CSP (nginx.conf): the chat host added to script-src, img-src, connect-src (https and wss) and a new frame-src, the same as showrecorder.app's.
  • Support email: CONTACT_EMAIL = "soundcheckplayer@ericdahl.dev" in lib/site.ts.
  • Privacy: the home page's privacy section says the chat loads only when pressed, runs on the developer's own Chatwoot, stores an identifier (a cookie and local storage) and keeps what you type.
  • The footer has more bottom padding so its last lines scroll clear of the bubble.

Not in this PR: #102 (/privacy and /support) has not merged yet. Once it does, a follow-up points its SUPPORT_CONTACT_URL at the new mailbox (dropping the TODO), adds "Chat with us" on /support and a chat paragraph on /privacy. This PR and #102 both edit the home page's privacy section, so whichever lands second needs a small rebase there.

Tests first (tests/chat.test.ts): the loader (one script, only on click, fallback, retry), the bubble in the root layout, its styles, no resource hints to the chat host, the exact CSP directives, the privacy wording and the email.

Checked: yarn test:run (52 passed), yarn lint, yarn build. In a local build served from out/, no request reached chatwoot.ericdahl.dev before the click, no cookie or local storage was set, and pressing the bubble injected https://chatwoot.ericdahl.dev/packs/js/sdk.js. The script was intercepted, so the live widget was never loaded and no conversation was created; the email fallback then appeared. The live Chatwoot widget has not been loaded on this site.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWutwEqKiC9aQMQxaR5

Skeyelab and others added 2 commits December 3, 2026 02:22
Ported from showrecorder.app: Chatwoot (self-hosted at chatwoot.ericdahl.dev),
the "SoundcheckPlayer Website" inbox. The bubble is our own button; nothing
from the chat host loads until it is pressed. If the chat does not load, it
offers soundcheckplayer@ericdahl.dev instead. The CSP allows the chat host
the same way showrecorder.app's does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCgWWutwEqKiC9aQMQxaR5
@Skeyelab
Skeyelab enabled auto-merge (squash) December 3, 2026 07:24
@Skeyelab
Skeyelab disabled auto-merge December 3, 2026 07:53
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