Skip to content

feat(commerce): reports_only hides Library and defaults to task board#4711

Merged
rafavalls merged 2 commits into
mainfrom
rafavalls/reports-only-flag-behavior
Jul 17, 2026
Merged

feat(commerce): reports_only hides Library and defaults to task board#4711
rafavalls merged 2 commits into
mainfrom
rafavalls/reports-only-flag-behavior

Conversation

@rafavalls

@rafavalls rafavalls commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

What is this contribution about?

Two behavior changes gated on the `reports_only` org flag for commerce orgs:

  1. The Library toggle button is hidden — commerce orgs don't use the org file library.
  2. The task board toggle (`useTaskBoardEnabled`) returns `true` automatically, so the Tasks button appears in the toolbar without the user needing to enable it in settings.

Screenshots/Demonstration

Manual testing required — enable `reports_only` on a local org and verify the Library button is absent and the Tasks toggle is visible without touching settings.

How to Test

  1. Enable `reports_only` on a local org (via `ORGANIZATION_UPDATE` settings tool or direct DB update).
  2. Navigate to any task route (`/$org/$taskId`).
  3. Confirm the Library button is not shown in the left toolbar.
  4. Confirm the Tasks toggle button is visible in the toolbar (even if `task_board_enabled` is `false` in org settings).

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes

rafavalls and others added 2 commits July 17, 2026 14:33
…ard default

Hides the Library toggle for commerce (reports-only) orgs and defaults the
main panel to the task board when no explicit ?main param is present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… panel

Replace the panel-force-open behavior with the correct intent: reports_only
orgs have task_board_enabled treated as true so the Tasks button appears in
the toolbar without needing a manual settings toggle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rafavalls
rafavalls merged commit 32500bf into main Jul 17, 2026
14 checks passed
@rafavalls
rafavalls deleted the rafavalls/reports-only-flag-behavior branch July 17, 2026 17:43
decocms Bot pushed a commit that referenced this pull request Jul 17, 2026
PR: #4711 feat(commerce): reports_only hides Library and defaults to task board
Bump type: minor

- decocms (apps/mesh/package.json): 4.72.3 -> 4.73.0

Deploy-Scope: web
rafavalls added a commit that referenced this pull request Jul 22, 2026
Resolve conflicts between the top-bar redesign and main:

- Tasks/Library/runtime-switcher toggles: keep the redesign that folds the
  agent-independent overlays into the main-panel tab bar; drop the now-orphaned
  library-toggle / tasks-toggle / runtime-switcher files.
- Port main's features into the redesign: reports-only hides the Library
  overlay (#4711), task board graduated out of its org flag (#4883, dropped
  useTaskBoardEnabled), i18n strings (#4971), and the new Connect-to-Claude
  footer action (#2765).
- sidebar footer: keep the redesign's unified account row (Settings tucked into
  a bottom-right icon) but restore the reports-only trimmed extra-actions
  variant.
- preview: keep the redesign's header-portal structure over main's inline
  toolbar; main's a11y/focus/reload fixes auto-merged and are preserved.

Verified: tsc --noEmit, oxlint (0 errors), knip (clean).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant