-
Notifications
You must be signed in to change notification settings - Fork 120
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
[redesign][governance] proposal details view. #3345
Conversation
e70d902
to
c464813
Compare
Note: This was implemented & tested against pre-tlog poltieia code, I'll address the two issues listed above |
@@ -32,18 +32,19 @@ const ProposalDetailsPage = () => { | |||
</div> | |||
); | |||
case "success": | |||
// XXX this should move to redux logic, we should parse proposal body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will followup with a PR for this XXX
...components/views/ProposalDetailsPage/helpers/VotePreferenceWrapper/VotePreferenceWrapper.jsx
Outdated
Show resolved
Hide resolved
@@ -1,5 +1,7 @@ | |||
// XXX change all files to small letters! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will followup with this change.
|
Need few last touches in smaller screens. |
Needs a rebase |
- Deletes TxHsitory/EliginleRow.jsx and it's styling. - Moves Vote Pref. component to VoteSection according to new specs. - Improves viewedProposal state obj to avoid duplicated fields. - Introduces ChooseVoteOption.module.css
…odules . + Declarative Proposals Details Page helpers. + ChooseOptions.module.css + VoteButton.module.css + Replace shared classes with new components ie VoteButton & NoTicketsMsg
define proposal status & vote status as constants.
- add global helper css classes - ditch OverviewField - re-arrange proposal card
@alexlyp rebased & improved smaller screens as well. |
Getting an error when I go to the top result in the Finished category (Underwater Citadel): This wallet has no live tickets currently if that helps reproduce. |
@alexlyp updated |
Seeing some text in dark theme show as white on white. Voting power and the short hash below the status on the proposal details page |
Main changes:
ProposalsDetials.module.css
helpers styling into components own css modules.OverviewField
component.EligibleTickets
component with newVoteSection
.TxHsitory/EligibleRow.jsx
and it's styling.VoteSection
according to new specs.VoteButton
&NoTicketsMsg
)VotedCheckmark
.Note: before reviewing the code I'd suggest comparing
components/viewed/ProposalDetailsPage
dir and it's structure on master and on this branch.Screenshots:
Voting proposal & user voted:
Abandoned:
Rejected:
Closes #3288.