Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Change Crypto UI #269

Closed
wants to merge 3 commits into from
Closed

Conversation

Reza9472
Copy link

Fixes #242

Hi please review and tell me if there are any changes you want to the design

@Reza9472 Reza9472 requested a review from a team as a code owner December 11, 2021 04:14
Copy link
Contributor

@sahil-shubham sahil-shubham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks awesome @Reza9472 Although there is a regression in terms of number of coins the UI looks much better.

I left a few comments, give them a look.

const response = await fetch(
"https://data.messari.io/api/v1/assets?fields=id,name,symbol,metrics/market_data/price_usd,metrics/market_data/ohlcv_last_24_hour",
`https://data.messari.io/api/v1/assets/btc/metrics/price/time-series`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A user would only be able to bitcoin prices now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I only implemented bitcoin for now to get the ok from you for the UI.

);

export const options = {
responsive: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the chart is surely responsive, it's not doing much help for mobile users as can be seen below. What do you think?

image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, that's interesting. Thought it would keep the format for mobile. Gotta go through the chart.js to see if they have any options for this

<Element>
Name :<strong>{values.name}</strong>
</Element>
<img src="https://img.icons8.com/color/24/000000/bitcoin--v1.png" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought about adding another library that had the icons but seemed like overkill since messari doesn't have a lot of cryptos

High :<strong>{values.values.at(-1)[2].toFixed(2)}</strong>
</Element>
<Element>
Low :<strong>{values.values.at(-1)[3].toFixed(2)}</strong>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a crypto trader myself but maybe we shouldn't use toFixed here, a lot of times bigger coins like bitcoin vary after 2 decimal places. What do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked googles crypto and most were 2 decimals. but you are right some of them do. I'll check the ones messari has and change it. But still think It's cleaner to have the toFixed but maybe with more decimals

@Reza9472 Reza9472 requested a review from a team as a code owner January 10, 2022 21:03
@hargup
Copy link
Collaborator

hargup commented Jan 10, 2022

@sahil-shubham can you resolve the conflicts and merge PR if it looks good?

@sahil-shubham
Copy link
Contributor

sahil-shubham commented Jan 15, 2022

@hargup This can't be merged right now as there is a regression in terms of number of coins offered by the app.

I can work on it and merge it then.

@hargup
Copy link
Collaborator

hargup commented Jan 15, 2022

It has been more than a month, we need to close this PR within next few days either ways. Depending on how many coins are missing and how important they are, you have two options:

  • merge this PR, create another ticket for the adding missing coins and take it up separately. Here we should be okay with new issue not being taken up anytime soon.
  • If the you think the PR is too much of a regression and can't be merged as it is. Then thank the author for their time and effort, reject the PR and focus your attention on other things.

@sahil-shubham
Copy link
Contributor

sahil-shubham commented Jan 24, 2022

Closing this PR for now as its a decision between just bitcoin with chart or all the coins without a chart. Feel free to re-open this if interested in adding it.

Thank you for putting in the time for this, it would be helpful to anyone working on this issue in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better UI for crypto instant app
3 participants