From 1adba1b804fa47119737ae89046c5e82bbf85b5d Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 2 Jan 2026 07:58:58 -0500 Subject: [PATCH] lol --- .agent/MEMORY/migration_source.md | 73 +++ .agent/MEMORY/source_mapping.md | 83 +++ .agent/rules/api-conventions.md | 329 ++++++++++++ .agent/rules/component-patterns.md | 306 ++++++++++++ .agent/rules/design-system.md | 191 +++++++ .agent/rules/django-standards.md | 254 ++++++++++ .agent/rules/nuxt-standards.md | 204 ++++++++ .agent/workflows/comply.md | 85 ++++ .agent/workflows/migrate-component.md | 168 +++++++ .agent/workflows/migrate-hook.md | 223 +++++++++ .agent/workflows/migrate-page.md | 183 +++++++ .agent/workflows/migrate-type.md | 201 ++++++++ .agent/workflows/migrate.md | 193 +++++++ .agent/workflows/moderation.md | 472 ++++++++++++++++++ .agent/workflows/new-api.md | 360 +++++++++++++ .agent/workflows/new-component.md | 279 +++++++++++ .agent/workflows/new-feature.md | 311 ++++++++++++ .agent/workflows/new-page.md | 235 +++++++++ backend/apps/api/v1/parks/serializers.py | 17 + backend/apps/api/v1/rides/serializers.py | 414 +++++++++++++++ backend/apps/api/v1/serializers/companies.py | 85 +++- backend/apps/api/v1/serializers/rides.py | 55 ++ .../0027_add_company_entity_fields.py | 251 ++++++++++ .../0028_add_date_precision_fields.py | 96 ++++ backend/apps/parks/models/companies.py | 67 ++- backend/apps/parks/models/parks.py | 22 + ...030_add_kiddie_and_transportation_stats.py | 454 +++++++++++++++++ .../migrations/0031_add_ride_name_history.py | 155 ++++++ .../0032_add_date_precision_fields.py | 96 ++++ .../0033_add_ride_subtype_and_age.py | 84 ++++ backend/apps/rides/models/__init__.py | 7 +- backend/apps/rides/models/name_history.py | 73 +++ backend/apps/rides/models/rides.py | 34 ++ backend/apps/rides/models/stats.py | 149 ++++++ backend/apps/rides/signals.py | 43 ++ source_docs/AGENT_RULES.md | 99 ++++ 36 files changed, 6345 insertions(+), 6 deletions(-) create mode 100644 .agent/MEMORY/migration_source.md create mode 100644 .agent/MEMORY/source_mapping.md create mode 100644 .agent/rules/api-conventions.md create mode 100644 .agent/rules/component-patterns.md create mode 100644 .agent/rules/design-system.md create mode 100644 .agent/rules/django-standards.md create mode 100644 .agent/rules/nuxt-standards.md create mode 100644 .agent/workflows/comply.md create mode 100644 .agent/workflows/migrate-component.md create mode 100644 .agent/workflows/migrate-hook.md create mode 100644 .agent/workflows/migrate-page.md create mode 100644 .agent/workflows/migrate-type.md create mode 100644 .agent/workflows/migrate.md create mode 100644 .agent/workflows/moderation.md create mode 100644 .agent/workflows/new-api.md create mode 100644 .agent/workflows/new-component.md create mode 100644 .agent/workflows/new-feature.md create mode 100644 .agent/workflows/new-page.md create mode 100644 backend/apps/parks/migrations/0027_add_company_entity_fields.py create mode 100644 backend/apps/parks/migrations/0028_add_date_precision_fields.py create mode 100644 backend/apps/rides/migrations/0030_add_kiddie_and_transportation_stats.py create mode 100644 backend/apps/rides/migrations/0031_add_ride_name_history.py create mode 100644 backend/apps/rides/migrations/0032_add_date_precision_fields.py create mode 100644 backend/apps/rides/migrations/0033_add_ride_subtype_and_age.py create mode 100644 backend/apps/rides/models/name_history.py create mode 100644 source_docs/AGENT_RULES.md diff --git a/.agent/MEMORY/migration_source.md b/.agent/MEMORY/migration_source.md new file mode 100644 index 00000000..aeedfe2e --- /dev/null +++ b/.agent/MEMORY/migration_source.md @@ -0,0 +1,73 @@ +# Migration Source: thrillwiki-87 + +The React project at `/Volumes/macminissd/Projects/thrillwiki-87` is the **authoritative source** for ThrillWiki features and functionality. + +## Core Principle + +**thrillwiki-87 is LAW.** When migrating features, the React implementation defines: +- What features must exist +- How they should behave +- What data structures are required +- What UI patterns to follow + +## Source Project Structure + +``` +thrillwiki-87/ +├── src/ +│ ├── components/ # React components (44 directories) +│ ├── pages/ # Route pages (39 files) +│ ├── hooks/ # React hooks (80+ files) +│ ├── types/ # TypeScript definitions (63 files) +│ ├── contexts/ # React contexts +│ ├── lib/ # Utilities +│ └── integrations/ # External service integrations +├── docs/ # Feature documentation (78 files) +│ ├── SITE_OVERVIEW.md +│ ├── DESIGN_SYSTEM.md +│ ├── COMPONENTS.md +│ ├── PAGES.md +│ └── USER_FLOWS.md +└── supabase/ # Backend schemas and functions +``` + +## Technology Translation + +| React (Source) | Nuxt 4 (Target) | +|----------------|-----------------| +| React component | Vue SFC (.vue) | +| useState | ref() / reactive() | +| useEffect | watch() / onMounted() | +| useContext | provide() / inject() or Pinia | +| React Router | Nuxt file-based routing | +| React Query | useAsyncData / useFetch | +| shadcn-ui | Nuxt UI | +| Supabase client | Django REST API via useApi() | +| Edge Functions | Django views | + +## Backend Translation + +| Supabase (Source) | Django (Target) | +|-------------------|-----------------| +| Table | Django Model | +| RLS policies | DRF permissions | +| Edge Functions | Django views/viewsets | +| Realtime | SSE / WebSockets | +| Auth | django-allauth + JWT | +| Storage | Cloudflare R2 | + +## Migration Workflow + +1. **Find source** in thrillwiki-87 +2. **Read the docs** in thrillwiki-87/docs/ +3. **Check existing** Nuxt implementation +4. **Port missing features** to achieve parity +5. **Verify behavior** matches source + +## Key Source Files to Reference + +When porting a feature, always check: +- `thrillwiki-87/docs/` for specifications +- `thrillwiki-87/src/types/` for data structures +- `thrillwiki-87/src/hooks/` for business logic +- `thrillwiki-87/src/components/` for UI patterns diff --git a/.agent/MEMORY/source_mapping.md b/.agent/MEMORY/source_mapping.md new file mode 100644 index 00000000..d4d08cb0 --- /dev/null +++ b/.agent/MEMORY/source_mapping.md @@ -0,0 +1,83 @@ +# Source Mapping: React → Nuxt + +Quick reference for mapping thrillwiki-87 paths to thrillwiki_django_no_react paths. + +## Directory Mappings + +| React (thrillwiki-87) | Nuxt (thrillwiki_django_no_react) | +|----------------------|-----------------------------------| +| `src/components/` | `frontend/app/components/` | +| `src/pages/` | `frontend/app/pages/` | +| `src/hooks/` | `frontend/app/composables/` | +| `src/types/` | `frontend/app/types/` | +| `src/lib/` | `frontend/app/utils/` | +| `src/contexts/` | `frontend/app/stores/` (Pinia) | +| `docs/` | `source_docs/` | +| `supabase/migrations/` | `backend/apps/*/models.py` | + +## Component Mappings (shadcn-ui → Nuxt UI) + +| shadcn-ui | Nuxt UI | +|-----------|---------| +| `