-
Notifications
You must be signed in to change notification settings - Fork 14
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
Change Canvas Studio admin token refresh to work more like other refreshes #6290
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,6 +356,21 @@ export default function LaunchErrorDialog({ | |
</p> | ||
</ErrorModal> | ||
); | ||
|
||
case 'canvas_studio_admin_token_refresh_failed': | ||
return ( | ||
<ErrorModal | ||
{...defaultProps} | ||
onRetry={undefined} | ||
title="Unable to access Canvas Studio video" | ||
> | ||
<p> | ||
Your Canvas LMS administrator needs to re-authorize the integration | ||
between Hypothesis and Canvas Studio. | ||
</p> | ||
Comment on lines
+367
to
+370
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend a more detailed error message than this.
These error messages are going to be screen-shotted or copy-pasted by students and sent to their instructors, or sent by instructors to their admins, or to us. The more detailed and specific the error message can be about exactly who needs to do exactly what, the better chance the users have of recovering quickly without a lot of time lost to confusion or back-and-forth with Hypothesis support. |
||
</ErrorModal> | ||
); | ||
|
||
case 'blackboard_group_set_not_found': | ||
return ( | ||
<ErrorModal | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to avoid the doubling up of refresh endpoints and views by using a
?admin
query param.