diff --git a/app/src/components/StoriesTab/StoryList.tsx b/app/src/components/StoriesTab/StoryList.tsx index db4c840b..ebbd6616 100644 --- a/app/src/components/StoriesTab/StoryList.tsx +++ b/app/src/components/StoriesTab/StoryList.tsx @@ -1,14 +1,5 @@ import { Plus, BookOpen, MoreHorizontal, Pencil, Trash2 } from 'lucide-react'; import { useState } from 'react'; -import { Button } from '@/components/ui/button'; -import { - Dialog, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogTitle, -} from '@/components/ui/dialog'; import { AlertDialog, AlertDialogAction, @@ -19,6 +10,15 @@ import { AlertDialogHeader, AlertDialogTitle, } from '@/components/ui/alert-dialog'; +import { Button } from '@/components/ui/button'; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from '@/components/ui/dialog'; import { DropdownMenu, DropdownMenuContent, @@ -26,18 +26,13 @@ import { DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; import { Input } from '@/components/ui/input'; -import { Textarea } from '@/components/ui/textarea'; import { Label } from '@/components/ui/label'; +import { Textarea } from '@/components/ui/textarea'; import { useToast } from '@/components/ui/use-toast'; -import { - useStories, - useCreateStory, - useUpdateStory, - useDeleteStory, -} from '@/lib/hooks/useStories'; -import { useStoryStore } from '@/stores/storyStore'; +import { useStories, useCreateStory, useUpdateStory, useDeleteStory } from '@/lib/hooks/useStories'; import { cn } from '@/lib/utils/cn'; import { formatDate } from '@/lib/utils/format'; +import { useStoryStore } from '@/stores/storyStore'; export function StoryList() { const { data: stories, isLoading } = useStories(); @@ -49,7 +44,11 @@ export function StoryList() { const [createDialogOpen, setCreateDialogOpen] = useState(false); const [editDialogOpen, setEditDialogOpen] = useState(false); const [deleteDialogOpen, setDeleteDialogOpen] = useState(false); - const [editingStory, setEditingStory] = useState<{ id: string; name: string; description?: string } | null>(null); + const [editingStory, setEditingStory] = useState<{ + id: string; + name: string; + description?: string; + } | null>(null); const [deletingStoryId, setDeletingStoryId] = useState(null); const [newStoryName, setNewStoryName] = useState(''); const [newStoryDescription, setNewStoryDescription] = useState(''); @@ -213,7 +212,9 @@ export function StoryList() {

)}
- {story.item_count} {story.item_count === 1 ? 'item' : 'items'} + + {story.item_count} {story.item_count === 1 ? 'item' : 'items'} + {formatDate(story.updated_at)}
@@ -300,9 +301,7 @@ export function StoryList() { Edit Story - - Update the story name and description. - + Update the story name and description.
@@ -347,7 +346,8 @@ export function StoryList() { Are you sure? - This will permanently delete the story and all its items. This action cannot be undone. + This will permanently delete the story and all its items. This action cannot be + undone. diff --git a/docs/public/app-screenshot-1.webp b/docs/public/app-screenshot-1.webp index 343e94bd..de235151 100644 Binary files a/docs/public/app-screenshot-1.webp and b/docs/public/app-screenshot-1.webp differ diff --git a/docs/public/app-screenshot-2.webp b/docs/public/app-screenshot-2.webp index 2d097607..859be845 100644 Binary files a/docs/public/app-screenshot-2.webp and b/docs/public/app-screenshot-2.webp differ diff --git a/docs/public/app-screenshot-3.webp b/docs/public/app-screenshot-3.webp index 067d5365..93f80661 100644 Binary files a/docs/public/app-screenshot-3.webp and b/docs/public/app-screenshot-3.webp differ diff --git a/landing/public/assets/app-screenshot-1.webp b/landing/public/assets/app-screenshot-1.webp index 343e94bd..de235151 100644 Binary files a/landing/public/assets/app-screenshot-1.webp and b/landing/public/assets/app-screenshot-1.webp differ diff --git a/landing/public/assets/app-screenshot-2.webp b/landing/public/assets/app-screenshot-2.webp index 2d097607..859be845 100644 Binary files a/landing/public/assets/app-screenshot-2.webp and b/landing/public/assets/app-screenshot-2.webp differ diff --git a/landing/public/assets/app-screenshot-3.webp b/landing/public/assets/app-screenshot-3.webp index 067d5365..93f80661 100644 Binary files a/landing/public/assets/app-screenshot-3.webp and b/landing/public/assets/app-screenshot-3.webp differ