mattermost-mobile/app
Guillermo Vayá d014856a3a
[MM-67361] Hide playbook (#9478)
* 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>
2026-01-29 11:58:58 +01:00
..
actions fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
client
components Add DialogRouter for Interactive Dialog to Apps Form migration (#9114) 2026-01-26 08:57:56 -07:00
constants Add DialogRouter for Interactive Dialog to Apps Form migration (#9114) 2026-01-26 08:57:56 -07:00
context
database fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
helpers Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
hooks
i18n
init fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
managers Add DialogRouter for Interactive Dialog to Apps Form migration (#9114) 2026-01-26 08:57:56 -07:00
products [MM-67361] Hide playbook (#9478) 2026-01-29 11:58:58 +01:00
queries
screens [MM-67361] Hide playbook (#9478) 2026-01-29 11:58:58 +01:00
store
utils Add DialogRouter for Interactive Dialog to Apps Form migration (#9114) 2026-01-26 08:57:56 -07:00