Skip to content

Commit eb7e76c

Browse files
committed
fix: show org name in status bar during onboarding
Status bar now reacts to OrgSelected, OrgCreated, and WorkspaceSelected messages directly instead of waiting for OnboardingComplete. The early returns in app.go for OrgSelected/OrgCreated were bypassing the status bar Update call, so we batch it explicitly.
1 parent f492541 commit eb7e76c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎internal/app/app.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
267267
}
268268

269269
case onboardingmsg.OrgSelected:
270-
return m, m.activateOrg(msg.Org.ID, msg)
270+
return m, tea.Batch(m.statusBar.Update(msg), m.activateOrg(msg.Org.ID, msg))
271271

272272
case onboardingmsg.OrgCreated:
273-
return m, m.activateOrg(msg.Org.ID, msg)
273+
return m, tea.Batch(m.statusBar.Update(msg), m.activateOrg(msg.Org.ID, msg))
274274

275275
case onboardingmsg.AccountSelected:
276276
// Open database and start syncer when account is selected

0 commit comments

Comments
 (0)