mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 05:31:09 -05:00
- Implemented park card component with image, status badge, favorite button, and quick stats overlay. - Developed ride card component featuring thrill level badge, status badge, favorite button, and detailed stats. - Created advanced search page with filters for parks and rides, including location, type, status, and thrill level. - Added dynamic quick search functionality with results display. - Enhanced user experience with JavaScript for filter toggling, range slider updates, and view switching. - Included custom CSS for improved styling of checkboxes and search results layout.
2.1 KiB
2.1 KiB
description, author, version, globs, tags
| description | author | version | globs | tags | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Condensed ThrillWiki Django project context with architecture, patterns, and mandatory Context7 integration | ThrillWiki Development Team | 2.1 |
|
|
ThrillWiki Django Project Context
Project Overview
Theme park database platform with Django REST Framework serving 120+ API endpoints for parks, rides, companies, and users.
Core Architecture
- Backend: Django 5.0+, DRF, PostgreSQL+PostGIS, Redis, Celery
- Frontend: HTMX + AlpineJS + Tailwind CSS + Django-Cotton
- 🚨 ABSOLUTELY NO Custom JS - use HTMX + AlpineJS ONLY
- Clean, simple UX preferred
- Media: Cloudflare Images with Direct Upload
- Tracking: pghistory, TrackedModel base class
- Choices: Rich Choice Objects (NEVER Django tuple choices)
Development Patterns
- Models: TrackedModel inheritance, SluggedModel for slugs, PostGIS for location
- APIs: Nested URLs (
/parks/{slug}/rides/{slug}/), mandatory trailing slashes - Commands:
uv add <package>,uv run manage.py <command>(NOT pip/python) - Choices:
RichChoiceField(choice_group="name", domain="domain")MANDATORY
Business Rules
🚨 CRITICAL: Company role separation - Parks (OPERATOR/PROPERTY_OWNER only), Rides (MANUFACTURER/DESIGNER only)
Context7 MCP Integration (MANDATORY)
Required Libraries
tailwindcss, django, django-cotton, htmx, alpinejs, django-rest-framework, postgresql, postgis, redis
Workflow
- ALWAYS call
Context7:resolve-library-idfirst - Then
Context7:get-library-docswith topic parameter - Required for: new models/APIs, HTMX functionality, AlpineJS components, Tailwind layouts, Cotton components, debugging, optimizations
Example Topics
- tailwindcss: responsive, flexbox, grid
- django: models, views, forms
- htmx: hx-get, hx-post, hx-swap, hx-target
- alpinejs: x-data, x-show, x-if, x-for
Standards
- All models inherit TrackedModel
- Real database data only (NO MOCKING)
- RichChoiceField over Django choices
- Progressive enhancement required