Skip to content

Display only warnings of the currently selected scope by default - #6127

Draft
raphaelblum wants to merge 1 commit into
mainfrom
warnings-current-scope-default
Draft

Display only warnings of the currently selected scope by default#6127
raphaelblum wants to merge 1 commit into
mainfrom
warnings-current-scope-default

Conversation

@raphaelblum

@raphaelblum raphaelblum commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

The warnings overview and the "Latest Warnings" dashboard widget query the warnings of every scope the user may access. For an admin that is every scope in the project, which makes the list hard to read — the ticket asks for the warnings of the current scope instead, without the user having to set a filter by hand.

WarningsGrid and LatestWarningsDashboardWidget now pass the current content scope as the scopes query variable instead of all allowed scopes. Switching the scope updates the list, because the query variable changes.

Warnings that have no scope at all (DAM warnings, for instance) or only a part of a scope (only domain) stay visible. The resolver already adds the partial scopes to the query and always matches scope IS NULL next to the requested scopes, so this needs no API change.

WarningsPage also passes showAllScopes to its ContentScopeIndicator, so the page shows the current scope instead of "Global" unless all scopes are requested.

Example

The new default needs no configuration. To keep the previous behavior, set the new showAllScopes prop:

<WarningsPage showAllScopes />
<LatestWarningsDashboardWidget showAllScopes />

Acceptance criteria

Screenshots/screencasts

Before After
Link Link

Open TODOs/questions

  • Add before/after screenshots of the warnings grid and the dashboard widget
  • This changes the default for existing projects: after the update they show fewer warnings than before, without a code change on their side. I consider that acceptable, because the previous default is what the ticket reports as the problem, and showAllScopes restores it in one line. If someone sees it differently, I can turn the prop around — keep all scopes as the default, let projects opt in to the current scope — and change the default in the next major instead.

Further information

@raphaelblum raphaelblum self-assigned this Aug 6, 2026
@raphaelblum
raphaelblum force-pushed the warnings-current-scope-default branch from 15e2190 to 40720c0 Compare August 6, 2026 07:37
@raphaelblum raphaelblum changed the title cms-admin: Display only warnings of the currently selected scope by d… Display only warnings of the currently selected scope by default Aug 6, 2026
@raphaelblum
raphaelblum force-pushed the warnings-current-scope-default branch from 40720c0 to c29156c Compare August 6, 2026 11:01
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.

2 participants