feat(video-card): add edit, versioning, and delete functionality with dialogs

- Implemented edit dialog for updating video title and description.
- Added functionality to create new video versions with URL validation.
- Included delete confirmation dialog for video removal.
- Enhanced UI with loading indicators and error handling.
- Updated video card layout for better user interaction.

feat(youtube): extend YT namespace with playback rate methods

- Added methods to set and get playback rate.
- Included method to retrieve available playback rates.
This commit is contained in:
Yusuf İpek
2026-02-07 08:17:25 +03:00
parent 6e95f667e3
commit 0228020041
13 changed files with 1982 additions and 704 deletions
@@ -92,7 +92,7 @@ export default async function ProjectPage({ params }: ProjectPageProps) {
// Check access
const isOwner = session?.user?.id === project.ownerId;
const isMember = project.members.length > 0;
const isPublicOrLink = project.visibility !== 'PRIVATE';
const isPublic = project.visibility === 'PUBLIC';
// Check workspace membership
let isWorkspaceMember = false;
@@ -116,7 +116,7 @@ export default async function ProjectPage({ params }: ProjectPageProps) {
}
}
if (!isOwner && !isMember && !isPublicOrLink && !isWorkspaceMember) {
if (!isOwner && !isMember && !isPublic && !isWorkspaceMember) {
redirect('/dashboard');
}