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

Feature/bugfix/amount type #18

Closed
wants to merge 169 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
8e13f7e
Setting project's base commit
mesirendon Nov 6, 2020
6574a49
Starting project using TypeScript
mesirendon Nov 17, 2020
8b1006f
Adding vuetify to ts project
annipi Nov 17, 2020
c1f5fb1
Adding home components
annipi Nov 17, 2020
e662d70
Adding all views to select bitcoin wallet
annipi Nov 19, 2020
3f88f94
Adding Ledger Form
annipi Dec 9, 2020
f1b196f
Merge branch 'feature/home-ts' into develop
annipi Dec 10, 2020
aa4cbd1
Updating vue config
ronaldsg20 Dec 10, 2020
8ded0a1
Adding Transaction status view
annipi Dec 15, 2020
5f30af4
Adding traking id pop up
annipi Dec 15, 2020
253e276
Merge branch 'feature/ledger-flow' into develop
annipi Dec 15, 2020
d7f0a8a
Adding vuex config
ronaldsg20 Jan 12, 2021
1583cb2
Trezor service
ronaldsg20 Jan 14, 2021
c32d22b
Redesigning top component
annipi Jan 18, 2021
63d1f7c
txBuilder adn signer
ronaldsg20 Jan 18, 2021
e548573
adding derivation path array from path
ronaldsg20 Jan 19, 2021
45ad08c
adding the createPegintx mock of the API
ronaldsg20 Jan 21, 2021
80dcf3c
Adding Trezor flow
annipi Jan 21, 2021
616c93a
Merge branch 'feature/trezor-flow-design' into develop
annipi Jan 21, 2021
faaaa34
Merge branch 'develop' into feature/apiStore
annipi Jan 21, 2021
3249f5d
Integrating trezor Service into trezor pegin flow
annipi Jan 22, 2021
b78a393
Adding Trezor connected and disconnected events
annipi Jan 28, 2021
c19597f
updatin store with sessionid and peginConfiguration
ronaldsg20 Feb 12, 2021
3f1c8ad
Merge branch 'feature/apiStore' into develop
ronaldsg20 Feb 12, 2021
0e1e145
Fixing spacing on some view of trezor pegin flow
annipi Feb 12, 2021
ba644da
Including api service and fixing style
annipi Feb 23, 2021
82f2862
Improvements on the pegin form
annipi Mar 3, 2021
fa17299
Merge branch 'feature/ui-fixes' into develop
ronaldsg20 Mar 4, 2021
de28042
Fixing types warnings
ronaldsg20 Mar 4, 2021
755b482
updating consumed endpoints
ronaldsg20 Mar 4, 2021
ab98e17
Adding event to consume /tx-fee
annipi Mar 5, 2021
3d69142
unifying constants
ronaldsg20 Mar 5, 2021
03ce145
Merge branch 'feature/getPeginTx' of github.com:rsksmart/2wp-app into…
ronaldsg20 Mar 5, 2021
f872de3
updating form values
ronaldsg20 Mar 5, 2021
b74bb65
updating trezorService
ronaldsg20 Mar 8, 2021
d18acb2
Merge branch 'feature/getPeginTx' into develop
ronaldsg20 Mar 8, 2021
6dc0460
Adding integration with tx-fee and pegin-tx
annipi Mar 8, 2021
ab4303f
Merge branch 'feature/getPeginTx' of github.com:rsksmart/2wp-app into…
annipi Mar 8, 2021
7587ddc
Merge branch 'feature/getPeginTx' into develop
annipi Mar 8, 2021
894f4af
Merge branch 'develop' of github.com:rsksmart/2wp-app into develop
annipi Mar 8, 2021
2e554d9
Sign trezor tx
ronaldsg20 Mar 9, 2021
7063d76
Adding web3 wallet interaction and fees into form
annipi Mar 9, 2021
ed16242
fixing trezor input
ronaldsg20 Mar 9, 2021
434c38b
Merge branch 'feature/signPeginTx' into develop
ronaldsg20 Mar 9, 2021
1c45b97
Merge branch 'feature/web-wallet' into develop
ronaldsg20 Mar 9, 2021
8e2397b
Updating store for web3 support
ronaldsg20 Mar 10, 2021
dbbc287
Amount form validations
annipi Mar 10, 2021
9b99317
Merge branch 'feature/peginInproves' into feature/form-validations
annipi Mar 10, 2021
9eab3fb
Adding Transaction Status view and Fixing Confirm Tx
annipi Mar 16, 2021
4a83eb4
Merge branch 'feature/form-validations' into develop
annipi Mar 17, 2021
7f5f033
broadcast endpoint integration
ronaldsg20 Mar 18, 2021
c585c4e
Adding ledger flow
annipi Mar 18, 2021
0dcf54e
Removing linter warnings
annipi Mar 18, 2021
9fc40d0
Merge branch 'feature/form-validations' into develop
annipi Mar 18, 2021
08713e4
Merge branch 'develop' into feature/ledger-flow
annipi Mar 18, 2021
f765567
Fixing TrackinId import and mergin with develop
annipi Mar 18, 2021
5a82395
Attepmting to select multiple addresess ledger
ronaldsg20 Mar 23, 2021
22f5f44
including sonar scanning
ronaldsg20 Mar 25, 2021
5ff8ff3
Cleanning repository for trezor release
annipi Mar 31, 2021
b4f4eaa
Including docker implementation
ronaldsg20 Apr 5, 2021
6cfdcd0
Updating release files
ronaldsg20 Apr 5, 2021
5642c72
Merge branch 'feature/trezor-release' into develop
ronaldsg20 Apr 6, 2021
5225812
Fixing sonar bugs
ronaldsg20 Apr 6, 2021
ef0f8e4
Ledger request address
ronaldsg20 Apr 28, 2021
7f7a9c2
Ledger tx requirements
ronaldsg20 May 18, 2021
2a4ae97
update confirmledgerTx view
ronaldsg20 May 18, 2021
d65eddd
Fixing vuetify version
annipi May 18, 2021
1196fac
legacy tx sign ledger
ronaldsg20 May 26, 2021
087e9eb
Merge branch 'feature/ledgerjs' into develop
ronaldsg20 May 26, 2021
46df566
modify wallet dialog and device connect ledger trezor
May 28, 2021
dfea241
Merge branch 'feature/ux-ledger' into develop
May 28, 2021
482a46a
Merge branch 'develop' of github.com:rsksmart/2wp-app into develop
May 28, 2021
a0c2f93
updating form refund address
ronaldsg20 May 28, 2021
9ea5efb
Merge branch 'develop' of github.com:rsksmart/2wp-app into develop
ronaldsg20 May 28, 2021
9bc78f4
Fixing linter issueFixing linter issuess
ronaldsg20 May 28, 2021
749a185
add device connection error dialog
Jun 2, 2021
a48e246
Fixing style issues
ronaldsg20 Jun 2, 2021
94d5e06
Merge branch 'feature/connect-error-handling' into develop
ronaldsg20 Jun 2, 2021
5e27ffa
Form validations
ronaldsg20 Jun 2, 2021
e64f81c
updating form validations|
ronaldsg20 Jun 3, 2021
1967329
Merge branch 'feature/formValidations' into develop
ronaldsg20 Jun 4, 2021
4c7ef59
hotfix form validation
ronaldsg20 Jun 4, 2021
77b505b
Legacy ledger flow
ronaldsg20 Jun 8, 2021
6623beb
add error handling for broadcast errors
Jun 25, 2021
364bf93
add error handling on transaction error
Jun 25, 2021
6e29973
Segwit Transaccion ledger
ronaldsg20 Jun 28, 2021
2ca36b1
Merge branch 'develop' into feature/broadcast-error-handling
ronaldsg20 Jun 29, 2021
c4e8382
Integration of exception handlers
ronaldsg20 Jun 29, 2021
2e413fa
Merge branch 'feature/broadcast-error-handling' into develop
ronaldsg20 Jun 29, 2021
59409d7
change aligment in header
Jun 29, 2021
4cdfe79
delete show more and modify electrum wallet on wallet selection
Jun 29, 2021
72f9929
change steps required dialog text
Jun 29, 2021
6ca9632
Refactoring on code
mesirendon Jul 1, 2021
e8f3ff8
Status view
ronaldsg20 Jul 13, 2021
7f1078e
Status view
ronaldsg20 Jul 13, 2021
73cb92a
Fixing status bar aligment
annipi Jul 13, 2021
ba983b9
modify margins and texts of forms and summaries
Jul 13, 2021
7390adf
status view fixes
ronaldsg20 Jul 13, 2021
efc25e3
UI fixes
ronaldsg20 Jul 13, 2021
0ae8236
Merge branch 'feature/workflow-feedback-changes' into develop
ronaldsg20 Jul 13, 2021
ae0abf7
Merge branch 'develop' into feature/status
ronaldsg20 Jul 14, 2021
d8599ac
Merge branch 'feature/status' into develop
ronaldsg20 Jul 14, 2021
92c4c3a
UI-fixes integration
ronaldsg20 Jul 14, 2021
4942251
status UI fixes
ronaldsg20 Jul 15, 2021
ea4d6da
fixing code smells scanned
ronaldsg20 Jul 15, 2021
8cee618
Merge branch 'feature/ui-inprovements' into develop
ronaldsg20 Jul 15, 2021
f6d1635
Status update
ronaldsg20 Jul 28, 2021
89099bc
Ledger app check
ronaldsg20 Aug 12, 2021
6b062f0
Merge pull request #3 from rsksmart/feature/v1Fixes-ledger-app
ronaldsg20 Aug 13, 2021
aaef128
fix letter input on bitcoin form
Aug 11, 2021
782cb29
delete 'Extensive search' button
Aug 11, 2021
4454be5
fix broken floating point numbers
Aug 16, 2021
962b907
fix wrong float number calculation on tx summary
Aug 17, 2021
622c00c
change line feed type in file
Aug 17, 2021
1d6fa1e
Merge pull request #5 from rsksmart/feature/workflow-feedback-fixes
cazdemun Aug 18, 2021
2c17a3e
fix responsive address out of summary box for large resolutions (lg, xl)
Aug 9, 2021
eaecfaf
change native segwit availability on ledger
Aug 6, 2021
bf18c01
Adding coingecko api to the global BTc price
ronaldsg20 Aug 23, 2021
7c8d450
fixing the max and min amount on the global env
ronaldsg20 Aug 24, 2021
0844eea
Update wording balances
ronaldsg20 Aug 24, 2021
adc6b08
Update wording ledger balance
ronaldsg20 Aug 24, 2021
50db5b1
Updating constraint message on amount
ronaldsg20 Aug 24, 2021
94b76f1
Merge branch 'feature/v1Updates' of github.com:rsksmart/2wp-app into …
ronaldsg20 Aug 24, 2021
a4524bc
Merge pull request #2 from rsksmart/feature/v1Updates
josedahlquist Aug 24, 2021
43441d9
rename variables for clearer meaning
Aug 20, 2021
4b3adb4
add a button to go back to the form before confirming transaction
Aug 24, 2021
a4494dc
modify go back to form button
Aug 24, 2021
8af01f9
change sections text
Aug 24, 2021
03e36d9
Ledger warning message for unverified inputs
ronaldsg20 Aug 25, 2021
3075955
Fixing steps centering on confirm ledger transaction
ronaldsg20 Aug 25, 2021
1f51c14
Merge pull request #8 from rsksmart/feature/workflow-feedback-fixes-v2
josedahlquist Aug 25, 2021
56155cf
Merge branch 'develop' into feature/unverified-inputs-message
ronaldsg20 Aug 25, 2021
d49f74e
Merge pull request #7 from rsksmart/feature/unverified-inputs-message
josedahlquist Aug 25, 2021
3990c93
Status route query txId support
ronaldsg20 Aug 26, 2021
79db6b0
updating wording on status view
ronaldsg20 Aug 26, 2021
0dadd5a
fix responsive out of bounds tx id
Aug 26, 2021
a975812
change error message for locked ledger device
Aug 26, 2021
2c91447
fix connecting device steps alignment
Aug 26, 2021
9ca2ff2
Merge pull request #9 from rsksmart/feature/url-stuts
josedahlquist Aug 26, 2021
1dd15fa
Merge pull request #10 from rsksmart/feature/workflow-feedback-fixes-v3
josedahlquist Aug 26, 2021
71c6894
fixing errors on build
ronaldsg20 Aug 26, 2021
b488bb5
Merge pull request #11 from rsksmart/feature/bugfix-build
josedahlquist Aug 26, 2021
fe8d125
hide spinner on connect device errors
Aug 26, 2021
f93a803
hide spinner on confirm tx errors
Aug 26, 2021
2def7ce
Updating status view observations
ronaldsg20 Aug 27, 2021
df2c2b4
show rsk federation address on tx summary
Aug 27, 2021
bc4051f
Apply suggestions from code review
cazdemun Aug 27, 2021
476ccb4
fixing explorer based on network environment
ronaldsg20 Aug 27, 2021
9f11061
Merge pull request #12 from rsksmart/feature/status-fixes
pamgonzalez Aug 27, 2021
815c5bb
Merge pull request #13 from rsksmart/feature/workflow-feedback-fixes-v4
pamgonzalez Aug 27, 2021
558b39e
fix form selection steps
Aug 30, 2021
2ca679b
Updating Tx status plot
ronaldsg20 Aug 30, 2021
c14a33c
add loading spinner on send bitcoin form
Aug 30, 2021
5c125af
Merge pull request #15 from rsksmart/feature/workflow-feedback-fixes-v5
josedahlquist Aug 30, 2021
6af16c5
fixing percentage calculation
ronaldsg20 Aug 30, 2021
2538801
Fixing errors on percentage calculation
ronaldsg20 Aug 31, 2021
2594642
Fixing percentage calculation
ronaldsg20 Aug 31, 2021
c96e1b6
Merge pull request #14 from rsksmart/feature/status-ui
josedahlquist Aug 31, 2021
23c42b6
refactor insufficientAmount validation
Sep 1, 2021
96d7e73
fix automatic deletion on amount input
Sep 1, 2021
579b353
add regex validation for input amount
Sep 1, 2021
0f8d134
add real time validation for amount input
Sep 1, 2021
2a399e0
fix wrong initial balance
Sep 1, 2021
8a3a7b4
fix fee plus amount computation
Sep 1, 2021
7048e67
change usd decimals to 2
Sep 1, 2021
58198e2
add error messages for all cases on amount input
Sep 2, 2021
1cc16f9
fix error message not showing for some cases
Sep 2, 2021
9c34585
Merge pull request #16 from rsksmart/feature/form-fixes
josedahlquist Sep 2, 2021
adf8762
fixing amount Type returned on the API
ronaldsg20 Sep 2, 2021
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
16 changes: 16 additions & 0 deletions src/styles/_status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@
color: #000;
}

