-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: 🐛 use a counter to show if there are pending transactions #26116
fix: 🐛 use a counter to show if there are pending transactions #26116
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [08c707d]
Page Load Metrics (179 ± 219 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26116 +/- ##
========================================
Coverage 69.95% 69.95%
========================================
Files 1411 1411
Lines 49982 49981 -1
Branches 13805 13804 -1
========================================
Hits 34964 34964
+ Misses 15018 15017 -1 ☔ View full report in Codecov by Sentry. |
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.
PR Summary
This PR updates the badge for pending transactions to display the number of pending transactions instead of an ellipsis, enhancing user experience by providing specific information.
- File Modified:
app/scripts/background.js
- Key Changes:
- Removed
BADGE_LABEL_APPROVAL
constant. - Updated
updateBadge
function to set the badge label topendingApprovalCount
.
- Removed
This change ensures users can see the exact number of pending transactions, improving transparency and usability.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Builds ready [6e0d269]
Page Load Metrics (241 ± 233 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
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.
PR Summary
(updates since last review)
This PR updates the badge for pending transactions to display the number of pending transactions instead of an ellipsis, enhancing user experience by providing specific information.
-
File Modified:
ui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.container.js
- Added state mapping for unapproved transactions and their counts.
- Introduced a counter to track the number of pending transactions.
-
File Added:
ui/pages/confirmations/confirmation/components/queued-requests-banner-alert/queued-requests-banner-alert.tsx
- Introduced
QueuedRequestsBannerAlert
component to display a banner alert for queued requests.
- Introduced
-
File Modified:
ui/pages/confirmations/components/signature-request/signature-request.js
- Added
QueuedRequestsBannerAlert
component to theSignatureRequest
component.
- Added
-
File Added:
ui/pages/confirmations/hooks/alerts/transactions/useQueuedConfirmationsAlerts.ts
- Introduced
useQueuedConfirmationsAlerts
hook to generate alerts for queued confirmations.
- Introduced
-
File Modified:
ui/pages/confirmations/hooks/useConfirmationAlerts.ts
- Integrated
useQueuedConfirmationsAlerts
intouseTransactionAlerts
function.
- Integrated
These changes ensure users can see the exact number of pending transactions, improving transparency and usability.
78 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Builds ready [7a83fcb]
Page Load Metrics (277 ± 287 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [634bec5]
Page Load Metrics (274 ± 271 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Quality Gate passedIssues Measures |
Builds ready [7e6b5d7]
Page Load Metrics (266 ± 286 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR modifies the content of the badge for pending transactions. Before this PR, the blue badge showed three dots; now it shows a number again.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist