New React Backend Repository
Find a file
Alexandre Brandizzi 5877f7817f fix(dashboard): bucket trend by calendar ScheduledDate (SH-350)
ScheduledDate is persisted as a midnight calendar value (board create writes
request.ScheduledDate.Value.Date; board patch writes the parsed .Date into a
datetime2 column with no offset). GetTrendAsync treated it as a UTC instant and
converted to America/New_York, so midnight became 19:00/20:00 the previous day
and every board-scheduled work order fell into the prior bucket: a job scheduled
today read as yesterday and overdue, and the Today bucket showed zero.

Bucket by DateOnly.FromDateTime(scheduled.Date) with no conversion, matching
DashboardMetrics and WorkOrderDerivedFields, so Trend and Stats agree on the
same rows. Rewrite the daily and yearly trend tests to assert calendar-date
classification (the removed conversion had encoded the shift into their
expectations) and add a regression test that a midnight-today work order stays
in the Today bucket and is not overdue.
2026-09-16 19:57:09 -03:00
.ebextensions fix(eb): configure work-order webhook HMAC secret source (#41) 2026-07-30 11:44:43 -03:00
.github fix(deploy): apply the health-convergence fix to the dev Terraform rollback 2026-09-10 10:55:45 -03:00
Api.SeaHavenIndustries feat(dashboard): add trend metrics (SH-350) 2026-09-16 18:42:26 -03:00
Api.SeaHavenIndustries.Tests fix(dashboard): bucket trend by calendar ScheduledDate (SH-350) 2026-09-16 19:57:09 -03:00
Data.SeaHavenIndustries feat(locations): manage ordered site contacts 2026-09-15 19:03:54 -03:00
docs fix(observability): preserve backend release identity (#114) 2026-09-15 16:08:14 -03:00
postman docs: add complete dev Postman API collection (#119) 2026-09-15 16:39:49 -03:00
scripts docs: add complete dev Postman API collection (#119) 2026-09-15 16:39:49 -03:00
SeaHaven.DataServices feat(dashboard): add vendor insights (SH-349) 2026-09-16 18:10:42 -03:00
SeaHaven.Services fix(dashboard): bucket trend by calendar ScheduledDate (SH-350) 2026-09-16 19:57:09 -03:00
SeaHaven.Services.Tests fix(work-orders): address procurement review findings 2026-07-27 14:40:17 -03:00
SeaHavenIndustries chore(config): document Phase 7 feature flags in appsettings and .env.example 2026-07-13 13:23:54 -03:00
SeaHavenIndustries.Tests fix(work-orders): keep SH placeholder WO numbers and block downgrades (#123) 2026-09-16 15:01:10 -03:00
terraform fix(deploy): treat applied HCP runs as success (#108) 2026-09-08 13:26:11 -04:00
.env.example feat: add API Sentry tracing (SH-298) (#105) 2026-09-04 14:11:32 -03:00
.gitattributes Initial commit 2024-09-28 14:58:36 -04:00
.gitignore feat(deploy): move dev application CD through Terraform (#102) 2026-09-03 14:12:06 +00:00
AGENTS.md chore(governance): enforce backend architecture and quality gates (#31) 2026-07-24 17:41:10 -03:00
ARCHITECTURE_AND_CODE_QUALITY.md chore(governance): enforce backend architecture and quality gates (#31) 2026-07-24 17:41:10 -03:00
BACKEND_ARCHITECTURE.md refactor: enforce backend boundaries and optimize dispatch (#30) 2026-07-24 17:35:34 -03:00
QUALITY_GATES.md chore(terraform): remove tf-poc rehearsal (SH-300) (#95) 2026-09-03 10:40:32 -04:00
REVIEW_AND_PR_FRAMEWORK.md feat(deploy): move dev application CD through Terraform (#102) 2026-09-03 14:12:06 +00:00
SeaHavenIndustries.sln test(work-orders): add Phase 0 domain unit tests 2026-07-02 09:19:28 -03:00
TODO.md chore(docs): remove Phase 7 ops markdown from PR scope 2026-07-13 13:51:34 -03:00