[AAP-95233] Fix Job Activity chart clipping current day #3693
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 340 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3693"
general
weight: 0.35
nixocio
Summary
The Job Activity chart did not show the current-day x category even though
GET /dashboard/graphs/jobs/returns current-day counts. Triage confirmed a UI presentation issue, not missing API data.Root cause:
JobsChartlabeled controller graph buckets with local calendar dates while the API uses UTC day boundaries, and status series could expose different day lists, so the last day did not always appear as its own category.Fix (AWX only):
Fixes: AAP-95233
Before:
<img width="1920" height="1012" alt="Screenshot From 2026-10-01 18-11-01" src="https://github.com/user-attachments/assets/c30a21c2-a6f9-4220-9b74-90b0edc14c18" />
After:
<img width="1920" height="1012" alt="Screenshot From 2026-10-02 10-19-04" src="https://github.com/user-attachments/assets/e48ffa4c-eb9b-47f7-a242-a87e47eb3e28" />
Type of Change
Risk Analysis - REQUIRED
PageDashboardChartunchanged vsdevel).Testing
Ephemeral E2E Tests
Once PR is ready and preliminary checks pass, trigger tests by posting a comment
/run-playwrighton this PR.Manual Testing
1. Open Overview → Job Activity (Past month, All job types).
2. Run jobs on the current UTC/calendar day.
3. Hard refresh; confirm the last x-axis label is today (e.g.
10/1) and counts match the jobs graph API response.4. Confirm there is no large empty margin to the right of the last date tick.
Automated
frontend/awx/overview/charts/jobsChartUtils.test.ts— UTC labels underAmerica/New_York, day-period formatting, series alignmentfrontend/awx/overview/cards/AwxJobActivityCard.test.tsx— renders current-day label via realJobsChart→PageDashboardChartpath (MSW)playwright/tests/integration/platform/overview/job-activity-chart.spec.ts— current-day tick visible on overview when AWX is present