Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 344
  • Merge Requests 56
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Merge Requests
  • !698

Merged
Opened 3 weeks ago by Olivia Madrid@omadrid
Report abuse

Wallet token onboarding and settings

  • Overview 21
  • Commits 21
  • Pipelines 6
  • Changes 51
6/6 threads resolved

https://token-onboarding-2331.minds.io/v2wallet

See epic &80 for links to all mockups.

As a disclaimer, this is not intended to be a final draft. There are all sorts of things that need to be cleaned up, there's no need to spend time communicating them to me at this juncture - please assume I am aware of the obvious glitches.

What's inside

Most of the new stuff in here is related to token onboarding #2331. I've successfully gone through the onboarding steps (phone verification + on-chain address setup) locally.

You'll also see lots of things that are :construction: under construction :construction:, either because I haven't gotten to it yet or because the UX mockups have been in a state of flux. Here are my issues on the UX board.

Issues that have been started and for various reasons are less 'complete' than token onboarding include:

  • token settings #2057
  • transfer to on-chain modal #2367
  • Ether settings #2344

Testing twilio

To test the phone verification step in the token onboarding process locally, you need to make some backend changes.

  • in settings.php,
$CONFIG->set('twilio', [
  'account_sid' => '',//get this from Mark
  'auth_token' => '',//get this from Mark
  'from' => '+15005550006' // use this exact number
]);
  • in Core/Rewards/Join.php, go to the verify() function
    • directly after this line (around 116): $code = $this->twofactor->getCode($secret);, add error_log($code)
    • comment this line (around 120): throw new \Exception('voip phones not allowed');
    • now when you enter almost any phone number in token onboarding, the corresponding verification code will appear in your php logs. Use it to complete the phone verification step. Note: the handful of phone numbers that won't work are the magic 'To' numbers listed in Twilio's test credential docs.

Testing with fake data

Because of staging limitations you may wish to play around with fake data locally to see what's going on with various currency balances. To populate the fake data, in modules/wallet/v2/dashboard.service.ts uncomment line 79 (this.wallet = fakeData.wallet;).

@eiennohi sorry in advance

