Closed Chris-CHEVALIER closed 1 year ago
Please test this PR on: https://v2-staging-181-dot-fuji-306908.ey.r.appspot.com
Can't test because of CORS errors. @brozorec this may be in SDK scope, can you add the header ?
F*ck, I didn't check this when implementing. This header should come from the server. I think with Next we can make API calls on the server before delivering to the client. Can we do something like this on our app? https://github.com/vercel/next.js/tree/canary/examples/api-routes-cors
@brozorec problem solved. I loved how next make that easy, its just a little bit of config 🤓
Ok so I think this is ready for review, just need help of either @DaigaroCota or @brozorec about navigation after clicking on a Market row.
Hey @doliG,
I have gone through the implementation on staging.
Here's the link to the design feedback: https://www.figma.com/file/v53wiSwcL5DYynVL0z6L4s/Fuji---Working-File-(NEW)?node-id=3041%3A51856&t=MY9dru8TXFFHXShG-1
Good job :+1:
Wdyt @Markoyw ?
Ok so I think this is ready for review, just need help of either @DaigaroCota or @brozorec about navigation after clicking on a Market row.
It has to navigate to "Manage position", ref https://github.com/Fujicracy/fuji-v2/issues/41
Hey @brozorec @doliG
Also, I'm not sure if we are able to stack the tooltip as such:
Awesome, thank you @Markoyw :+1: Regarding "2." I meant something different: it was about the order of the columns. For the assets' names, we start with the borrowed one while for the rates the supply rate is first.
@brozorec
Good point. What do you think if we were to switch the assets column starting from - 'collateral' and then 'borrow'?
@Markoyw Design feedbacks will be fixed asap ⏳
I don't think nested tooltip are a good idea in terms of UX (not mobile friendly) + it's difficult to handle technically, but it's doable. I suggest instead to display one big tooltip with the logo of all protocols and their name.
Regarding the column order, I had the same remark as @brozorec and it's an easy change. @Markoyw if you're okay with it I'll do it.
Regarding sorting, it's because sorting the data will cause everything to change (even chain with the best rate). @brozorec can we discuss it through a call ? I think it'll be easier.
@brozorec
Good point. What do you think if we were to switch the assets column starting from - 'collateral' and then 'borrow'?
@Markoyw Yep, I think it's safe to do so :+1:
@doliG
@Markoyw one last thing, what should I display if we fail to fetch the markets ? (I'm asking because we use defillama API and sometimes it fails)
@brozorec @Markoyw this PR is done, I'm merging it. Thanks for your contributions guys 🔥
@Markoyw @brozorec I'm merginf this one, thanks you guys for your contributions.
Close #155