feat: open projects view lists existing projects#32
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis update introduces a project list management feature in the frontend. It adds a new composable and Pinia store for handling project data, integrates PrimeVue's toast and confirmation dialog services, and updates the UI to display, sort, and manage projects. Configuration files are updated to auto-import new utilities and components. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant OpenProjectPage
participant useProjectListComposable
participant useProjectListStore
participant PrimeVueToast
participant PrimeVueConfirmDialog
participant Router
User->>OpenProjectPage: Visit Project List Page
OpenProjectPage->>useProjectListComposable: onMounted() -> loadProjects()
useProjectListComposable->>useProjectListStore: fetchProjects()
useProjectListStore->>useProjectListStore: Fetch projects from API
useProjectListStore-->>useProjectListComposable: Return projects or error
useProjectListComposable-->>OpenProjectPage: Provide projects, loading, error states
User->>OpenProjectPage: Click Delete Project
OpenProjectPage->>useProjectListComposable: deleteProject(projectId)
useProjectListComposable->>PrimeVueConfirmDialog: Show confirmation dialog
PrimeVueConfirmDialog-->>useProjectListComposable: On accept
useProjectListComposable->>useProjectListStore: deleteProject(projectId)
useProjectListStore->>useProjectListStore: Delete project via API
useProjectListStore-->>useProjectListComposable: Success or error
useProjectListComposable->>PrimeVueToast: Show success/error toast
User->>OpenProjectPage: Click Project Name
OpenProjectPage->>useProjectListComposable: openProject(projectId)
useProjectListComposable->>Router: Navigate to project detail
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.