Repository navigation
[CI] (3f39e0e) javascript-web/saas-dashboard - #4162
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a vanilla JavaScript/Vite SaaS dashboard app ("TrackFlow"). It adds
Confidence score: 5/5 🧙
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.434.11 added to package.json dependencies |
| PostHog client initialized | Yes | posthog.init() called with env vars, defaults: '2026-05-30', and exception capture config |
| capture() | Yes | 10 meaningful capture calls across login, logout, project CRUD, task management, settings |
| identify() | Yes | posthog.identify(user.id, { email, name, role }) on login and on app load (page refresh); posthog.reset() on logout and account switch |
| Error tracking | Yes | capture_exceptions configured with capture_unhandled_errors: true and capture_unhandled_rejections: true |
| Reverse proxy | No | No reverse proxy configured; posthog-js events may be blocked by ad blockers |
Issues
- No reverse proxy: For a client-only app using posthog-js, a reverse proxy is recommended to avoid ad-blocker interception. No Vite proxy rewrite or external proxy configuration was added. [MEDIUM]
posthog.logger.info()is wrong API: TheposthogLog.info()helper callsposthog.logger.info(), which is the SDK's internal debug logger — not the PostHog Logs product API. The correct method isposthog.captureLog({ body: message, level: 'info', attributes }). These log calls will not produce entries in PostHog's Logs tab. [MEDIUM]
Other completed criteria
- API key loaded from
VITE_POSTHOG_KEYenvironment variable (not hardcoded) - API host loaded from
VITE_POSTHOG_HOSTenvironment variable and passed asapi_host - Graceful degradation when env vars are missing (guard with
isPosthogConfigured) posthog.reset()called on logout and before re-identifying on account switchidentifyUser()called on app load to re-identify returning users on page refreshdefaults: '2026-05-30'config option set correctly
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/posthog.js |
captureException (auto) |
Unhandled errors and rejections automatically captured |
src/api.js |
user_logged_in, user_logged_out, project_created, project_deleted, task_created, task_status_changed, task_deleted, task_assigned, settings_updated |
Core product actions with contextual properties (priority, status, setting, value, assignment_status) |
src/pages/settings.js |
workspace_data_reset |
Captures workspace reset before data is cleared |
Issues
None — events are well-chosen and well-structured.
Other completed criteria
- Events represent real user actions mapping to actual product flows (login → project management → task management → settings)
- Events enable product insights — can build funnels (login → project_created → task_created), retention analysis, and feature usage metrics
- Events include relevant properties (priority, status, setting/value, assignment_status)
- No PII in capture properties — email/name/role correctly placed in
identify()person properties only - Event names are descriptive, consistent snake_case convention
Reviewed by wizard workbench PR evaluator
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.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
3f39e0eApp:
javascript-web/saas-dashboardApp directory:
apps/javascript-web/saas-dashboardWorkbench branch:
wizard-ci-3f39e0e-javascript-web-saas-dashboardWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-23T22:01:07.224Z
Duration: 515.6s
YARA Scanner