Fix access denied screen to surface logged-out state as possible cause#952
Draft
Fix access denied screen to surface logged-out state as possible cause#952
Conversation
…t users Co-authored-by: jeffplays2005 <61447509+jeffplays2005@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix access denied screen to inform users about logout
Fix access denied screen to surface logged-out state as possible cause
Mar 1, 2026
Contributor
Preview Deployment Status✅ Storybook Preview: https://ec5e0dc0.uabc-storybook.pages.dev ✅ Frontend Preview: https://ef340a99.uabc.pages.dev |
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The "Access Denied" screen only showed "You must be an admin to view this page," which is misleading for users who are simply unauthenticated. This adds a second line of context so users know they may just be logged out.
Changes
NotAuthorisedcomponent — adds optionaladditionalDescription?: stringprop; renders a secondEmptyStateDescriptionbelow the primary one when providedAdminClient.tsx— passesadditionalDescription="You may also be logged out."to theNotAuthorisedfallback in the adminRoleGuardNotAuthorised.stories.tsx— updates theCustomstory to includeadditionalDescriptionType of change
How Has This Been Tested?
Checklist before requesting a review
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.