Skip to content

Conversation

@MODSetter
Copy link
Owner

@MODSetter MODSetter commented Jan 8, 2026

  • Introduced a new event tracking function for when users view the team page in a search space.
  • Updated the team management page to utilize this tracking, capturing user and owner counts.

Description

Motivation and Context

FIX #

Screenshots

API Changes

  • This PR includes API changes

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

Testing Performed

  • Tested locally
  • Manual/QA verification

Checklist

  • Follows project coding standards and conventions
  • Documentation updated as needed
  • Dependencies updated as needed
  • No lint/build errors or new warnings
  • All relevant tests are passing

High-level PR Summary

This PR adds analytics tracking for when users view the team management page within a search space. A new trackSearchSpaceUsersViewed event function is introduced that captures the total user count and owner count, and this tracking is automatically triggered via a useEffect hook when the team page loads with member data.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_web/lib/posthog/events.ts
2 surfsense_web/app/dashboard/[search_space_id]/team/page.tsx

Need help? Join our Discord

Analyze latest changes

- Introduced a new event tracking function for when users view the team page in a search space.
- Updated the team management page to utilize this tracking, capturing user and owner counts.
@MODSetter MODSetter merged commit fc8b903 into main Jan 8, 2026
4 of 6 checks passed
@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
surf-sense-frontend Building Building Preview, Comment Jan 8, 2026 9:38pm

Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on 1bed330..609fc87

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (2)

surfsense_web/app/dashboard/[search_space_id]/team/page.tsx
surfsense_web/lib/posthog/events.ts

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.

2 participants