Repository navigation
fix: snap period-start URL dates; fix Trends chart height and x-axis labels - #1059
Conversation
|
0c4deca to
a02f72c
Compare
|
@greptileai review |
|
@greptileai review |
|
@greptileai review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1059 +/- ##
==========================================
- Coverage 64.58% 64.45% -0.13%
==========================================
Files 55 55
Lines 3803 3821 +18
Branches 963 963
==========================================
+ Hits 2456 2463 +7
+ Misses 1332 1268 -64
- Partials 15 90 +75 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
CI-green and mergeable (Greptile 5/5) — waiting only on a maintainer click. This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted. |
fa1bb39 to
15668bb
Compare
|
Rebased onto master (now at #1068). The conflicts needed real choices:
The PR now touches only |
|
@greptileai review |
|
@greptileai review |
|
@TimeToBuildBob conflicts |
b3a256a to
e78379b
Compare
|
Confirmed the conflict with current master. Another Bob session already holds the branch and has fresh local conflict-resolution work; I'm coordinating that handoff rather than racing a second push. I'll verify the resulting diff and tests before reporting the updated head. |
…labels - Activity._date now snaps to period start for week/month/year using periodStartDate, so navigating to /week without a date resolves to the correct week start in the URL (not just in the timeperiod query) - TimelineBarChart: add height prop (default 330) — lets Trends.vue pass :height="100" to render a compact chart - TimelineBarChart: month-view x-axis now uses format_date_short instead of format_day_of_month; removes the stale FIXME comment - Trends: pass :timeperiod_start and :timeperiod_length to aw-timeline-barchart so multi-day labels show actual dates instead of bare day numbers Co-Authored-By: Bob <bob@superuserlabs.org> Git-Session-Id: 09fa
b7bee72 to
741d01f
Compare
Git-Session-Id: 881d3410-60d8-5565-b68b-9328c5780bbc
|
Conflicts are cleared: the branch owner rebuilt this on current master as The check also caught two chart fixes described above that were missing from the rebuilt diff: Focused chart/timeperiod tests: 32 passed; ESLint and commit hooks passed. The full local suite has 565 passing tests and four failures caused by the shared dependency install missing |
|
Integrated the pending chart correction into this PR's branch: head is now Verification: 32 chart/timeperiod tests passed, ESLint passed, and the production Vite build passed after preparing the media assets. The full local suite still has the same four missing-Unicode-dependency failures (565 tests pass). Fresh CI is pending; the old Greptile 5/5 is for the previous head, not this revision. |
🤖 AI code reviewSafe to merge — 1 P1 disposed (rejected)Updated after inline dispositions on finding threads — this is the current state; the verdict below is frozen at review time and is kept as the historical record of that pass. Finding disposition
This PR fixes several issues in the Activity and Trends views and the TimelineBarChart component. It adds a Not safe to merge — 1 P1 openConfidence 3/5 1 finding · ❌ 1 P1❌ P1 high — In How this was verified: Traced the timezone handling: currentStart is a moment in local time, toISOString() converts to UTC. The labels computed in TimelineBarChart uses new Date(start) and setHours(12) in local time. For timezones behind UTC, the date will be shifted back one day. Checked the timezone logic with a concrete example. Consensus: 3/3 passes agreed Files changed (4) — the diff as I read it
Previous review passes
Reviewed Maintainer commands
|
Fixes for bugs found during v0.14.0 marketing screenshot generation (#1058).
Changes
Activity.vue— snap URL dates to period start/#/activity/@all/year/2026-10-05previously queried 2026-10-05→2027-10-05 because_dateused the raw URL date. Now snaps tostartOf(period)for week/month/year so arbitrary URL dates always produce canonical period-aligned queries. Week snapping honoursstartOfWeek: Saturday(moment's locale week start is Sunday).TimelineBarChart.vue— fix height prop, x-axis labels, and y-axis scaleheightwas not a declared prop (hardcoded to 330px), so:height="100"from callers (Trends, Report) was silently dropped. Added the prop with default 330.responsive/maintainAspectRatiomisplaced: these were inchartDatainstead ofchartOptions, so chart.js ignored them and the height prop had no effect. Moved tochartOptions.1, 2, ..., Nor hour ticks; now shows actual month-day dates whentimeperiod_startis provided.suggestedMax: 1(1 hour) and fine step size were incorrectly applied to multi-day periods where daily totals can reach 12+ hours. Now only applied for single-day views.Trends.vue— pass timeperiod props to barchartPasses
currentStartand[periodDays, 'days']so the barchart can compute correct date labels and scale. Also sets a reasonableheight(200px).Remaining items from #1058
Work report host select— fixed on master by fix(work-report): name hosts by bucket hostname and query their real bucket ids #1067Fixes #1058 (partial)