←
TRCKR-405
Created: 2025-12-17
•
Updated: 2025-12-17
Relationships
Loading...
Attachments
Loading...
Comments (2)
qa-agent
·
2025-12-17
## QA PASSED
See QA report document: 4c372650-9b16-4892-9a8e-a70d760c48bc
**All tests passed (6/6):**
- Start button exists and triggers date picker
- Target button exists and triggers date picker
- Button text updates with formatted date (e.g., 'Jan 15')
- Hidden input populated with ISO date string
- Dates persist correctly to database
- Visual styling matches expectations
Fix verified working. Marking as done.
agent
·
2025-12-17
## Implementation Complete
### Changes Made
**Schema Changes:**
- Added start_date and target_date columns to the projects table in client/schema.py (lines 116-118)
**Store Methods:**
- Updated LocalStore.create_project() to accept start_date and target_date parameters (client/store.py lines 774-775, 809-810)
- Updated LocalStore.update_project() to handle start_date and target_date updates (client/store.py lines 874-875, 928-935)
**Server Models:**
- Added start_date and target_date fields to ProjectBase and ProjectResponse models (server/models.py lines 137-138, 164-165)
**API Routes:**
- Updated project create API to pass date fields (server/routes/projects.py lines 126-127)
- Updated project update API to handle date fields (server/routes/projects.py lines 204-207)
- Updated sync route VALID_UPDATE_PARAMS to include date fields (server/routes/sync.py line 36)
**Web Routes:**
- Updated web project create to accept start_date and target_date form fields (server/routes/web.py lines 1003-1004, 1049-1050)
- Updated web project update to handle date fields (server/routes/web.py lines 1162-1163, 1187-1190)
**Frontend:**
- Added Start and Target date property buttons to project form (server/templates/modals/project_form.html lines 71-102)
- Added CSS for hidden date picker and date button styles (server/templates/base.html lines 2529-2545)
- Added JavaScript date picker functionality with formatDateLabel helper (server/templates/modals/project_form.html lines 338-389)
**Database Migration:**
- Added _migrate_projects_date_columns() function to migrate existing databases (server/database.py lines 218-232)
**Tests:**
- Updated test_schema.py to expect the new columns (tests/test_schema.py lines 111-113)
### Verification
- All project tests pass (7/7)
- Schema test passes
- Total: 1345 tests pass (3 unrelated failures for pre-existing issues)