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

Base redesign #699

Merged
merged 121 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
d97ad4b
Install webpack-plugin-vuetify
lserra-iov Apr 24, 2024
8ea510c
Configure plugin
lserra-iov Apr 24, 2024
9c61921
Update vuetify to latest version
lserra-iov Apr 26, 2024
76203aa
Add theme and default styles
lserra-iov Apr 26, 2024
3968d86
Delete old styles
lserra-iov Apr 26, 2024
bf1f5d3
Redesign home
lserra-iov Apr 29, 2024
504b358
Internacionalization plugin
ronaldsg20 Apr 30, 2024
b8c0b90
Remove unused assets
lserra-iov Apr 30, 2024
7e8f24a
Add wallet connection
lserra-iov May 9, 2024
8b68c46
refactor: creating redesign view of tx success
annipi May 9, 2024
4da5b50
feature: pegin tx success
annipi May 9, 2024
f6ed589
feature: pegout tx success
annipi May 14, 2024
fc2a81d
Redesign pegin create page
lserra-iov May 14, 2024
9626d03
feature flag pegin
ronaldsg20 May 15, 2024
1bfdc7c
Refactor use of features on pegout with store
ronaldsg20 May 15, 2024
9f5e286
refactor: redesing pegin wallets
annipi May 15, 2024
44f7f2b
Add pegin confirmation summary
lserra-iov May 16, 2024
3804373
Light mode improvements
ronaldsg20 May 15, 2024
0980373
styles adjustment light mode
ronaldsg20 May 17, 2024
0cae586
setting version 2.0
alexjavabraz May 21, 2024
b0e7748
Redesign pegout page
lserra-iov May 22, 2024
78185aa
Add missing styles and rename file
lserra-iov May 22, 2024
3fd138f
features pegin
ronaldsg20 May 27, 2024
7ed8aed
Add native pegout flow
lserra-iov May 27, 2024
ca56883
refactor: ledger steps redesign
annipi May 27, 2024
9207eb5
refactor: status redesign
annipi May 23, 2024
499779c
fix: overlaping recipient address
annipi May 30, 2024
471a6b3
fix: replacing deprecated substr
annipi May 30, 2024
1acc4c1
Change tc position
lserra-iov May 29, 2024
7f76d47
Add features to pegout flow
lserra-iov May 29, 2024
72198fd
refactor: standardized steps component
annipi May 30, 2024
39ef601
Updating pegin features with the specified values
ronaldsg20 May 30, 2024
68b512c
Fix type issue on fee getter
ronaldsg20 May 30, 2024
9affc0d
Fix min-max pegout
lserra-iov Jun 4, 2024
576092f
refactor: new pegin status
annipi Jun 5, 2024
1099d60
fix: btc and rbtc inverted
annipi Jun 6, 2024
6508591
fix: btc and rbtc labels inverted
annipi Jun 6, 2024
9a4f029
fix details on pegin cards
ronaldsg20 Jun 4, 2024
1e876ea
Add USD value for pegin options
ronaldsg20 Jun 12, 2024
4e880ec
min-max button for pegin form
ronaldsg20 Jun 5, 2024
680fcb2
Fix max amount validation
ronaldsg20 Jun 11, 2024
da632f9
Change rbtc icon
lserra-iov Jun 12, 2024
13edb61
Add status summary
lserra-iov Jun 6, 2024
785cd94
Add placeholder and disable links
lserra-iov Jun 7, 2024
20a3441
Include pegin sender address
lserra-iov Jun 10, 2024
80b2f58
Fix wider column issue
lserra-iov Jun 12, 2024
c6fa315
refactor: pegout status
annipi Jun 6, 2024
ac27136
Standarize modals
ronaldsg20 Jun 7, 2024
f41f144
Update terms value on dialog
ronaldsg20 Jun 13, 2024
6b9fa89
refactor: status bar for errors
annipi Jun 12, 2024
e8104b4
refactor: summary por flyover on status
annipi Jun 13, 2024
703549d
Add full balace on hover
ronaldsg20 Jun 17, 2024
2da4fe8
Fix balance load on connection
ronaldsg20 Jun 18, 2024
bfe1bcb
refactor: text on mobile
annipi Jun 17, 2024
801b924
fix: if time is negative show message
annipi Jun 18, 2024
7ed6a22
Fix pegin details
lserra-iov Jun 19, 2024
29496a0
Add pegin quotes loader
lserra-iov Jun 19, 2024
52ecc6c
Get api version once
lserra-iov Jun 19, 2024
60f6a5a
refactor: text on pegout and pegin options, title on home
annipi Jun 17, 2024
019df2f
refactor: include network name on env implementation
annipi Jun 18, 2024
5a292c4
fix: remove chip with network name
annipi Jun 21, 2024
d17729a
refactor: gradient on progress bar
annipi Jun 24, 2024
720ad27
refactor: hiding receiver info on summary when error ocurred
annipi Jun 26, 2024
6038860
Refactor summary
lserra-iov Jun 24, 2024
82a2580
okr(): add support to oidc configuration for staging-testnet
ivanIOV Jun 19, 2024
0a0932e
okr(): add support to oidc configuration for all envs
ivanIOV Jun 25, 2024
0419587
Add features to cookie storage
ronaldsg20 Jun 28, 2024
7290c25
refactor: updating max value for pegout to 10
annipi Jun 24, 2024
d26ce3b
refactor: update twowp_api_max_amount_allowed_in_satoshi environment …
annipi Jun 28, 2024
0b8e742
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 18, 2024
319dc96
Add flyover quotes for pegin
ronaldsg20 Jun 21, 2024
da95ad9
Add acceptPeginQuote and registerTx functions
ronaldsg20 Jun 21, 2024
cfb2626
Add FlyoverPegin store module
ronaldsg20 Jun 24, 2024
9a2d14c
Add actions and get quotes feature
ronaldsg20 Jun 26, 2024
179e792
Update quote selection and pegin native
ronaldsg20 Jun 26, 2024
c2cb49c
Accepting and broadcasting pegin flyover
ronaldsg20 Jun 27, 2024
06bb2c2
Add Rbtc link on main page
ronaldsg20 Jul 3, 2024
4812c59
refactor: home buttons border
annipi Jul 4, 2024
49c9728
refactor: move styles to scss file
annipi Jul 5, 2024
ee6cf93
feature: Adding terms and conditions as markdown on db
annipi Jul 8, 2024
8723ab3
fix: sonar cloud Security Hotspots
annipi Jul 9, 2024
f8c985c
Fixes
lserra-iov Jul 5, 2024
f0da9ac
Change confirm tx with hw wallets
lserra-iov Jul 11, 2024
e200f3f
Add loader
lserra-iov Jul 16, 2024
85f9929
Fix flyover pegin register, summary and status
lserra-iov Jul 17, 2024
93a1b7a
refactor: send button pegout
annipi Jul 15, 2024
a1120e4
fix: added hardcoded refund address for Leather PEGIN
annipi Jul 8, 2024
5802134
fix: removing console log
annipi Jul 11, 2024
d311a33
refactor: modals and tx error modals styled to new app version
annipi Jul 16, 2024
4adeaa6
Update btn label
annipi Jul 19, 2024
67ee6ff
refactor: features and terms and condition removed from cookie
annipi Jul 19, 2024
155ef5e
Set min/max pegin allowed amounts from env vars
lserra-iov Jul 17, 2024
be24ab0
Use computed boundaries
lserra-iov Jul 22, 2024
03b6a63
Detect mobile device by browser user agent
lserra-iov Jul 19, 2024
5a8d604
fix: use LeatherProvider instead of window.btc
annipi Jul 24, 2024
21054f8
adding policy dialog
alexjavabraz Jul 22, 2024
f66b326
remove console.log
alexjavabraz Jul 22, 2024
d0af3da
removing unnecessary logs
alexjavabraz Jul 23, 2024
7a3a932
fix: change link color
annipi Jul 25, 2024
464bdee
fix: remove sonarcloud 13.9% Duplication on New Code
annipi Jul 26, 2024
760ac83
Update confirmation page for Leather
ronaldsg20 Jul 26, 2024
aafd0d6
Fixing images and lidh mode issues on confirm view
ronaldsg20 Jul 26, 2024
5e8450e
Fix flyover data shown in the total fees
ronaldsg20 Jul 26, 2024
ca78b51
Minor fixes
lserra-iov Jul 30, 2024
53eb19d
Use latest flyover-sdk version
lserra-iov Jul 30, 2024
867dc52
Fix dev server config
lserra-iov Jul 31, 2024
a33fd90
Update the quote difference interaction with style change on option
ronaldsg20 Aug 1, 2024
75898ce
Fix updating option bug
ronaldsg20 Aug 1, 2024
940461f
Fix bold names on pegout option
ronaldsg20 Aug 5, 2024
c688ebd
browserslist install
ronaldsg20 Aug 1, 2024
3852cb2
Fix provider name registration
lserra-iov Aug 2, 2024
e6976ee
Use connected wallet by default
lserra-iov Aug 5, 2024
7f21c08
Change tx time shown
lserra-iov Aug 1, 2024
16dc3f2
feat: add copy to clipboard option to summary fields
annipi Aug 5, 2024
93c86ca
fix: removing console.log
annipi Aug 5, 2024
07af323
fix: keep web3 rlogin address on reload
annipi Aug 6, 2024
c75503c
Fix back btn inconsistencies on the form
ronaldsg20 Aug 6, 2024
e721f5e
Fix back interactions filling the form and input debounce
ronaldsg20 Aug 6, 2024
3307e0d
Fix typing errors on timeout definition
ronaldsg20 Aug 6, 2024
1bf73fe
fix: policy to privacy policy
annipi Aug 6, 2024
ba394a4
fix: flyover fast option link
annipi Aug 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.local.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VUE_APP_RSK_EXPLORER=https://explorer.testnet.rsk.co/

