-
Notifications
You must be signed in to change notification settings - Fork 44
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
Improving sidebar navigation on a scoped page #10361
base: master
Are you sure you want to change the base?
Improving sidebar navigation on a scoped page #10361
Conversation
… into salman/issue#7988/improving-sidebar-navigation-on-ascope-page
…/github.com/hicommonwealth/commonwealth into salman/issue#7988/improving-sidebar-navigation-on-ascope-page
… into salman/issue#7988/improving-sidebar-navigation-on-ascope-page
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.
packages/commonwealth/client/scripts/views/components/sidebar/sidebar_section.tsx
Outdated
Show resolved
Hide resolved
packages/commonwealth/client/scripts/views/components/sidebar/discussion_section.tsx
Outdated
Show resolved
Hide resolved
...s/commonwealth/client/scripts/views/components/sidebar/CommunitySection/CommunitySection.tsx
Show resolved
Hide resolved
} else if (topic.weighted_voting) { | ||
leftIcon = <CWIcon iconName="lockedNew" iconSize="small" />; | ||
} else { |
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.
weighted voting and topic gating are 2 separate features. Checkout the logic in useTopicGating
for using this icon for a gated topic.
if (topicInvolvedInActiveContest) { | ||
leftIcon = <CWIcon iconName="trophy" iconSize="small" />; | ||
} else if (topic.weighted_voting) { | ||
leftIcon = <CWIcon iconName="lockedNew" iconSize="small" />; | ||
} else { | ||
leftIcon = <CWIcon iconName="hash" iconSize="small" />; | ||
} | ||
|
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.
i think the order of this block should be reversed, just so the icons are set in the precedence specified in PR description
Verify the topic icon conventions.
When a topic is created the default is the “#,”
When A topic is gated, it has a lock icon.
If the topic is in an active contest, it will have a trophy icon.
If a topic is gated AND active contest, the trophy icon is used.
Link to Issue
Closes: #7988
Description of Changes
"How We Fixed It"
Test Plan
Deployment Plan
Other Considerations