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
feat: Implement transaction details component #24228
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. |
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.
👍
ui/pages/confirmations/components/simulation-details/simulation-details.tsx
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/transaction-details.tsx
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/transaction-details.tsx
Outdated
Show resolved
Hide resolved
f9f4b7b
to
a21b7ab
Compare
0ba1c4b
to
8d26e10
Compare
Builds ready [8d26e10]
Page Load Metrics (360 ± 433 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #24228 +/- ##
===========================================
- Coverage 67.37% 67.36% -0.01%
===========================================
Files 1278 1278
Lines 49881 49766 -115
Branches 12944 12936 -8
===========================================
- Hits 33605 33524 -81
+ Misses 16276 16242 -34 ☔ View full report in Codecov by Sentry. |
import configureMockStore from 'redux-mock-store'; | ||
import { genUnapprovedContractInteractionConfirmation } from '../../../../../../../test/data/confirmations/contract-interaction'; | ||
import mockState from '../../../../../../../test/data/mock-state.json'; | ||
import { renderWithProvider } from '../../../../../../../test/lib/render-helpers'; | ||
import ContractInteractionInfo from './contract-interaction'; | ||
|
||
describe('<ContractInteractionInfo />', () => { | ||
const middleware = [thunk]; | ||
|
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.
just curious - why is thunk middleware required here ?
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.
Because useKnownMethodDataInTransaction
, which is further down the component chain needs to be able to dispatch actions.
ui/pages/confirmations/components/confirm/info/hooks/known-method-data-in-transaction.ts
Show resolved
Hide resolved
<OriginRow /> | ||
<RecipientRow /> | ||
<MethodDataRow /> | ||
</> |
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.
Later, it might be useful to extract these into their own components for re-use across confirmations
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.
Agreed, although I haven't seen a use case for them outside transaction details on the designs yet.
ui/pages/confirmations/components/confirm/info/hooks/known-method-data-in-transaction.ts
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/transaction-details.tsx
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/transaction-details.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/transaction-details.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/simulation-details/simulation-details.tsx
Show resolved
Hide resolved
b9dc87e
to
6c84c02
Compare
6ca7c44
to
2b1487c
Compare
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.
LGTM
Builds ready [cbdf3d5]
Page Load Metrics (1050 ± 654 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
cbdf3d5
to
b00c938
Compare
Builds ready [b00c938]
Page Load Metrics (1520 ± 704 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Related issues
Fixes: #23945
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist