-
Notifications
You must be signed in to change notification settings - Fork 1
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: add loading circles to modals #21
Conversation
- reset, reject, and verify buttons all have loading circles now - also, renamed the components to modals since that's what they are
Whoops I hit the close button by accident, ignore that. Also this PR does still need test fixes. |
Planned next steps:
|
7ab9d79
to
e75c81a
Compare
Added a demo of the error button to the original post, which does the same thing as the "completed" button where it stays in the modal even if you open a new one, though I suppose one would refresh the page on an error anyhow so I will keep this status |
- it didn't work
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 75.75% 76.75% +0.99%
==========================================
Files 22 22
Lines 297 314 +17
Branches 31 34 +3
==========================================
+ Hits 225 241 +16
- Misses 69 70 +1
Partials 3 3 ☔ View full report in Codecov by Sentry. |
190704e
to
46bfb73
Compare
- also fixed some nits
import * as testUtils from '../../../testUtils'; | ||
|
||
import * as hooks from '../hooks'; | ||
|
||
jest.mock('../data/api', () => { |
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.
we removed the lines assigning a response to this mock so I don't think this is doing anything
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.
fixed 👍
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.
one missed debugging comment but otherwise looking good!
src/pages/ExamsPage/hooks.js
Outdated
@@ -54,6 +54,8 @@ export const useDeleteExamAttempt = () => { | |||
}; | |||
|
|||
export const useModifyExamAttempt = () => { | |||
// something's up with useMakeNetworkRequest here? | |||
// ok it says line 1473... but there's only like 200 in this file |
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.
NIT: extra comment
Issue: https://2u-internal.atlassian.net/browse/COSMO-121
Demo:
Screen.Recording.2023-12-13.at.10.13.30.AM.mov
Error Button: