Skip to content

add youtube videos#233

Merged
tenkus47 merged 2 commits into
devfrom
tasklevel-youtube
Jun 19, 2026
Merged

add youtube videos#233
tenkus47 merged 2 commits into
devfrom
tasklevel-youtube

Conversation

@Tech-lo

@Tech-lo Tech-lo commented Jun 19, 2026

Copy link
Copy Markdown
Member

No description provided.

@Tech-lo Tech-lo requested a review from tenkus47 June 19, 2026 11:32
@greptile-apps

greptile-apps Bot commented Jun 19, 2026

Copy link
Copy Markdown

Confidence Score: 4/5

Safe to merge; the new dialog is well-isolated and follows established patterns in the codebase.

The implementation is solid: optimistic reorder with rollback, proper loading states, and the isBusy guard preventing concurrent mutations. Only minor style issues were found — an any cast on the drag-listener render prop and a low-resolution YouTube thumbnail.

DayVideosDialog.tsx is the most substantial new file and worth a quick read-through; the any on the SortableItem render prop and the thumbnail resolution are both minor but easy to polish before merging.

Reviews (1): Last reviewed commit: "Merge remote-tracking branch 'origin/dev..." | Re-trigger Greptile

disabled={!isEditable || isBusy}
className="flex items-center gap-3 rounded-lg border border-dashed border-gray-300 dark:border-input p-2 bg-white dark:bg-[#161616]"
>
{({ listeners }: any) => (

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Using any for the render-prop argument suppresses all type checking on listeners (the drag-and-drop event handlers). If SortableItem's callback signature is typed, this can be tightened to avoid silently passing the wrong shape at the call site.

Suggested change
{({ listeners }: any) => (
{({ listeners }: { listeners?: React.HTMLAttributes<HTMLElement> }) => (

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

)}
{videoId && (
<img
src={`https://img.youtube.com/vi/${videoId}/default.jpg`}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 default.jpg resolves to a 120×90 px thumbnail. For a w-20 h-14 (80×56 px) element it still looks blurry on HiDPI screens; mqdefault.jpg (320×180) is a better quality fallback that's still freely available from YouTube's CDN.

Suggested change
src={`https://img.youtube.com/vi/${videoId}/default.jpg`}
src={`https://img.youtube.com/vi/${videoId}/mqdefault.jpg`}

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@tenkus47 tenkus47 merged commit 45f95d0 into dev Jun 19, 2026
3 checks passed
@tenkus47 tenkus47 deleted the tasklevel-youtube branch June 19, 2026 12:40
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.

2 participants