Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(org-stats): Require project membership #83085

Merged

Conversation

ArthurKnaus
Copy link
Member

Problem

If the user is not member of any project (closes team membership) the organization stats page can end up in two different states.

  1. Default state for new users. none / all projects are selected
Screenshot 2025-01-08 at 08 27 42
  1. User had once access and a project selection is set or they where led there with a link that includes project selection
Screenshot 2025-01-08 at 08 23 07

Both states are not ideal.
State 1 suggests on a first glance that there is no traffic in this organization and does not provide any valuable information.
But state 2 is problematic as requests fail and the page looks broken.

Solution

Wrap the page in <NoProjectMessage /> as we do for other pages that rely on project data.

Screenshot 2025-01-08 at 08 26 43

Close #82998

@ArthurKnaus ArthurKnaus requested a review from a team January 8, 2025 07:47
@ArthurKnaus ArthurKnaus requested a review from a team as a code owner January 8, 2025 07:47
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 8, 2025
@ArthurKnaus ArthurKnaus merged commit 4651f5a into master Jan 8, 2025
44 checks passed
@ArthurKnaus ArthurKnaus deleted the aknaus/fix/org-stats/require-project-membership branch January 8, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project stats page without project access
2 participants