feat: add GIF Mood Board workshop
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m5s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m5s
- New workshop where each team member shares up to 5 GIFs with notes to express their weekly mood - Per-user week rating (1-5 stars) visible next to each member's section - Masonry-style grid with adjustable column count (3/4/5) toggle - Handwriting font (Caveat) for GIF notes - Full real-time collaboration via SSE - Clean migration (add_gif_mood_workshop) safe for production deploy - DB backup via cp before each migration in docker-entrypoint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
28
src/components/ui/EditableGifMoodTitle.tsx
Normal file
28
src/components/ui/EditableGifMoodTitle.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
'use client';
|
||||
|
||||
import { EditableTitle } from './EditableTitle';
|
||||
import { updateGifMoodSession } from '@/actions/gif-mood';
|
||||
|
||||
interface EditableGifMoodTitleProps {
|
||||
sessionId: string;
|
||||
initialTitle: string;
|
||||
canEdit: boolean;
|
||||
}
|
||||
|
||||
export function EditableGifMoodTitle({
|
||||
sessionId,
|
||||
initialTitle,
|
||||
canEdit,
|
||||
}: EditableGifMoodTitleProps) {
|
||||
return (
|
||||
<EditableTitle
|
||||
sessionId={sessionId}
|
||||
initialTitle={initialTitle}
|
||||
canEdit={canEdit}
|
||||
onUpdate={async (id, title) => {
|
||||
const result = await updateGifMoodSession(id, { title });
|
||||
return result;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user