-
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
UX: added badge status in account list #23006
Conversation
) { | ||
badgeBorderColor = BorderColor.successDefault; | ||
badgeBackgroundColor = BackgroundColor.backgroundDefault; | ||
} | ||
|
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.
Can we create a helper files in ui/helpers
called connectivity.js
where we have a few helper functions to re-use?
export function hasAnyAccountsConnected(accounts) {
}
export function getConnectivityColors(status) {
// return { borderColor: '???', backgroundColor: '???' }
}
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.
Added this functionality in ConnectedStatus to separate the BadgeStatus here d8f85f2
Builds ready [071d4d5]
Page Load Metrics (1054 ± 50 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -0,0 +1,87 @@ | |||
import React from 'react'; |
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 should use typescript unless a compelling reason not to.
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.
071d4d5
to
d3706dd
Compare
c111f8f
to
fbed3db
Compare
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. |
This is excellent work! Wow! Needs merge conflict updates but works great! Can we get a test here? |
fa2b09c
to
dff48ce
Compare
dff48ce
to
fc280b1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23006 +/- ##
===========================================
- Coverage 68.60% 68.59% -0.01%
===========================================
Files 1096 1097 +1
Lines 43251 43287 +36
Branches 11525 11538 +13
===========================================
+ Hits 29670 29690 +20
- Misses 13581 13597 +16 ☔ View full report in Codecov by Sentry. |
Builds ready [9584470]
Page Load Metrics (1778 ± 66 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [eae16e8]
Page Load Metrics (2827 ± 247 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [78480d6]
Page Load Metrics (2371 ± 103 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
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.
A few tiny suggestions but this looks great!
); | ||
}; | ||
|
||
ConnectedStatus.propTypes = { |
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.
Can we define types instead?
ui/components/multichain/pages/send/components/account-picker.test.tsx
Outdated
Show resolved
Hide resolved
78480d6
to
04d8a10
Compare
@@ -1043,6 +1074,7 @@ describe('Selectors', () => { | |||
balance: '0x0', | |||
pinned: true, | |||
hidden: false, | |||
active: false, |
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.
I have updated the updated the test, by checking the active false. For the connected one, it's true else false
Builds ready [58f9090]
Page Load Metrics (906 ± 399 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
This PR is to add badge status in the Account List
Related issues
Fixes: 1942
Manual testing steps
Screenshots/Recordings
Before
After
Popup View
Full Screen View
Pre-merge author checklist
Pre-merge reviewer checklist