feat(ui,judgement,system): unify nav, surface built-in guards, readiness and decision reasoning

This commit is contained in:
sam committed 2026-11-27 02:13:28 +11:00
1 parent 5dc2d79fdb
commit 2ea0062bef
34 files changed
+548 -103

No files matched your search

+9
View File
@@ -436,6 +436,15 @@ func (m *Module) Work(ctx context.Context) {
}
}
// SourceCount reports how many event sources exist for the organisation.
func (m *Module) SourceCount(ctx context.Context) (int, error) {
sources, err := m.store.Sources(ctx, m.orgID)
if err != nil {
return 0, err
}
return len(sources), nil
}
// startListeners starts one listener for each source whose connector listens
// and has none yet. A listener lives until ctx ends.
func (m *Module) startListeners(ctx context.Context, wg *sync.WaitGroup, listening map[uuid.UUID]bool) {