Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 383
  • 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 2 weeks ago by Olivia Madrid@omadrid
Report abuse

Wallet token onboarding and settings

  • Overview 3
  • Commits 26
  • Pipelines 2
  • Changes 111
0/1 thread 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 2 weeks ago by Olivia Madrid
Request to merge token-onboarding-2331 into epic/wallet-80
The source branch is 3 commits behind the target branch
Open in Web IDE
Pipeline #103115403 passed with warnings for 442585c6 on token-onboarding-2331
              Requires 2 more approvals from Deployers and QA. Approved by
              Marcelo Rivera
              Marcelo Rivera
              Guy Thouret
              Guy Thouret
              Mark Harding
              Mark Harding
              Juan Manuel Solaro
              Juan Manuel Solaro
              Ben Hayward
              Ben Hayward
              Rami Albatal
              Rami Albatal
              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 · 1 week ago
                Developer

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

              • Marcelo Rivera
                Marcelo Rivera @eiennohi · 6 minutes ago
                Developer

                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 5 minutes ago
              • Marcelo Rivera
                Marcelo Rivera @eiennohi started a thread on the diff 6 minutes 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 · 6 minutes 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

                • Please register or sign in to reply
              • Marcelo Rivera @eiennohi approved this merge request 6 minutes ago

                approved this merge request

              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
              Guy Thouret
              user avatar
              Mark Harding
              user avatar
              Juan Manuel Solaro
              user avatar
              Ben Hayward
              user avatar
              Rami Albatal
              user avatar
              Xander Miller
              user avatar
              Emiliano Balbuena
              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