How coordipai/admin-web works
Project Type and Purpose
• This is a single-page application (SPA) built with React and Vite.
• Its purpose is to provide a front-end for an issue/project/user management tool, interacting with a remote REST API (see src/api/*) and maintaining client-side state via Zustand (src/store).
File Structure
• Top-level config & tooling:
• vite.config.js, package.json / package-lock.json (build and dependencies)
• eslint.config.js, jsconfig.json (code quality and editor integration)
• Static entrypoint: index.html
• Source code under src/:
• pages/ – top-level views and client-side routes (e.g., IssueRequestPage, BuildProject)
• components/ – shared UI elements (Common, Edit, forms, layout)
• api/ – modules that wrap Axios calls to agentApi, issueApi, projectApi
• store/ – Zustand hooks (useUserStore, useProjectStore, useLoadingStore)
• hooks/ – custom hooks (useAxios)
• mocks/ – mock data for issueList, project, user
• styles/ and utils/ – global styles and helper functions
README
• Confirms this is a minimal React+Vite template, extended with:
• Fast refresh via @vitejs/plugin-react
• ESLint integration
• No server-side code included — the SPA relies on external REST endpoints.