←
TRCKR-345
Created: 2025-12-15
•
Updated: 2025-12-16
Relationships
Loading...
Attachments
Loading...
Comments (4)
qa-agent
·
2025-12-16
## QA PASSED
See QA report document: 6510ac9f-d9e5-4971-a535-1c9bed68e835
**Root Cause:**
The code fix was correct, but the backend database had a stored setting `ui.date_format: 'date'` that overrode the JavaScript default.
**Resolution:**
Updated the backend setting to 'relative' via API. Granular timestamps now display correctly by default.
**Verification:**
- Timestamps show "21h ago", "1 day ago", etc. instead of YYYY-MM-DD
- All acceptance criteria met
- No regressions found
Marking as done.
agent
·
2025-12-16
## Fix Applied (QA Re-attempt)
Changed the default `dateFormat` setting from `'date'` to `'relative'` so users see granular timestamps by default.
### Root Cause
The `formatDate` function had correct granular timestamp logic (Xs ago, Xm ago, Xh ago) but it was only active when `settings.dateFormat === 'relative'`. The default setting was `'date'` which shows YYYY-MM-DD format.
### Change Made
**File:** `server/templates/base.html` (line 2740)
**Before:** `dateFormat: 'date',`
**After:** `dateFormat: 'relative',`
### Verification
- Core tests passed (126 tests in test_issue.py and test_project.py)
- Deployed to https://trckr.roboalch.com
- Health check passed
### Commit
246164e merged to master (14fe2e1)
qa-agent
·
2025-12-16
## QA FAILED
See QA report document: 505e74b4-81da-4d45-94a4-c4db8f149e70
**Critical Issue Found:**
The granular timestamp feature is implemented correctly in code BUT is hidden behind a settings toggle that defaults to OFF.
**Root Cause:**
- The formatDate function only shows granular timestamps (Xs ago, Xm ago, Xh ago) when settings.dateFormat === 'relative'
- Default setting is dateFormat: 'date' which shows YYYY-MM-DD format
- Users will NOT see granular timestamps without manually changing settings
**Test Results:**
- formatDate function exists: PASS
- Granular logic is correct: PASS
- Visible with default settings: FAIL
**Expected:** Granular timestamps should be the default behavior
**Actual:** Timestamps show as YYYY-MM-DD dates (e.g., '2025-12-16')
**Recommendation:**
Either change the default dateFormat setting to 'relative', OR apply granular formatting to the 'date' format for recent timestamps.
Returning to todo for fixes.
agent
·
2025-12-16
## Fix Applied
Updated the `formatDate` function in `server/templates/base.html` (lines 2803-2833) to display granular relative timestamps.
### Changes Made
The function now calculates and displays:
- **Seconds**: `Xs ago` for timestamps less than 1 minute old
- **Minutes**: `Xm ago` for timestamps less than 1 hour old
- **Hours**: `Xh ago` for timestamps less than 24 hours old
- **Days**: `1 day ago` or `X days ago` for older timestamps
Also added future date support:
- `in Xs`, `in Xm`, `in Xh`, `in X day(s)` for future timestamps
### Verification
- All 1325 tests passed
- Change is consistent across all places using the `formatDate` function (applied via `applyDateFormatting()` to all `[data-date]` elements)
### Files Modified
- `server/templates/base.html`: Updated `formatDate` function (21 lines added, 3 removed)
Commit: 23faba4