This is the admin dashboard for the PHLASK project. It provides a web interface for reviewing, editing, and managing community resource data using Supabase as the backend.
- View and manage resources from the Supabase database
- Review and approve/reject suggested edits to resources
- View and resolve reports on resources
- View resource changelogs and roll back changes if needed
Install dependencies:
pnpm installStart the development server:
pnpm run devVisit http://localhost:5174 to view the app.
Build for production:
pnpm run buildTo build and run with Docker:
docker build -t phlask-admin-dashboard .
docker run -p 3000:3000 phlask-admin-dashboardDeploy the output of pnpm run build to your preferred Node.js hosting or container platform.
app/— Main application codeadmin/— Admin dashboard views (SuggestedEdits, ResourceReports, ResourceChangelog)utils/— Supabase utility functionstypes/— TypeScript types (including ResourceEntry)welcome/— Landing page and logo
public/— Static assetsDockerfile— For container builds
-
Resource Table Improvements
- Add filtering, sorting, and pagination to resource tables
- Add search functionality
-
Suggested Edits
- Implement fetching and reviewing of suggested edits (requires DB schema)
- Add approve/reject actions
-
Resource Reports
- Wire up report resolution and dismissal actions
- Add filtering by status/type
-
Changelog & Rollback
- Implement changelog fetching (requires DB schema)
- Add rollback functionality for resource changes
-
UI/UX
- Add navigation, breadcrumbs, and better error/loading states
- Improve accessibility and mobile responsiveness
-
Testing
- Add unit and integration tests for components and utilities
-
Documentation
- Expand this README with API details and developer setup notes
- Start by improving the admin views in
app/admin/ - Check
app/utils/supabase.tsfor database helpers - Update or add new TypeScript types in
app/types/ - For new features, create a new branch and open a pull request
Built with ❤️ by the PHLASK team.