Skip to content

Conversation

@ilgabbo
Copy link
Contributor

@ilgabbo ilgabbo commented Sep 16, 2025

Adds a badge with the playlist duration next to the playlist title.

image

@vercel
Copy link

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
feishin Ready Ready Preview Comment Sep 23, 2025 6:18am

@ilgabbo ilgabbo changed the title Feat: added playlist duration badge Feature: added playlist duration badge Sep 16, 2025
return <Badge {...props}>{isLoading ? <SpinnerIcon /> : children}</Badge>;
};

interface PlayListDurationBadgeProps {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already format-duration (and formatDurationString), it would be more appropriate to use one of the existing tools to get the duration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I made the change with formatDurationString, but in my opinion it would be more useful to view #1131 as it already incorporates my change and close my pr.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you misunderstood? #1131 is a feature request, not a PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah i know #1131 is a feature request, my proposal was to ignore my PR if #1131 was accepted, since it already includes my feature

time?: null | number;
}

const PlayListDurationBadge = ({ time }: PlayListDurationBadgeProps) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this is a separate component? This could be easily inlined to the playlist component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, the idea was to make the display of the playlist duration optional via a setting, which was subsequently removed because it was effectively useless.
I pushed the new version without the component.

@jeffvli jeffvli merged commit 4f38e16 into jeffvli:development Sep 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants