-
Notifications
You must be signed in to change notification settings - Fork 111
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
[C-4488] Hide actions + play count for hidden content #8796
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -389,8 +389,7 @@ export const GiantTrackTile = ({ | |
} | ||
|
||
const renderListenCount = () => { | ||
const shouldShow = | ||
isOwner || (!isStreamGated && (isUnlisted || fieldVisibility.play_count)) | ||
const shouldShow = isOwner || (!isStreamGated && !isUnlisted) | ||
|
||
if (!shouldShow) { | ||
return null | ||
|
@@ -600,32 +599,34 @@ export const GiantTrackTile = ({ | |
{renderStatsRow()} | ||
</div> | ||
|
||
<div | ||
className={cn(styles.actionButtons, fadeIn)} | ||
role='group' | ||
aria-label={messages.actionGroupLabel} | ||
> | ||
{renderShareButton()} | ||
{renderMakePublicButton()} | ||
{hasStreamAccess && renderRepostButton()} | ||
{hasStreamAccess && renderFavoriteButton()} | ||
<span> | ||
{/* prop types for overflow menu don't work correctly | ||
{isUnlisted && !isOwner ? null : ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i could put this logic inside the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is fine nit: we generally do the null at the end like |
||
<div | ||
className={cn(styles.actionButtons, fadeIn)} | ||
role='group' | ||
aria-label={messages.actionGroupLabel} | ||
> | ||
{renderShareButton()} | ||
{renderMakePublicButton()} | ||
{hasStreamAccess && renderRepostButton()} | ||
{hasStreamAccess && renderFavoriteButton()} | ||
<span> | ||
{/* prop types for overflow menu don't work correctly | ||
so we need to cast here */} | ||
<Menu {...(overflowMenu as any)}> | ||
{(ref, triggerPopup) => ( | ||
<div className={cn(styles.menuKebabContainer)} ref={ref}> | ||
<Button | ||
variant='secondary' | ||
aria-label='More options' | ||
iconLeft={IconKebabHorizontal} | ||
onClick={() => triggerPopup()} | ||
/> | ||
</div> | ||
)} | ||
</Menu> | ||
</span> | ||
</div> | ||
<Menu {...(overflowMenu as any)}> | ||
{(ref, triggerPopup) => ( | ||
<div className={cn(styles.menuKebabContainer)} ref={ref}> | ||
<Button | ||
variant='secondary' | ||
aria-label='More options' | ||
iconLeft={IconKebabHorizontal} | ||
onClick={() => triggerPopup()} | ||
/> | ||
</div> | ||
)} | ||
</Menu> | ||
</span> | ||
</div> | ||
)} | ||
</div> | ||
<Flex | ||
gap='s' | ||
|
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.
Really a product question, but do we want to stop respecting existing field visibility settings, or just take away the ability to set new ones?
I def understand doing it for collections and new track uploads, but I could see someone getting annoyed if they specifically set it not to share before.
Probably small potatoes and nobody cares, but just checking to make sure.
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 on the call yesterday we decided to leave it in the backend, but remove it from the front-end