# replace VALUE with the clarity id for the environment the app is being deployed to.
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.005
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=1
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
#VUE_APP_CLARITY_ID=VALUE

## fee boundaries
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports = {
ignoreUrls: true,
}],
'vuejs-accessibility/mouse-events-have-key-events': 'off',
'import/extensions': 'off',
'global-require': 'off',
},
overrides: [
{
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy_MainNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
checkout-and-build:
runs-on: ubuntu-latest
environment: mainnet
permissions:
id-token: write
contents: read

steps:
- name: Get tag name.
id: get_tag_name
Expand Down Expand Up @@ -41,13 +46,14 @@ jobs:
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
npm run-script build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.MAINNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.MAINNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.MAINNET_ROLE_ARN }}
aws-region: us-east-1

- name: Deploy site to S3
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy_TestNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
checkout-and-build:
runs-on: ubuntu-latest
environment: testnet
permissions:
id-token: write
contents: read

steps:
- name: Get tag name.
id: get_tag_name
Expand Down Expand Up @@ -41,13 +46,14 @@ jobs:
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
npm run-script build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.TESTNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TESTNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: us-east-1

- name: Deploy site to S3
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy_staging_MainNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
checkout-and-build:
runs-on: ubuntu-latest
environment: staging-mainnet
permissions:
id-token: write
contents: read

