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

feat: add a param for empty wallet #25

Conversation

whck6
Copy link
Contributor

@whck6 whck6 commented Aug 27, 2024

Resolves #22

@whck6 whck6 changed the title tmp feat: add a param for empty wallet Aug 27, 2024
@whck6 whck6 force-pushed the feature/new-text-config-param-for-empty-wallet branch from 89495e2 to 7fa0ead Compare August 27, 2024 08:16
@whck6 whck6 marked this pull request as ready for review August 27, 2024 08:17
@whck6
Copy link
Contributor Author

whck6 commented Aug 27, 2024

I've added a new config it is called emptyWalletText.

@whck6
Copy link
Contributor Author

whck6 commented Aug 27, 2024

@Keyrxng Do you mind checking?

@Keyrxng
Copy link
Contributor

Keyrxng commented Aug 27, 2024

@whck6 Thanks for the PR.

Just so you know, this PR can't be merged until ubiquity/safe.ubq.fi#3 is complete as the infrastructure needed is not completely built yet. It may be best to choose another task without dependencies as it would be merged quicker.

You have correctly added a new config option but it's usage isn't right. emptyWalletText should be a string and it should be used to notify a user that they do not have a wallet registered.


@rndquu to keep it simple, why don't we just update the current comment to something like:

old: Please set your wallet address with the /wallet command first and try again.

suggested: If you have an ethereum wallet please register it using the /wallet command otherwise visit .... to register an account with us

I can't think how we'd choose which message to use if the flow is /wallet > !wallet > portal > /wallet. /register seems like a useless command if it only points them to the portal (because storage is handled on the UI). What do you think?

@rndquu
Copy link
Contributor

rndquu commented Aug 27, 2024

I can't think how we'd choose which message to use if the flow is /wallet > !wallet > portal > /wallet. /register seems like a useless command if it only points them to the portal (because storage is handled on the UI). What do you think?

Let's just make the text configurable and decide later on the exact text content.

@whck6 Regarding the PR, although it depends on ubiquity/safe.ubq.fi#3 we can still merge it since we appreciate the help of new contributors. A few notes:

  1. Why do we need this check?
  2. As Keyrxng already state the emptyWalletText param is expected to be of a string type (smth like emptyWalletText: T.String({ default: "Please set your wallet address with the /wallet command first and try again." })) and used here and (perhaps) here.

@Keyrxng Overall all text messages should be configurable in the end but right now we have the only use case for "EOA vs webauthn" registration flows.

@Keyrxng
Copy link
Contributor

Keyrxng commented Aug 27, 2024

@Keyrxng Overall all text messages should be configurable in the end but right now we have the only use case for "EOA vs webauthn" registration flows.

@rndquu my mistake I misunderstood things originally, confused myself as we had spoken about having two messages. Instead there will be only one "no wallet" message and it will be passed in via the config

@whck6
Copy link
Contributor Author

whck6 commented Aug 28, 2024

Updated.

@rndquu I am misunderstanding and removed it

Copy link
Contributor

@rndquu rndquu left a comment

Choose a reason for hiding this comment

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

The newly added emptyWalletText param should be used here and here.

@whck6
Copy link
Contributor Author

whck6 commented Aug 28, 2024

Updated. @rndquu

@rndquu rndquu self-requested a review August 28, 2024 14:06
@rndquu
Copy link
Contributor

rndquu commented Aug 28, 2024

Works fine. @whck6 Could you also update readme docs https://github.com/ubiquibot/command-start-stop/blob/development/README.md with the newly introduced parameter?

Signed-off-by: Wenhao Ho <[email protected]>
@whck6
Copy link
Contributor Author

whck6 commented Aug 29, 2024

Works fine. @whck6 Could you also update readme docs https://github.com/ubiquibot/command-start-stop/blob/development/README.md with the newly introduced parameter?

Updated.

@Keyrxng Keyrxng merged commit 78b19d2 into ubiquity-os-marketplace:development Aug 31, 2024
2 checks passed
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.

New text config param for empty wallet
3 participants