Rebuild admin pages around DataTable/AdminModal; restructure categories/groups and v2 groups API
Remove the generic $lib/svelte-admin CRUD layer and AdminTable.svelte; each admin route now owns its own form/modal logic. Add DataTable.svelte, superform-errors.ts, and profile-specific modal/field components. Flatten proclamation categories/groups and drop subscription levels; add the v2 groups API; update v1/v2 endpoints, serializers, auth, and regenerated Prisma client with the new migrations. Document the overhaul plan in docs/ADMIN_OVERHAUL.md.
This commit is contained in:
@@ -9,11 +9,11 @@ AGENTS.md
|
||||
at your project root:
|
||||
|
||||
````text
|
||||
# Rhemawave Portal AI Guide
|
||||
# Radiant Wave Portal AI Guide
|
||||
|
||||
## Mission
|
||||
|
||||
You are working on portal.Rhemawavetech.com.
|
||||
You are working on portal.radiantwavetech.com.
|
||||
|
||||
Act as a senior engineer making complete, production-ready changes.
|
||||
|
||||
@@ -97,9 +97,9 @@ Use narrower commands when appropriate.
|
||||
|
||||
If validation fails:
|
||||
|
||||
* Diagnose the failure.
|
||||
* Fix the issue.
|
||||
* Run validation again.
|
||||
- Diagnose the failure.
|
||||
- Fix the issue.
|
||||
- Run validation again.
|
||||
|
||||
Never finish with known failures.
|
||||
|
||||
@@ -109,19 +109,19 @@ Never finish with known failures.
|
||||
|
||||
Application:
|
||||
|
||||
portal.Rhemawavetech.com
|
||||
portal.radiantwavetech.com
|
||||
|
||||
Stack:
|
||||
|
||||
* SvelteKit 2
|
||||
* Svelte 5
|
||||
* TypeScript
|
||||
* Tailwind CSS v4
|
||||
* Prisma 7
|
||||
* PostgreSQL
|
||||
* Better Auth
|
||||
* Vitest
|
||||
* Playwright
|
||||
- SvelteKit 2
|
||||
- Svelte 5
|
||||
- TypeScript
|
||||
- Tailwind CSS v4
|
||||
- Prisma 7
|
||||
- PostgreSQL
|
||||
- Better Auth
|
||||
- Vitest
|
||||
- Playwright
|
||||
|
||||
Package manager:
|
||||
|
||||
@@ -266,9 +266,9 @@ AdminPage.svelte
|
||||
|
||||
Registry metadata exists for:
|
||||
|
||||
* columns
|
||||
* searches
|
||||
* relations
|
||||
- columns
|
||||
- searches
|
||||
- relations
|
||||
|
||||
Forms are manually implemented per route.
|
||||
|
||||
@@ -309,8 +309,8 @@ Only load that file when modifying Svelte components or Svelte logic.
|
||||
|
||||
Testing uses:
|
||||
|
||||
* Vitest
|
||||
* Playwright browser testing
|
||||
- Vitest
|
||||
- Playwright browser testing
|
||||
|
||||
For testing patterns, read:
|
||||
|
||||
@@ -338,10 +338,10 @@ Only load that file when working on API functionality.
|
||||
|
||||
Prettier rules:
|
||||
|
||||
* tabs
|
||||
* single quotes
|
||||
* no trailing commas
|
||||
* 80 character print width
|
||||
- tabs
|
||||
- single quotes
|
||||
- no trailing commas
|
||||
- 80 character print width
|
||||
|
||||
Follow existing formatting.
|
||||
|
||||
@@ -391,17 +391,14 @@ Confirm:
|
||||
2. Relevant tests/checks were run.
|
||||
3. Failures were fixed.
|
||||
4. The final response explains:
|
||||
|
||||
* what changed
|
||||
* files modified
|
||||
* verification performed
|
||||
- what changed
|
||||
- files modified
|
||||
- verification performed
|
||||
|
||||
Do not stop at:
|
||||
|
||||
* "I found the issue"
|
||||
* "Here is a plan"
|
||||
* "The next step would be"
|
||||
- "I found the issue"
|
||||
- "Here is a plan"
|
||||
- "The next step would be"
|
||||
|
||||
Finish the work.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user