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

Full Sweep: Drop the USE_UPDATED_SIGNING_UI feature flag #3475

Merged
merged 9 commits into from
Jun 19, 2023

Conversation

Shadowfiend
Copy link
Contributor

@Shadowfiend Shadowfiend commented Jun 13, 2023

This takes care of the remaining cleanup from the old
signing flow:

  • A couple of now-unused files.
  • Some type refinements and specificity improvements.
  • Dropping keyring-path specific stuff in Popup.tsx.

And of course the removal of the feature flag itself.

Along the way I also fixed a couple of components that
were using React.FC and export const in a way that
we don't do anywhere else.

Testing

  • Make sure transaction signing continues to work
    correctly for Ledger and non-Ledger flows :)

Closes #3449 .

Latest build: extension-builds-3475 (as of Mon, 19 Jun 2023 09:38:28 GMT).

In particular, the data signature detail components had an
`excludeHeader` prop used for the old flow. This prop is now gone, and
invoking components have been converted to our standard function
declaration style.

Also nuked two *DetailPanel components that were no longer in use and
were consuming the old API.
This is no longer needed now that the updated signing UI is the only
signing UI.
The new signing UI flow gives us some guarantees about things being set
when these pages are rendered, and handles certain things being unset
internally. This lets us drop some top-level code and lean on the
Signing component for most of the work.
In particular, a lot of Ledger stuff that was potentially-undefined in
the past is now known to be set because it gets called from code flows
that have already specialized by the time it gets called.
Eventually this can probably resolve through custom networks as well,
but this is a reasonable start vs having a one-off pseudo-map with only
Ethereum covered.
Copy link
Contributor

@jagodarybacka jagodarybacka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is fine, will proceed to test it manually

const { t } = useTranslation("translation", { keyPrefix: "signing.EIP4361" })

const chainName =
NETWORK_BY_CHAIN_ID[signingData.chainId.toString()]?.name ?? "Unknown"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add "unknown" to translations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah agreed… Could even use signTransaction.unknownNetwork tbh, but the PR already started to get away from me a little 😬

) : (
<>
<div className="label header">
{internal ? t("signatureRequired") : t("dappSignatureRequest")}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove dappSignatureRequest form messages.json. It is no longer used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jagodarybacka jagodarybacka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, manually tested:

  • signing messages with and without Ledger
  • send with and without Ledger
  • swap with and without Ledger
    🚀

@jagodarybacka jagodarybacka merged commit b2e5f3d into main Jun 19, 2023
@jagodarybacka jagodarybacka deleted the full-sweep branch June 19, 2023 09:40
@jagodarybacka jagodarybacka mentioned this pull request Jun 22, 2023
jagodarybacka added a commit that referenced this pull request Jun 23, 2023
## What's Changed
* Repeater Connection: Forward requests to new default when default is
switched off during dApp connection flow by @Shadowfiend in
#3462
* Auto-Not-So-Matic: Fix two matic.network URLs to polygon.technology by
@Shadowfiend in #3483
* v0.38.0 by @kkosiorowska in
#3480
* Case Dismissed: Forcibly show DAppConnectionInfoBar popover on first
dApp connection by @Shadowfiend in
#3464
* Add Hardhat Fork Functionality by @0xDaedalus in
#3247
* Faded Jeans: Rename fadeIn class to fade_in by @Shadowfiend in
#3485
* Fix issue for discovery transaction hash by @kkosiorowska in
#3458
* Full Sweep: Drop the USE_UPDATED_SIGNING_UI feature flag by
@Shadowfiend in #3475
* Token Discovery - Remap redux asset balances by @hyphenized in
#3195
* Make specific warnings for adding custom asset by @kkosiorowska in
#3478
* Run NFTs e2e tests on a controlled wallet address by
@michalinacienciala in #3487
* v0.38.1 by @jagodarybacka in
#3484


**Full Changelog**:
v0.38.1...v0.39.0
Latest build:
[extension-builds-3496](https://github.com/tahowallet/extension/suites/13792957673/artifacts/764738599)
(as of Thu, 22 Jun 2023 14:27:32 GMT).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature flag cleanup
3 participants