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

fix: highlight confirmed status when signer confirms #2279

Merged
merged 148 commits into from
Jul 12, 2023
Merged

Conversation

iamacook
Copy link
Member

What it solves

Resolves confirmed status incorrectly highlighted

How this PR fixes it

The transaction status "Confirmed" step is now only highlighted if the user will confirm the transaction with their signature.

How to test it

  1. Create a transaction on a 1/n Safe and observe the "Confirmed" status highlighted.
  2. Create a transaction with an 1+/n Safe and observe the "Confirmed" status highlighted when the threshold - 1 user confirms/executes the transaction.

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

usame-algan and others added 30 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
* 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
* 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
* SafeAppsTx flow

* On close

* Handle txFlow close
* feat: new spending limit flow

* fix: preserve token address + reset time values
usame-algan and others added 15 commits July 10, 2023 18:09
* 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]>
* 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
* fix: increase `min-width` of nonce field

* fix: prevent recommended nonce jump
* 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 self-assigned this Jul 12, 2023
@github-actions
Copy link

github-actions bot commented Jul 12, 2023

Branch preview

✅ Deploy successful!

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

@github-actions
Copy link

github-actions bot commented Jul 12, 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

@iamacook iamacook changed the base branch from epic-tx-flow to dev July 12, 2023 14:39
@usame-algan usame-algan merged commit 27ffdd7 into dev Jul 12, 2023
6 of 7 checks passed
@usame-algan usame-algan deleted the confirmed-status branch July 12, 2023 19:50
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2023
@francovenica
Copy link
Contributor

LGTM. The confirm status looks fine

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.

6 participants