h5 {
font-style: normal;
font-weight: bold;
font-size: 10px;
line-height: 12px;
color: #00B43C;
}

h6 {
font-style: normal;
font-weight: bold;
font-size: 10px;
line-height: 12px;
color: #C4C4C4;
}

div {
font-weight: 500;
font-size: 14px;
Expand Down
48 changes: 40 additions & 8 deletions src/views/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@
:value="btcConfirmationsPercentage"
color="#00B43C"
height="17" />
<v-row class="d-flex justify-center mt-4 pa-0">
<h5>
{{leftBtcTime}} hours left
</h5>
</v-row>
<v-row class="d-flex justify-center mt-2 pa-0">
<h5>
{{btcConfirmations}}/100 confirmations
</h5>
</v-row>
</v-col>
<v-col cols="auto" class="pa-0 d-flex justify-center">
<div style="{ z-index: 2; position: absolute; margin-top: -30px; margin-right: 70px; }">
Expand All @@ -104,9 +114,14 @@
:value="rskConfirmationsPercentage"
color="#00B43C"
height="17"/>
<v-row class="d-flex justify-center mt-4 pa-0 mx-0">
<h6>
Can last up to 20 minutes
</h6>
</v-row>
<div class="d-flex justify-end">
<div style="{ z-index: 5; position: absolute;
margin-right: -75px; margin-top: -50px; }">
margin-right: -75px; margin-top: -75px; }">
<v-row>
<v-img class="d-flex justify-center"
src="@/assets/status/rbtc_green.png" height="78" contain/>
Expand Down Expand Up @@ -137,12 +152,14 @@

