ReviewOS

also looking at this

stacks/buddy

fix(dashboard): read the include toggles and the enabled switch

#1430
Merged glennmichael123 wants to merge fix/dashboard-toggles into main
5 files +100 -2
bin/cli.tsmodified+12-0
Changes to bin/cli.ts
@@ -793,6 +793,16 @@ cli
793793 const logger = options.verbose ? Logger.verbose() : Logger.quiet()
794794 const config = await resolveConfig(options.config)
795795
796 // Explicit `false` only. Unset stays on: the setting was documented as
797 // defaulting to false and was read by nothing, and enforcing that
798 // literally would switch off the dashboard for every repository that
799 // never wrote a `dashboard` block — the same trap `ai.review.enabled`
800 // set, and the same reading that avoids it.
801 if (config.dashboard?.enabled === false) {
802 logger.info('ℹ️ Dashboard is disabled by config (dashboard.enabled: false)')
803 return
804 }
805
796806 try {
797807 logger.info('Creating or updating dependency dashboard...')
798808
@@ -3151,6 +3161,8 @@ cli
31513161 // Supplied here because refreshing means a full scan, which is
31523162 // `Buddy`'s job rather than the gate module's.
31533163 refreshDashboard: async () => {
3164 if (config.dashboard?.enabled === false)
3165 throw new Error('dashboard.enabled is false')
31543166 await new Buddy(config).createOrUpdateDashboard()
31553167 },
31563168 })