Skip to content

fix: admin dashboard null errors and early PostHog error capture#657

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-admin-stats-null
Jan 7, 2026
Merged

fix: admin dashboard null errors and early PostHog error capture#657
bokelley merged 1 commit into
mainfrom
bokelley/fix-admin-stats-null

Conversation

@bokelley

@bokelley bokelley commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove JS references to non-existent HTML elements (engagedProspects, trials) that caused null reference errors
  • Move /accounts/view-counts route before /accounts/:orgId to fix 404 (Express was matching "view-counts" as an org ID)
  • Add early error buffer to capture JavaScript errors before PostHog loads asynchronously

Test plan

  • Verified admin dashboard loads without console errors
  • Verified view-counts endpoint returns 200 (when authenticated)
  • All 179 tests pass
  • TypeScript compiles without errors

🤖 Generated with Claude Code

- Remove JS references to non-existent HTML elements (engagedProspects, trials)
- Move /accounts/view-counts route before /accounts/:orgId to fix 404
- Add early error buffer to capture JS errors before PostHog loads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 8dcdbb3 into main Jan 7, 2026
6 checks passed
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