Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 353
  • 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

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

Wallet token onboarding and settings

  • Overview 12
  • Commits 7
  • Pipelines 4
  • Changes 77
2/3 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 13 hours ago by Olivia Madrid
Request to merge token-onboarding-2331 into epic/wallet-80
The source branch is 7 commits behind the target branch
Open in Web IDE
Pipeline #106956669 failed for 632e8157 on token-onboarding-2331
              Requires 3 more approvals from Devs, Deployers, and QA.
              Ben Hayward
              Ben Hayward
              Emiliano Balbuena
              Emiliano Balbuena
              Marcelo Rivera
              Marcelo Rivera
              Xander Miller
              Xander Miller
              Guy Thouret
              Guy Thouret
              Ready to be merged automatically. Ask someone with write access to this repository to merge this request

              Deletes source branch

              • Olivia Madrid @omadrid added 1 commit 2 weeks ago

                added 1 commit

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

                Compare with previous version

              • Olivia Madrid @omadrid changed the description 2 weeks ago

                changed the description

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

                changed milestone to %Wallet Upgrade

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

                added scoped labels

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

                mentioned in issue docs#23

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

                assigned to @eiennohi

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

                changed target branch from master to epic/wallet-80

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

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

                • Marcelo Rivera
                  Marcelo Rivera @eiennohi · 3 days ago
                  Developer
                  Resolved by Marcelo Rivera 2 days 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 2 days ago
                • Olivia Madrid
                  Olivia Madrid
                  Marcelo Rivera
                  Marcelo Rivera
                  Last reply by Marcelo Rivera 2 days ago
              • Marcelo Rivera
                Marcelo Rivera @eiennohi started a thread on the diff 3 days ago
                Last updated by Olivia Madrid 13 hours ago
                src/app/modules/wallet/v2/phone-verification/phone-verification.component.ts
                10 import {
                11 FormBuilder,
                12 AbstractControl,
                13 FormGroup,
                14 FormControl,
                15 } from '@angular/forms';
                16 import { FormToastService } from '../../../../common/services/form-toast.service';
                17 import { Client } from '../../../../services/api';
                18 import { Session } from '../../../../services/session';
                19
                20 @Component({
                21 selector: 'm-walletPhoneVerification',
                22 templateUrl: './phone-verification.component.html',
                23 changeDetection: ChangeDetectionStrategy.OnPush,
                24 })
                25 export class WalletPhoneVerificationComponent implements OnInit {
                • Marcelo Rivera
                  Marcelo Rivera @eiennohi · 3 days ago
                  Developer

                  We should allow closing the modal by clicking outside of it. The only way to close this modal if I don't want to go through the onboarding process right now is to reload the page

                • Olivia Madrid
                  Olivia Madrid @omadrid · 2 days ago
                  Developer

                  @eiennohi agreed... are you not seeing the "x" button in the top right? https://projects.invisionapp.com/share/KWU1X9IEB2U#/screens/396078538

                • Marcelo Rivera
                  Marcelo Rivera @eiennohi · 2 days ago
                  Developer

                  Whoops! missed it. I feel like it doesn't stand out too much. Anyways, it seems to be getting cropped when the scrollbar appears

                  image

                • Olivia Madrid
                  Olivia Madrid @omadrid · 14 hours ago
                  Developer

                  Hmm I'll add some more padding but I'm wondering why your scrollbar is visible? Because scrolling should be locked when the modal is visible

                • Marcelo Rivera
                  Marcelo Rivera @eiennohi · 14 hours ago
                  Developer

                  It appears but disabled. I tested on Chrome / Ubuntu 19.10

                • Olivia Madrid
                  Olivia Madrid @omadrid · 13 hours ago
                  Developer

                  Oh well - I added room for scrollbars just in case. Also:

                  • made the box shadow a tiny bit darker to increase visibility
                  • enabled closing by clicking outside the modal
                  Edited by Olivia Madrid 13 hours ago
                • Please register or sign in to reply
              • Marcelo Rivera @eiennohi approved this merge request 3 days ago

                approved this merge request

              • Marcelo Rivera @eiennohi unapproved this merge request 2 days ago

                unapproved this merge request

                • Marcelo Rivera
                  Marcelo Rivera @eiennohi · 2 days ago
                  Developer
                  Resolved by Olivia Madrid 13 hours ago

                  The verify code input and buttons are vertically misaligned:

                  image

                • Olivia Madrid
                  Olivia Madrid
                  Last reply by Olivia Madrid 13 hours ago
              • Olivia Madrid @omadrid added 15 commits 1 day 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 13 hours 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 13 hours ago

                marked as a Work In Progress from b045911f

              • Olivia Madrid @omadrid unmarked as a Work In Progress 13 hours ago

                unmarked as a Work In Progress

              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
              Ben Hayward
              user avatar
              Emiliano Balbuena
              user avatar
              Marcelo Rivera
              user avatar
              Xander Miller
              user avatar
              Guy Thouret
              user avatar
              Martin Santangelo
              user avatar
              Rami Albatal
              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