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

[Deposit Result] Should only display deposit tab when it's deposit period #287

Open
mitchellchou opened this issue Jul 18, 2022 · 6 comments
Labels
reported by team To indicate that the issue is raised by internal team members ux/trivial < 20% users will notice the issue as a problem [zube]: Bugs

Comments

@mitchellchou
Copy link

image.png

Expected result

Should only display the deposit tab when it's deposit period

@mitchellchou mitchellchou added reported by team To indicate that the issue is raised by internal team members ux/trivial < 20% users will notice the issue as a problem labels Jul 18, 2022
@joyzoursky
Copy link

Should also hide this? As it is always empty, and the yellow line should not exist when there is no period.

Screenshot 2022-07-21 at 8 44 01 PM

@hochiw
Copy link
Contributor

hochiw commented Jul 22, 2022

@mitchellchou
When entering the detail page, say /proposals/10

We show the votes panel by default (as it's controlled by the url param, /proposals/10/votes and /proposals/10/deposits, so when there's no url params we show votes by default.

While we can pass the proposalStatus to the detail page to change the default panel to deposit when it's in deposit period, we don't actually know the the proposal status when we enter /proposals/10 manually in the url bar.

In this case do we just use deposit as default? and shall we swap the position of the tabs if we do?

@mitchellchou
Copy link
Author

mitchellchou commented Jul 22, 2022

In this case do we just use deposit as default? and shall we swap the position of the tabs if we do?

I think "vote" should be default when we don't know its staus
Because most of the proposals on likecoin mainnet are passed proposals that already have vote panel

but anyway this is not urgent wor~~

@hochiw
Copy link
Contributor

hochiw commented Jul 22, 2022

yes but I found it a bit weird if it goes
Enter page -> see votes panel -> fetch proposal detail -> check if deposit period -> hide votes panel and navigate to deposit panel

but anyway this is not urgent wor~~

yes but since I am working on the same page I figured I might as well handle this xd, i am handling moniker first and will come back later for this

@mitchellchou
Copy link
Author

Then I think we should drop this spec as deposit proposals are few?

didn't expect we need a param to switch between vote/deposit.
for vote/deposit result can't they render after fetch proposal detail?

@hochiw
Copy link
Contributor

hochiw commented Jul 22, 2022

I figured that it would be painful to manage two pagination controls in a single screen so I separated the components :sadFrog:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reported by team To indicate that the issue is raised by internal team members ux/trivial < 20% users will notice the issue as a problem [zube]: Bugs
Projects
None yet
Development

No branches or pull requests

3 participants