Skip to content
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

[Epic] Tx flow redesign #2067

Merged
merged 142 commits into from
Jul 12, 2023
Merged

[Epic] Tx flow redesign #2067

merged 142 commits into from
Jul 12, 2023

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Jun 2, 2023

Resolves #1828.

Designs: on Figma

See related issues

Screenshot 2023-06-02 at 08 27 24

usame-algan and others added 10 commits May 23, 2023 12:04
* feat: Add StepperFactory, new tx pages

* wip: context instead of routes

* Add tx flows to new modal context

* fix: Close modal when user navigates

* Export all flows from one file

* refactor: Remove unused code from StepperFactory

* fix: Duplicate ModalDialog to fix failing tests
* Refactor: reactive recommended nonce

Reduce re-renders

Nonce -1

* Use "nonceReadyOnly" instead of -1

* Split sign and execute into two components
* feat: add tx status widget UI

* add logic to paint the stepper

* port the ConfirmProposedTx to the new layout

* pass tx data to the TxStatusWidget to get the tx confirmations

* style: add new lines between adjacent tags
* Refactor: SafeTxProvider

* Avoid oscillating nonce

* fix reject tx for new provider

---------

Co-authored-by: Usame Algan <[email protected]>
* Refactor: useRecommendedNonce + useSafeTxGas

* Fix lint

* Get recommended nonce by "estimating" an empty tx
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Branch preview

✅ Deploy successful!

https://epic_tx_flow--walletweb.review-wallet-web.5afe.dev

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

katspaugh and others added 10 commits June 2, 2023 08:49
* Refactor: a less verbose ModalProvider

* Fix Cannot redefine property: dispatchTxProposal
* Refactor the tx flow system

* Array
* Editable nonce

* Fix tests
* fix: Close modal on sign, only render current step

* fix: Close modal on sign, only render current step

* fix: set all data + move back button

---------

Co-authored-by: Usame Algan <[email protected]>
* Refactor: single type for tx flows

* Omit txNonce

* FormData type
@usame-algan usame-algan mentioned this pull request Jun 13, 2023
3 tasks
iamacook and others added 5 commits June 13, 2023 12:35
* feat: Port change threshold flow

* fix: Only estimate gas when executing

* fix: Remove old component
* feat: add owner flow

* feat: replace owner flow

* feat: replace owner flow
@usame-algan usame-algan mentioned this pull request Jun 13, 2023
3 tasks
* fix: Show recommended nonce in list

* fix: button ref issue
usame-algan and others added 4 commits July 10, 2023 17:52
* fix: Check execute checkbox if execution is the only option (#2230)

* v1.14.0

* Chore: escape quotes in release action (#2236)

Use printf

Use a heredoc

Use jq

* fix: only initiate WC v2 module if project id provided (#2228)

* chore: mark `NEXT_PUBLIC_WC_PROJECT_ID` required

* chore: don't prettify

* fix: don't return module

* fix: revert readme

* fix: autoconnect to WC v2 on mobile (#2238)

* fix: update token price tooltip (#2257)

---------

Co-authored-by: katspaugh <[email protected]>
Co-authored-by: katspaugh <[email protected]>
Co-authored-by: Aaron Cook <[email protected]>
@github-actions
Copy link

github-actions bot commented Jul 10, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

usame-algan and others added 4 commits July 11, 2023 14:55
* fix: Hide status for batch execute

* fix: Close batch execute flow when submitting tx

* fix: Remove hide status flag, add isBatch flag and display different status messages for batch execution
* fix: Hide approval editor for non-approval transactions

* fix: Adjust useApprovalInfos hook for non-approval txs
iamacook and others added 3 commits July 11, 2023 16:32
iamacook and others added 2 commits July 11, 2023 17:09
* fix: Align decoded tx ui for batch execute

* fix: Don't show confirmation dialog for batch execute, update spending limit components to use SendAmountBlock
* fix: Validation for spending limits

* fix: Reset amount field to empty string instead of 0 when switching tokens

* fix: Add readonly addressbook input to spending limits
* fix: Hide nonce for spending limit txs

* Update src/components/tx-flow/flows/TokenTransfer/ReviewSpendingLimitTx.tsx

Co-authored-by: Aaron Cook <[email protected]>

---------

Co-authored-by: Aaron Cook <[email protected]>
@iamacook iamacook merged commit 93b761e into dev Jul 12, 2023
6 of 7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Epic] Refactor and redesign the tx modals
5 participants