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

feat: show logged in user context #1980

Merged
merged 2 commits into from
Oct 19, 2024
Merged

feat: show logged in user context #1980

merged 2 commits into from
Oct 19, 2024

Conversation

jimniels
Copy link
Collaborator

On the dashboard or in the app, there are times you can hit a route that results in a screen where something went wrong.

Today it's not always clear that you might be hitting that error based on who you're logged in as.

For example, I go to /teams/team-id-1 and it says "You can't access this team" and I think "I should be able to, that's weird..."

But the reality is that I can't access that team because I'm not logged in as the user I think I am when I hit that screen.

So this PR makes it a lot easier to infer why you might be hitting these screens, as it will show you you're currently logged in status (if you're logged in — if you're not logged in, e.g. an anon user, it won't show this).

Examples:

You don't have permission to see team

CleanShot 2024-10-17 at 13 42 37@2x

Team not found

CleanShot 2024-10-17 at 13 42 29@2x

Unexpected error

CleanShot 2024-10-17 at 13 44 32@2x

Copy link

qa-wolf bot commented Oct 17, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quadratic ✅ Ready (Inspect) Visit Preview Oct 17, 2024 8:25pm

@jimniels jimniels temporarily deployed to quadratic-api-dev-pr-1980 October 17, 2024 19:52 Inactive
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.97%. Comparing base (f8ac347) to head (dba8d79).
Report is 3 commits behind head on qa.

Additional details and impacted files
@@           Coverage Diff           @@
##               qa    #1980   +/-   ##
=======================================
  Coverage   90.97%   90.97%           
=======================================
  Files         250      250           
  Lines       56525    56525           
=======================================
+ Hits        51421    51422    +1     
+ Misses       5104     5103    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@davidkircos davidkircos left a comment

Choose a reason for hiding this comment

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

Nice improvement!

@davidkircos davidkircos merged commit b31fb7d into qa Oct 19, 2024
16 checks passed
@davidkircos davidkircos deleted the jim-display-user-context branch October 19, 2024 01:13
Copy link

qa-wolf bot commented Oct 19, 2024

E2E tests

QA 1 blocking bug

Ran Status Preview Started Run time Est. dev time saved
76 workflows Done (Details) Oct 19, 2024 at 1:44 AM (UTC) 21 minutes ~30.83 hrs
✅ 72 passed

Preexisting bugs

1 Blocking bug
If you are aware of any of these bugs, you can set their priority to low and prevent them from causing a run failure.
View all blocking bugs

1 Non-blocking bug

. . . . . . . .

Re-run your E2E tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants