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(app): add loading state to ODD protocol list #14238

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

shlokamin
Copy link
Member

@shlokamin shlokamin commented Dec 18, 2023

Overview

This PR adds a loading state to the protocols list page when there is a pending analysis. This fixes a bug where we were eagerly showing an error state before a protocol finished analyzing.

closes RQA-2137

Screenshot 2023-12-18 at 3 19 12 PM

Risk assessment

Low

@shlokamin shlokamin requested a review from a team as a code owner December 18, 2023 20:34
@shlokamin shlokamin requested review from TamarZanzouri, sfoster1 and b-cooper and removed request for a team December 18, 2023 20:34
name="ot-spinner"
spin
size={SIZE_2}
marginY={'-1.5rem'}
Copy link
Member Author

Choose a reason for hiding this comment

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

used a negative margin here to get around the spinner icon taking up padding room. if someone knows a better way to do that lmk

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #14238 (e2fefa1) into chore_release-7.1.0 (0716cad) will decrease coverage by 0.04%.
Report is 2 commits behind head on chore_release-7.1.0.
The diff coverage is 71.42%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.1.0   #14238      +/-   ##
=======================================================
- Coverage                70.41%   70.38%   -0.04%     
=======================================================
  Files                     1636     2513     +877     
  Lines                    54490    71461   +16971     
  Branches                  4034     9101    +5067     
=======================================================
+ Hits                     38371    50298   +11927     
- Misses                   15420    18944    +3524     
- Partials                   699     2219    +1520     
Flag Coverage Δ
app 67.49% <71.42%> (+28.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
app/src/pages/ProtocolDashboard/ProtocolCard.tsx 65.45% <71.42%> (ø)

... and 876 files with indirect coverage changes

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Tested and works!

@shlokamin shlokamin merged commit 45b52ed into chore_release-7.1.0 Dec 18, 2023
22 checks passed
@shlokamin shlokamin deleted the app_odd-protocol-loading-state branch December 18, 2023 21: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.

2 participants