Edited 6 days ago by Olivia Madrid
Request to merge token-onboarding-2331 into epic/wallet-80
Pipeline #108181200 passed with warnings for 15255571 on token-onboarding-2331
              Merge request approved. Approved by
              Mark Harding
              Mark Harding
              Juan Manuel Solaro
              Juan Manuel Solaro
              Martin Santangelo
              Martin Santangelo
              Emiliano Balbuena
              Emiliano Balbuena
              Brian Hatchet
              Brian Hatchet
              Ben Hayward
              Ben Hayward

              Merged by Mark Harding 4 minutes ago

              The changes were merged into epic/wallet-80 with f4b79682

              The source branch has been deleted

              Pipeline #108467458 running for f4b79682 on epic/wallet-80
                          • Olivia Madrid @omadrid added 1 commit 3 weeks ago

                            added 1 commit

                            • 442585c6 - (feat): wallet v2 - upate timer

                            Compare with previous version

                          • Olivia Madrid @omadrid changed the description 3 weeks ago

                            changed the description

                          • Olivia Madrid @omadrid changed milestone to %Wallet Upgrade 3 weeks ago

                            changed milestone to %Wallet Upgrade

                          • Olivia Madrid @omadrid added Product::Wallet Squad::Blue Status::Awaiting Review scoped labels 3 weeks ago

                            added scoped labels

                          • Olivia Madrid @omadrid mentioned in issue docs#23 3 weeks ago

                            mentioned in issue docs#23

                          • Olivia Madrid @omadrid assigned to @eiennohi 3 weeks ago

                            assigned to @eiennohi

                          • Olivia Madrid @omadrid changed target branch from master to epic/wallet-80 3 weeks ago

                            changed target branch from master to epic/wallet-80

                          • Xander Miller
                            Xander Miller @xander-miller · 3 weeks ago
                            Developer

                            Looks like this can only be tested locally at the moment. No action taken.

                            • Marcelo Rivera
                              Marcelo Rivera @eiennohi · 1 week ago
                              Developer
                              Resolved by Marcelo Rivera 1 week ago

                              Just FYI, I had some issues with Twilio locally. This is the log from php-fpm:

                              fpm_1                           | NOTICE: PHP message: [guard] Twilio error: [HTTP 404] Unable to create record: The requested resource /2010-04-01/Accounts/not set/Messages.json was not found
                              

                              also, I had to disable phone verification from the backend as it detecting it as a voip phone, for some reason :thinking:

                              @omadrid did you have problems like this? maybe I have something misconfigured

                              also, the code looks fine. It only needs a bit of cleaning up :muscle:

                              Edited by Marcelo Rivera 1 week ago
                            • Olivia Madrid
                              Olivia Madrid
                              Marcelo Rivera
                              Marcelo Rivera
                              Last reply by Marcelo Rivera 1 week ago
                          • Marcelo Rivera
                            Marcelo Rivera @eiennohi started a thread on the diff 1 week ago
                            Resolved by Olivia Madrid 20 hours ago
                          • Marcelo Rivera @eiennohi approved this merge request 1 week ago

                            approved this merge request

                          • Marcelo Rivera @eiennohi unapproved this merge request 1 week ago

                            unapproved this merge request

                            • Marcelo Rivera
                              Marcelo Rivera @eiennohi · 1 week ago
                              Developer
                              Resolved by Olivia Madrid 6 days ago

                              The verify code input and buttons are vertically misaligned:

                              image

                            • Olivia Madrid
                              Olivia Madrid
                              Last reply by Olivia Madrid 6 days ago
                          • Olivia Madrid @omadrid added 15 commits 1 week ago

                            added 15 commits

                            • 442585c6...c8de38d6 - 14 commits from branch epic/wallet-80
                            • 381e34cb - Merge remote-tracking branch 'origin/master' into token-onboarding-2331

                            Compare with previous version

                          • Olivia Madrid @omadrid added 2 commits 6 days ago

                            added 2 commits

                            • b045911f - WIP so I can switch branches for buddy review
                            • 632e8157 - Enable closing of modal by clicking background

                            Compare with previous version

                          • Olivia Madrid @omadrid marked as a Work In Progress from b045911f 6 days ago

                            marked as a Work In Progress from b045911f

                          • Olivia Madrid @omadrid unmarked as a Work In Progress 6 days ago

                            unmarked as a Work In Progress

                            • Marcelo Rivera
                              Marcelo Rivera @eiennohi · 3 days ago
                              Developer
                              Resolved by Olivia Madrid 20 hours ago

                              Scrollbar appears when opening the country dropdown: image

                            • Olivia Madrid
                              Olivia Madrid
                              Last reply by Olivia Madrid 2 days ago
                            • Marcelo Rivera
                              Marcelo Rivera @eiennohi · 3 days ago
                              Developer
                              Resolved by Marcelo Rivera 1 day ago

                              If you input a wrong number and press enter, the button gets disabled, but it stays that way after modifying the number:

                              image

                              The component's state should probably reset on ngModelChange, or maybe just don't disable the button if there's something in the input

                              Edited by Marcelo Rivera 3 days ago
                            • Olivia Madrid
                              Olivia Madrid
                              Marcelo Rivera
                              Marcelo Rivera
                              Last reply by Marcelo Rivera 1 day ago
                            • Marcelo Rivera
                              Marcelo Rivera @eiennohi · 3 days ago
                              Developer
                              Resolved by Olivia Madrid 20 hours ago

                              If you verify your phone number, after closing the modal, there's an issue with the layout where scrollbars disappear and there's a weird stretching effect on the last panel:

                              image

                              here I moved the dev console further down and the graph stretched (might not be that obvious in the screenshot):

                              image

                              Edited by Marcelo Rivera 3 days ago
                            • Olivia Madrid
                              Olivia Madrid
                              Marcelo Rivera
                              Marcelo Rivera
                              Last reply by Olivia Madrid 23 hours ago
                          • Olivia Madrid @omadrid added 1 commit 1 day ago

                            added 1 commit

                            • 15255571 - remove no-scroll class when modal is closed via input from parent component

                            Compare with previous version

                          • Olivia Madrid @omadrid resolved all threads 20 hours ago

                            resolved all threads

                          • Mark Harding @markeharding approved this merge request 4 minutes ago

                            approved this merge request

                          • Mark Harding @markeharding merged 4 minutes ago

                            merged

                          • Mark Harding @markeharding mentioned in commit f4b79682 4 minutes ago

                            mentioned in commit f4b79682

                          Please register or sign in to reply
                          Assignee
                          Marcelo Rivera's avatar
                          Marcelo Rivera @eiennohi
                          Wallet Upgrade
                          Milestone
                          Wallet Upgrade
                          Time tracking
                          No estimate or time spent
                          3
                          Labels
                          Product::Wallet Squad::Blue Status::Awaiting Review
                          Lock merge request
                          Unlocked
                          11
                          11 participants
                          user avatar
                          Juan Manuel Solaro
                          user avatar
                          Martin Santangelo
                          user avatar
                          Emiliano Balbuena
                          user avatar
                          Brian Hatchet
                          user avatar
                          Ben Hayward
                          user avatar
                          Rami Albatal
                          user avatar
                          Xander Miller
                          Reference: minds/front!698

                          Now you can access the merge request navigation tabs at the top, where they’re easier to find.

                          More information and share feedback