[NA] [FE] Send project onboarding stats to assistant bridge#6067
[NA] [FE] Send project onboarding stats to assistant bridge#6067Lothiraldan merged 4 commits intomainfrom
Conversation
…idge Add useProjectOnboardingStats hook that fetches lightweight counts (traces, experiments, optimizations, blueprint versions) and passes them through BridgeContext so the Ollie assistant can provide context-aware onboarding guidance. Companion to ollie-assist contextual-nudges PR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
📋 PR Linter Failed❌ Invalid Title Format. Your PR title must include a ticket/issue number and may optionally include component tags (
Example: ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the |
- Return undefined instead of zeroed stats when no projectId - Reuse ProjectStats from assistant-sidebar types (remove duplicate) - Use processFilters(generateProjectFilters()) for proper project filtering - Remove unnecessary useMemo wrapper Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
📋 PR Linter Failed❌ Invalid Title Format. Your PR title must include a ticket/issue number and may optionally include component tags (
Example: ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the |
Addresses Baz review comment about three duplicate useQuery calls sharing the same wiring pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
📋 PR Linter Failed❌ Invalid Title Format. Your PR title must include a ticket/issue number and may optionally include component tags (
Example: ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the ❌ Missing Section. The description is missing the |
…oarding stats Include endpoint in useOnboardingCountQuery queryKey to prevent cache collisions across projects, and reduce staleTime from 30s to 1s so the assistant sees freshly logged traces promptly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Details
Adds a
useProjectOnboardingStatshook that fetches lightweight counts (size=1, staleTime=30s)for traces, experiments, optimizations, and blueprint versions. Extends
BridgeContextwith aprojectStatsfield and passes it to the assistant sidebar so it can deliver contextual nudgesbased on where the user is in their onboarding journey.
Change checklist
Issues
AI-WATERMARK
AI-WATERMARK: yes
Testing
npm run lint— passesnpm run typecheck— passesDocumentation
No documentation changes needed — internal hook consumed by assistant sidebar.