Celebrate onboarding and agent wins with GitHub star prompts (#5642)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-06-17 22:21:32 -07:00
committed by GitHub
co-authored by Orca
parent 4a3ec0232f
commit fd9e79a77a
38 changed files with 2026 additions and 204 deletions
+10 -2
View File
@@ -1008,13 +1008,21 @@ describe('registerGitHubHandlers', () => {
registerGitHubHandlers(store as never, stats as never)
for (const source of ['star_nag', 'settings', 'landing'] as const) {
for (const source of [
'star_nag',
'agent_value_moment',
'onboarding_completed',
'settings',
'landing'
] as const) {
await expect(handlers['gh:starOrca'](null, source)).resolves.toBe(true)
}
expect(trackMock).toHaveBeenCalledTimes(3)
expect(trackMock).toHaveBeenCalledTimes(5)
expect(trackMock.mock.calls.map(([, props]) => props)).toEqual([
{ source: 'star_nag', nth_repo_added: undefined },
{ source: 'agent_value_moment', nth_repo_added: undefined },
{ source: 'onboarding_completed', nth_repo_added: undefined },
{ source: 'settings', nth_repo_added: undefined },
{ source: 'landing', nth_repo_added: undefined }
])