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

Unify loading button #2962

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Unify loading button #2962

merged 6 commits into from
Mar 20, 2024

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Feb 21, 2024

A small bit of #1618

This change is Reviewable

@imnasnainaec imnasnainaec added frontend maintenance Issue that makes it difficult to maintain the software or to upgrade installations post-release. Size: S Small sized issue labels Feb 21, 2024
@imnasnainaec imnasnainaec self-assigned this Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.82%. Comparing base (301639a) to head (0cabb1c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2962      +/-   ##
==========================================
+ Coverage   72.81%   72.82%   +0.01%     
==========================================
  Files         266      266              
  Lines       10200    10204       +4     
  Branches     1196     1196              
==========================================
+ Hits         7427     7431       +4     
  Misses       2424     2424              
  Partials      349      349              
Flag Coverage Δ
backend 82.88% <ø> (ø)
frontend 63.43% <100.00%> (+0.02%) ⬆️

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

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

@imnasnainaec imnasnainaec requested a review from jmgrady March 8, 2024 18:42
Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewed 9 of 10 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


src/components/Dialogs/CancelConfirmDialog.tsx line 55 at r2 (raw file):

        <Button
          color="primary"
          disabled={loading}

So the user cannot cancel an action once it starts loading? How is one to manage something that is taking too long?

Code quote:

 disabled={loading}

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)


src/components/Dialogs/CancelConfirmDialog.tsx line 55 at r2 (raw file):

Previously, jmgrady (Jim Grady) wrote…

So the user cannot cancel an action once it starts loading? How is one to manage something that is taking too long?

Correct. The loading is being used with async functions, usually involving the backend. It is not only to indicate that something is happening, but also to prevent double submissions. We don't have any clean cancel mechanisms is place, so the user's cancel is to refresh the page or navigate to a different page.

@imnasnainaec imnasnainaec requested a review from jmgrady March 20, 2024 13:44
Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@jmgrady jmgrady merged commit 8f2f3b3 into master Mar 20, 2024
17 checks passed
@jmgrady jmgrady deleted the loading-button branch March 20, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend maintenance Issue that makes it difficult to maintain the software or to upgrade installations post-release. Size: S Small sized issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants