-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: centralize redesigned confirmation decision logic #28445
chore: centralize redesigned confirmation decision logic #28445
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. |
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: app/scripts/lib/createRPCMethodTrackingMiddleware.js
📄 File: app/scripts/lib/transaction/metrics.ts (Click to Expand)
Did you find this useful? React with a 👍 or 👎 |
58fce0b
to
7702e54
Compare
Builds ready [7702e54]
Page Load Metrics (1929 ± 125 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ui/pages/confirmations/components/confirm/scroll-to-bottom/scroll-to-bottom.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/header/header-info.tsx
Outdated
Show resolved
Hide resolved
…rmation-decision-logic
looks like there are a few more lint errors to fix @cryptotavares |
jsdoc is not picking up the destruct plus the TS inline type
…rmation-decision-logic
Builds ready [746342a]
Page Load Metrics (1976 ± 72 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…rmation-decision-logic
const isRedesignedConfirmationsDeveloperSettingEnabled = | ||
process.env.ENABLE_CONFIRMATION_REDESIGN === 'true' || | ||
isRedesignedConfirmationsDeveloperEnabled; |
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 was confused about how ENABLE_CONFIRMATION_REDESIGN
was being handled. Thanks for clearing this up and for the helpful tests!
Builds ready [6c56694]
Page Load Metrics (2161 ± 119 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR centralizes the redesigned confirmation decision logic to improve code organization and reduce duplication across the codebase. Currently, redesign confirmation decision logic is scattered across multiple files, making it harder to maintain and more prone to inconsistencies.
Motivation
The existing implementation has several issues:
Key changes:
ui
andapp
bundles)Types of changes:
Related issues
Fixes:
Manual testing steps
Pre-merge author checklist
Pre-merge reviewer checklist