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: component SendAddressInput #376

Merged
merged 9 commits into from
Nov 9, 2023
Merged

fix: component SendAddressInput #376

merged 9 commits into from
Nov 9, 2023

Conversation

alexruzenhack
Copy link
Contributor

@alexruzenhack alexruzenhack commented Nov 1, 2023

Acceptance Criteria

  • Change the component class to component function
  • Extend validateAddress utility function to receive the network as
    second argument
  • Get the network from redux state
ds-refactor-send-address-input-clip.mp4

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

src/utils.js Show resolved Hide resolved
src/screens/SendAddressInput.js Outdated Show resolved Hide resolved
src/constants.js Outdated Show resolved Hide resolved
@@ -434,7 +435,7 @@ msgid "Try again"
msgstr ""

#: src/screens/LoadWalletErrorScreen.js:21
#: src/screens/PinScreen.js:265
#: src/screens/PinScreen.js:268
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this line being changed? You didn't change anything in PinScreen, am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! I ran the translation script to get it updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, so dev was outdated, which is weird, can you please check by running the script on the unchanged dev branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will run, but it may have happened during the many rebases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked your script in the dev:

  1. extract the patch:
git format-patch -1 90607cb1f682eb4fe2d6ae8330cb7155e1254221
  1. apply:
git apply 0001-refactor-check_pot-now-checks-for-missing-translatio.patch
  1. run check:
make check_missing_translations
  1. output:
✔ [ttag] translations extracted to /var/.../new.pot
check_pot: Checking missing translations on pot file...

locale/texts.pot Show resolved Hide resolved
@andreabadesso
Copy link
Contributor

This is actually a fix, not a refactor, right?

- Change the component class to component function
- Extend validateAddress utility function to receive the network as
  second argument
- Get the network from redux state
@alexruzenhack alexruzenhack changed the title refactor: component SendAddressInput fix: component SendAddressInput Nov 6, 2023
src/utils.js Outdated Show resolved Hide resolved
src/screens/SendAddressInput.js Outdated Show resolved Hide resolved
alexruzenhack and others added 2 commits November 9, 2023 13:33
Co-authored-by: Pedro Ferreira <pedro@hathor.network>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants