docs: Fix documentation drift across repository #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
Significant documentation drift discovered across MotoVaultPro's documentation:
docs/ADMIN.md(feature removed)VEHICLES-API.mdhas multiple incorrect file paths, wrong CI system referencesDATABASE-SCHEMA.mdmissing tables from 8+ featurescontext.jsonmissing 8 feature entriesScope
In Scope:
.ai/context.json- add 8 missing featuresdocs/README.md- add features, remove dead ADMIN.md linkdocs/DATABASE-SCHEMA.md- document all tablesdocs/ARCHITECTURE-OVERVIEW.md- add 9 missing featuresdocs/TESTING.md- add 8 missing featuresdocs/VEHICLES-API.md- complete rewritebackend/src/features/user-preferences/README.md- create missing docOut of Scope:
Missing Features (8)
These features exist in code but are missing from high-level documentation:
auth- Authentication endpointsbackup- Database backup/restorenotifications- Email/push notificationsonboarding- User onboarding flowterms-agreement- Terms & Conditions acceptanceuser-export- GDPR data exportuser-preferences- User settingsuser-profile- Profile managementMilestones
.ai/context.json- add 8 missing featuresdocs/README.md- add features, remove ADMIN.md dead linkdocs/DATABASE-SCHEMA.md- document all tablesdocs/ARCHITECTURE-OVERVIEW.md- add 9 missing featuresdocs/TESTING.md- add 8 missing featuresdocs/VEHICLES-API.md- complete rewritebackend/src/features/user-preferences/README.mdKey Decisions
Acceptance Criteria
context.jsonVEHICLES-API.mdmatches current implementationM1 Complete: Updated
.ai/context.jsonAdded 8 missing features to
application_features:auth- User signup, email verification workflow using Auth0backup- Manual and scheduled database/document backups with retention policiesnotifications- Email and toast notifications for maintenance due/overdue and expiring documentsonboarding- User onboarding flow after email verificationterms-agreement- Legal audit trail for Terms & Conditions acceptance at signupuser-export- GDPR-compliant user data exportuser-preferences- User preference management (unit system, currency, timezone)user-profile- User profile management (email, display name, notification email)Also updated:
feature_dependencies.sequence- now includes all 15 features in dependency orderexternal_services.external_apis- added ResendStatus: context.json now documents all 15 features with correct paths, types, database tables, and descriptions.
M2 Complete: Updated
docs/README.mdChanges:
docs/ADMIN.md(feature removed)All 15 features now have navigation links in the documentation hub.
M3 Complete: Updated
docs/DATABASE-SCHEMA.mdMajor rewrite documenting all database tables:
Added sections:
admin_users,admin_audit_logsuser_profiles,user_preferences,terms_agreementscommunity_stationsengines,transmissions,vehicle_optionsemail_templates,notification_logsbackup_schedules,backup_history,backup_settingsFixed:
maintenance->maintenance_logsandmaintenance_schedules(split tables)Database schema documentation now covers all 25+ tables.
M4 & M5 Complete
M4: Updated
docs/ARCHITECTURE-OVERVIEW.mdmaintenance_logs,maintenance_schedulesinstead ofmaintenance_records)M5: Updated
docs/TESTING.mdNext: M6 - Complete rewrite of VEHICLES-API.md
M6 Complete: Rewrote
docs/VEHICLES-API.mdComplete rewrite of the Vehicles API documentation:
Removed outdated content:
make,model,model_year,trim)make_id,model_id,trim_id- actual API uses string names).github/workflows/ci.yml(we use.gitea/workflows/)Added accurate content:
vehicles.routes.tsDocument now accurately reflects the current implementation.
M7 Complete: Created
backend/src/features/user-preferences/README.mdCreated missing documentation for the user-preferences feature:
All Milestones Complete
All 7 milestones have been completed:
.ai/context.json- added 8 missing featuresdocs/README.md- added features, removed ADMIN.md dead linkdocs/DATABASE-SCHEMA.md- documented all 25+ tablesdocs/ARCHITECTURE-OVERVIEW.md- added all 15 featuresdocs/TESTING.md- added all 15 featuresdocs/VEHICLES-API.md- complete rewritebackend/src/features/user-preferences/README.mdSummary of changes:
docs/ADMIN.mdremoved