feat: add PostHog analytics, CI workflow, and deployment docs#7
Merged
diogohudson merged 4 commits intomainfrom Mar 10, 2026
Merged
feat: add PostHog analytics, CI workflow, and deployment docs#7diogohudson merged 4 commits intomainfrom
diogohudson merged 4 commits intomainfrom
Conversation
- Add posthog-js to UI with PostHogProvider and custom event tracking (secret_created, secret_viewed, secret_link_copied, etc.) - Add posthog-python to API with server-side event tracking (secret_created, secret_retrieved) with graceful disable when key not set - Add GitHub Actions CI workflow running API + UI tests on PRs to main with 99% coverage threshold enforcement - Update README with Cloud vs On-Premise deployment section - Add VITE_API_URL and VITE_POSTHOG_KEY build args to UI Dockerfile - Add 4 new PostHog-related backend tests (32 total) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use `new Uint8Array(raw)` instead of `raw.buffer` to avoid SharedArrayBuffer issues in Node.js/jsdom environments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
posthog-js) and API (posthog-python) — tracks secret creation, retrieval, copy, and error eventsmainChanges
posthog-jswithPostHogProvider, custom events in CreateSecret + ViewSecretposthog-pythonwith server-side events, graceful disable when key not set.github/workflows/ci.yaml— parallel API + UI test jobs with Redis serviceVITE_POSTHOG_KEYbuild arg in UI DockerfileEnv vars needed on Render
VITE_POSTHOG_KEYPOSTHOG_API_KEYTest plan
🤖 Generated with Claude Code