<script lang="ts">
import {
Vue, Component, Emit, Prop,
Component, Emit, Prop, Vue,
} from 'vue-property-decorator';
import { State } from 'vuex-class';
import TxSummary from '@/components/exchange/TxSummary.vue';
import { PegStatus } from '@/store/constants';
import ApiService from '@/services/ApiService';
import { PeginStatus } from '@/store/types';
import { PegInTxState } from '@/store/peginTx/types';

@Component({
components: {
Expand Down Expand Up @@ -170,26 +187,34 @@ export default class Status extends Vue {

btcConfirmationsPercentage = 0;

btcConfirmations = 0;

rskConfirmationsPercentage = 0;

isRejected = false;

leftBtcTime = '';

@Prop({ default: '' }) txIdProp!: string;

@State('pegInTx') peginTxState!: PegInTxState;

get showStatus() {
return !this.loading && !this.error && !!this.statusMessage;
}

@Emit()
refreshPercentage() {
let btcConfirmations = 0;
let rskConfirmations = 0;
const btcConfirmationsRequired = this.peginTxState.peginConfiguration.btcConfirmations;
if (this.pegInStatus) {
btcConfirmations = this.pegInStatus.btc.confirmations ?? 0;
rskConfirmations = this.pegInStatus.rsk.confirmations ?? 0;
this.btcConfirmations = this.pegInStatus.btc.confirmations ?? 0;
this.btcConfirmations = this.btcConfirmations > btcConfirmationsRequired
? btcConfirmationsRequired : this.btcConfirmations;
}
this.btcConfirmationsPercentage = btcConfirmations <= 100 ? btcConfirmations : 100;
this.rskConfirmationsPercentage = rskConfirmations <= 100 ? rskConfirmations : 100;
this.leftBtcTime = this.getTime((btcConfirmationsRequired - this.btcConfirmations) * 10);
this.btcConfirmationsPercentage = this.btcConfirmations <= btcConfirmationsRequired
? (this.btcConfirmations * 100) / btcConfirmationsRequired : 100;
this.rskConfirmationsPercentage = this.pegInStatus.status === PegStatus.CONFIRMED ? 100 : 0;
}

@Emit()
Expand Down Expand Up @@ -258,6 +283,13 @@ export default class Status extends Vue {
};
}

// eslint-disable-next-line class-methods-use-this
getTime(totalMinutes: number): string {
const hours = Math.floor(totalMinutes / 60);
const minutes = totalMinutes % 60;
return `${hours}:${minutes}`;
}

@Emit()
// eslint-disable-next-line class-methods-use-this
openExplorer() {
Expand Down