a3800bf09d
feat(complex): add Chinese verbose_name and help_text to all complex fields (Phase 4.1 part 3/9)
...
Sync DATA_MODEL_COMPLEX.md field-level Chinese annotations to Django
models across 10 complex tables (Complex, ComplexAlias,
ComplexBusinessArea, ComplexSchool, ComplexMetroStation, Building,
RoomUnit, ComplexPhoto, ComplexAttachment, ComplexPriceTrend).
2026-04-30 09:22:08 +08:00
94d160223d
feat: complete Phase 3 scaffolding (templates, static, Docker, per-app skeletons)
...
- Per-app skeleton completion: property/client/setting now have services/,
tasks.py, views.py, urls.py, serializers.py, templates/<app>/, tests/
- admin.py added to all 10 apps (per spec §2.108 / §17.3)
- Top-level templates/: base.html, layouts/{app,auth}.html, components/
{topbar,sidebar,pagination,toast,modal,empty-state}.html, errors/
{403,404,500}.html
- static/: css/main.css (Tailwind entry), js/main.js (HTMX toast +
CSRF wiring per §7.4), vendor/.gitkeep
- tailwind.config.js: Primary teal + neutral slate + semantic colors,
Inter font stack, z-60/z-70, shadow-xs, slide-in-right animation per
UI_SYSTEM §2.7/§10.1
- package.json: tailwindcss-only build/watch
- Dockerfile + docker-compose.yml (6 services: web/db/redis/celery/
celery-beat/tailwind) + docker-compose.prod.yml + Makefile
- tests/ root: conftest.py with TenantClient fixture per §720,
integration/{property,client,release}/, e2e/, schemathesis skeleton
- Removed empty apps/tenant/models/ (tenant uses models.py per §17.1)
Validated: manage.py check passes; tree matches spec §2 exactly.
2026-04-29 17:45:22 +08:00
c57462f6d1
feat(complex): add apps.complex with 10 models and full-text search
...
- 10 models: Complex, ComplexAlias, ComplexBusinessArea, ComplexSchool, ComplexMetroStation, Building, RoomUnit, ComplexPhoto, ComplexAttachment, ComplexPriceTrend
- RunSQL migration: pg_trgm extension, gin_trgm_ops indexes, tsvector triggers for complex search_vector (from name/alias/address)
- Optimistic locking via version field on Complex
- 4 lock flags (lock_building/room/info/standard_room) per spec
- Adds ComplexPropertyUsageType + ComplexBuildingStructure enums
- manage.py check passes
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-04-29 17:19:01 +08:00
9a7d06b34e
feat: scaffold Django multi-tenant project with 5 of 9 apps
...
Phase 1 scaffolding: config/, core/, base models, AES-256-GCM phone encryption, enums mirror
apps.tenant: Tenant + Domain (django-tenants)
apps.org: 11 models (OrgUnit hierarchy, Staff, audit logs)
apps.account: 4 models (UserAccount as AUTH_USER_MODEL, login/password tracking)
apps.permission: 7 models (RBAC + overrides + datascope + append-only changelog)
apps.region: 5 models (District, BusinessArea, MetroLine, MetroStation, School)
All migrations generated, manage.py check passes
2026-04-29 17:01:55 +08:00
4aba6dfa77
Initialize Fonrey Django multi-tenant project skeleton
...
Set up the required directory layout, app scaffolding, core settings, templates, static assets, and Docker/Tailwind tooling to establish a standardized development baseline.
2026-04-26 17:12:09 +08:00