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

Only show the Request Access button when the user is logged in #5054

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Mar 15, 2024

Fix #5053

Problem:

The ProjectNotFound page shows the Request access button if the project is collaborative, but it should only show it if the user is also logged in.

Fix:

Add a flag for it. I passed the value coming from the persistence's context – the same could also be done with getLoginState directly inside the component but it felt more consistent this way.
Happy to change it if somebody feels otherwise!

@ruggi ruggi changed the title only show request access when the user is logged in Only show the Request Access button when the user is logged in Mar 15, 2024
Copy link
Contributor

github-actions bot commented Mar 15, 2024

Try me

Copy link

relativeci bot commented Mar 15, 2024

Job #11050: Bundle Size — 63.2MiB (~+0.01%).

cc9687b(current) vs 2296c28 master#11036(baseline)

Warning

Bundle contains 58 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Regression 1 regression Improvement 1 improvement
                 Current
Job #11050
     Baseline
Job #11036
Regression  Initial JS 50.38MiB(~+0.01%) 50.38MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.86% 48.91%
No change  Chunks 40 40
No change  Assets 44 44
No change  Modules 4467 4467
No change  Duplicate Modules 605 605
Improvement  Duplicate Code 31.95%(-0.03%) 31.96%
No change  Packages 467 467
No change  Duplicate Packages 58 58
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
Job #11050
     Baseline
Job #11036
Regression  JS 63.19MiB (~+0.01%) 63.19MiB
Improvement  HTML 14.15KiB (-0.44%) 14.21KiB

View job #11050 reportView fix/request-access-logged-in branch activityView project dashboard

Copy link
Contributor

github-actions bot commented Mar 15, 2024

Performance test results:
(Chart1)
(Chart2)

Comment on lines 16 to 17
projectId?: string
loggedIn?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to be optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah I don't think they do – I adapted to the existing ?: but it makes sense to have them explicit

Copy link
Contributor Author

@ruggi ruggi Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruggi ruggi merged commit 27743e5 into master Mar 15, 2024
13 of 15 checks passed
@ruggi ruggi deleted the fix/request-access-logged-in branch March 15, 2024 11:39
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.

Only show request access for logged in users
3 participants