Skip to content

feat: add qr code to register nano contract #533

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

Merged
merged 8 commits into from
Aug 26, 2024

Conversation

alexruzenhack
Copy link
Contributor

@alexruzenhack alexruzenhack commented Aug 15, 2024

Acceptance Criteria

  • It should create a navigation stack to contain:
    • A screen to read QR Code
    • A screen to inform the nano contract to register, which should be fulfilled by QR Code value read
    • A screen to ask camera permission
  • It should create a screen to read QR Code of Nano Contract ID
  • It should adjust the NanoContractRegisterScreen to make it accept a Nano Contract ID on its route param

Registering Nano Contract by QR Code reading:

RPReplay_Final1723759500.mov

Closes: #519

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.

Copy link
Contributor

@andreabadesso andreabadesso left a comment

Choose a reason for hiding this comment

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

Missing translations

@@ -21,6 +21,7 @@ import {
useSelector
} from 'react-redux';
import { t } from 'ttag';
import QRCode from 'react-native-qrcode-svg';
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused

<QRCodeReader
navigation={navigation}
onSuccess={onSuccess}
bottomText={t`Scan the token QR code`}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing translation for this file

}}
>
<HathorHeader
title={t`Register Nano Contract`.toUpperCase()}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to Nano Contract Registration? Or change the one in the previous screen to Register Nano Contract so they're consistent when navigating?

@alexruzenhack alexruzenhack force-pushed the feat/nc-add-qr-code-reader branch from 6fdcf43 to a9f7595 Compare August 20, 2024 15:05
@alexruzenhack alexruzenhack force-pushed the feat/nc-add-qr-code-reader branch from a9f7595 to bae7e18 Compare August 22, 2024 22:36

#: src/screens/NanoContractRegisterQrCodeScreen.js:63
msgid "Scan the nano contract ID QR code"
msgstr "Leia o QR code Nano Contract ID"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
msgstr "Leia o QR code Nano Contract ID"
msgstr "Leia o QR code do Nano Contract ID"

#: src/screens/NanoContractRegisterQrCodeScreen.js:26
#: src/screens/RegisterToken.js:27 src/screens/SendScanQRCode.js:87
msgid "Manual info"
msgstr "Ручной ввод"
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this an automatic translation? Maybe remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this was already there. I believe it was only moved.

@alexruzenhack alexruzenhack merged commit c3223ce into master Aug 26, 2024
1 check passed
@alexruzenhack alexruzenhack deleted the feat/nc-add-qr-code-reader branch August 26, 2024 18:00
@tuliomir tuliomir mentioned this pull request Oct 31, 2024
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.

Add QR code reader to register a nano contract
3 participants