steps:
- name: Get tag name.
id: get_tag_name
Expand Down Expand Up @@ -41,13 +46,14 @@ jobs:
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
npm run-script build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.STAGING_MAINNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.STAGING_MAINNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.STAGING_MAINNET_ROLE_ARN }}
aws-region: us-east-1

- name: Deploy site to S3
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/deploy_staging_TestNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
checkout-and-build:
runs-on: ubuntu-latest
environment: staging-testnet
permissions:
id-token: write
contents: read

steps:
- name: Get tag name.
id: get_tag_name
Expand All @@ -16,7 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: qa
ref: qa

- name: Setup NodeJS
uses: actions/setup-node@v3
Expand All @@ -41,14 +46,15 @@ jobs:
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
npm run-script build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.STAGING_TESTNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.STAGING_TESTNET_AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.STAGING_TESTNET_ROLE_ARN }}
aws-region: us-east-1

- name: Deploy site to S3
Expand Down
42 changes: 22 additions & 20 deletions ENV_VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@
This table was created to guide and centralize the **environment variables** necessary for correct execution.
The value of these variables are used in **environment-variables.ts** file.

|NAME | DEV VALUE | DETAILS |
|--------------------------------------------|-------------|-----------------------------------------------------------------------------------------------------------|
|VUE_APP_COIN | `test / main` | The network that will be used for the bitcoin library. Accepted values are `test` or `main` |
|VUE_APP_MANIFEST_EMAIL | | |
|VUE_APP_MANIFEST_APP_URL | | Trezor connect Manifest is described [here](https://github.com/trezor/connect/blob/develop/docs/index.md) |
|VUE_APP_API_BASE_URL | | URL of the API (2wp-api) which is the BackEnd |
|VUE_APP_RSK_NODE_HOST | | RSK node URL to verify RSK data (e.g. POWpeg address |
|VUE_APP_CLARITY_ID | | A Clarity ID is uniquely generated identification for app usage metrics |
|VUE_APP_RSK_EXPLORER | | RSK EXPLORER URL used to verify the transaction status |
|VUE_APP_WALLET_ADDRESSES_HARD_STOP | `100` | Maximum number of addresses derived from wallet |
|VUE_APP_WALLET_ADDRESS_PER_CALL | `5` | Number of addresses obtained per derivation call |
|VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC | `0.004` | 0,004 Minimum allowed value for a PEGOUT transaction |
|VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC | `1` | 1 Maximum allowed value for a PEGOUT transaction |
|VUE_APP_BURN_DUST_VALUE | `30000` | Max value to burn in the tx fee |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_FAST | `8` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_AVG | `4` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_SLOW | `1` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_LBC_ADDRESS | `0xc2A630c053D12D63d32b025082f6Ba268db18300` | Liquidity bridge contract address on the flyover protocol |
|VUE_APP_DEBUG_MODE | `false` | enable developer messages for debuging |
|NAME | DEV VALUE | DETAILS |
|--------------------------------------------|----------------------------------------------|-----------------------------------------------------------------------------------------------------------|
|VUE_APP_COIN | `test / main` | The network that will be used for the bitcoin library. Accepted values are `test` or `main` |
|VUE_APP_MANIFEST_EMAIL | | |
|VUE_APP_MANIFEST_APP_URL | | Trezor connect Manifest is described [here](https://github.com/trezor/connect/blob/develop/docs/index.md) |
|VUE_APP_API_BASE_URL | | URL of the API (2wp-api) which is the BackEnd |
|VUE_APP_RSK_NODE_HOST | | RSK node URL to verify RSK data (e.g. POWpeg address |
|VUE_APP_CLARITY_ID | | A Clarity ID is uniquely generated identification for app usage metrics |
|VUE_APP_RSK_EXPLORER | | RSK EXPLORER URL used to verify the transaction status |
|VUE_APP_WALLET_ADDRESSES_HARD_STOP | `100` | Maximum number of addresses derived from wallet |
|VUE_APP_WALLET_ADDRESS_PER_CALL | `5` | Number of addresses obtained per derivation call |
|VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC | `0.004` | 0,004 Minimum allowed value for a PEGOUT transaction |
|VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC | `10` | 10 Maximum allowed value for a PEGOUT transaction |
|VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC | `0.005` | Minimum allowed value for a PEGIN transaction |
|VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC | `10` | Maximum allowed value for a PEGIN transaction |
|VUE_APP_BURN_DUST_VALUE | `30000` | Max value to burn in the tx fee |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_FAST | `8` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_AVG | `4` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_SLOW | `1` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_LBC_ADDRESS | `0xc2A630c053D12D63d32b025082f6Ba268db18300` | Liquidity bridge contract address on the flyover protocol |
|VUE_APP_DEBUG_MODE | `false` | enable developer messages for debuging |

## Example for .env.local.test file

Expand All @@ -36,7 +38,7 @@ VUE_APP_RSK_EXPLORER=https://explorer.testnet.rootstock.io/
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=5
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.005
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=1
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_BURN_DUST_VALUE=30000
VUE_APP_MIN_FEE_SAT_PER_BYTE_FAST=8
VUE_APP_MIN_FEE_SAT_PER_BYTE_AVG=4
Expand Down
Loading
Loading