-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
chore: smart-transactions code domain #26948
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 [24fe0cf]
Page Load Metrics (1557 ± 68 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26948 +/- ##
========================================
Coverage 70.01% 70.01%
========================================
Files 1445 1445
Lines 50194 50194
Branches 14041 14041
========================================
Hits 35139 35139
Misses 15055 15055 ☔ View full report in Codecov by Sentry. |
@@ -51,7 +51,7 @@ | |||
@import 'recovery-phrase-reminder/index'; | |||
@import 'step-progress-bar/index.scss'; | |||
@import 'selected-account/index'; | |||
@import 'smart-transactions/index'; | |||
@import '../../pages/smart-transactions/components/index.scss'; |
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 don't see any other import from ../../pages
in this component. Shouldn't we remove it from here and import it somewhere else?
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.
Good call!
Builds ready [ecb356e]
Page Load Metrics (1896 ± 131 ms)
Bundle size diffs
|
Builds ready [5565348]
Page Load Metrics (1939 ± 99 ms)
Bundle size diffs
|
Quality Gate passedIssues Measures |
Builds ready [d91bac2]
Page Load Metrics (1946 ± 108 ms)
Bundle size diffs
|
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.
Looks good!
Description
This PR establishes the
ui/pages/smart-transactions
code domain, following the guidance in this proposal.The following files will be left in place.
ui/components/app/transaction-list-item/smart-transaction-list-item.component.js
ui/pages/confirmations/confirmation/templates/smart-transaction-status-page.js
ui/pages/swaps/smart-transaction-status/smart-transaction-status.js
STX-related code in other files
The following files contain stx-related code, which may be extracted and moved into the smart-transactions code domain at a later time.
app/scripts/metamask-controller.js
new SmartTransactionsController
.*// Smart Transactions
section*ui/ducks/swaps/swaps.js
fetchSmartTransactionsLiveness
,signAndSendSmartTransaction
,setSmartTransactionsRefreshInterval
, etc.ui/store/actions.ts
fetchSmartTransactionsLiveness
and other STX functionsui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.container.js
ui/pages/settings/advanced-tab/advanced-tab.component.js
ui/pages/swaps/swaps.util.ts
getFeeForSmartTransaction
ui/pages/swaps/prepare-swap-page/review-quote.js
ui/selectors/transactions.js
allowedSwapsSmartTransactionStatusesForActivityList
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist