You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(usage): show the over-limit banner to organisation admins - #8915
No actionable comments were generated in the recent review.
Walkthrough
shouldShowOrganisationLimit returns true when the user is an admin and the pathname is not the organisation usage page while the usage dashboard is enabled. App uses this predicate to control whether it renders OrganisationLimit. Tests cover five combinations of admin status, pathname and usage-dashboard setting.
The banner is restricted to organisation admins while preserving usage-page suppression. No actionable merge-blocking issue remains in the supplied evidence.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 2a485473-4837-4e3a-b22f-c6dc3c26a5d3
Commits
Reviewing files that changed from the base of the PR and between 8a060f2 and 2d77a1d.
Files selected for processing: 3
frontend/web/__tests__/routePaths.test.ts
frontend/web/components/App.js
frontend/web/routePaths.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 25fc7f09-82bc-483d-9698-d35f3a3fe63e
Commits
Reviewing files that changed from the base of the PR and between 13539af and 8a060f2.
Files selected for processing: 3
frontend/web/__tests__/routePaths.test.ts
frontend/web/components/App.js
frontend/web/routePaths.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Add rendered-banner tests for signed-in admins and non-admins on usage and non-usage routes. These helper tests pass literal booleans, so they would still pass if App supplied the wrong role or used the result incorrectly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8744.
Summary
Testing