* feat: hide Playbooks button when no running playbook runs in team
The PlaybooksButton on the home screen channel list now only appears
when there is at least one in-progress playbook run in the current team,
in addition to requiring the playbooks feature to be enabled.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* improve team query
* test: add unit tests for observeHasRunningPlaybookRunsInTeam query
Add tests to verify the new query correctly:
- Returns true when running playbook runs exist (end_at = 0)
- Returns false when all runs are finished (end_at > 0)
- Returns false when no runs exist
- Filters by team_id correctly
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>