Commit Graph

55 Commits

Author SHA1 Message Date
a044afc614 updates on the changes and fix on the all the pages 2026-09-19 12:09:45 +05:30
8e87947c5f updates on the ui changes and more things 2026-09-19 11:43:00 +05:30
b1747480df docs: CLAUDE.md dock width follows the code to 20vw
The assistant rules file documented a 70/30 split and
`--dai-dock-width: max(340px, 30vw)`. The code now reads
`clamp(320px, 20vw, 460px)`, so the doc was describing a layout that no
longer exists — and it is an instruction file, so a stale value there
gets implemented rather than questioned.

Records the three width regimes, the 900px overlay behaviour, that the
floor means 1024px renders at 31% and not 20%, and that DOCK_NORMAL in
AIPanel.jsx must stay byte-identical or the page jumps on first paint.

Also notes in the src/lib/assistant/ copy that it is a duplicate and that
its DoormileAI.css is dead — nothing imports it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 19:27:43 +05:30
1671a5f4b6 Milers rebrand, /doormile/home, and a set of console fixes
Two bodies of work that arrived in one working tree and are intertwined in
four files, so they commit together rather than pretending to a split the
diffs do not have.

TEAM WORK (pre-existing in the tree, uncommitted)

- "Riders" -> "Milers" across en.json and ~20 pages. Done carefully:
  Deliveries.jsx checks BOTH prefixes ("Miler #" and "Rider #") so rows
  written before the rename still render, and routes and query keys stay
  rider*/riderssummary — renaming those would have broken bookmarks and
  cache keys.
- MileTruth assistant rework: rename from "Doormile AI", HStack composer,
  maximise/minimise/reset controls, open state persisted to localStorage.
- New /doormile/home landing page; / and /doormile now redirect there
  instead of /doormile/dispatch. AdminLayout nav restructured with icons
  and descriptions.

FIXES

Tab strip was unreachable (Deliveries: Delivered and Cancelled)
  The pill variant is one non-wrapping inline-flex row. Given less width
  than it needs, flex COMPRESSED it — 872px squeezed into 780px, truncating
  labels inside the buttons — and with nothing scrollable no gesture could
  recover the last two tabs. Four of six tab pages had each hand-rolled the
  same wrapper; Deliveries and CompetitiveIntel had not. Fixed in the
  component, so no page can forget it. Verified in a browser at the real
  content width: 102px of scroll range, "Cancelled" reachable. 11 tests.

Home.jsx crash: Cannot read properties of null (reading 'flow')
  Introduced by the change below, which made deriveVisualData return null.
  All 12 .flow/.table dereferences are now behind visual?. gates.

Home.jsx presented fabricated figures as live operations
  deriveVisualData keyword-matched the prompt and returned hardcoded values
  for whole topics — revenue as a flat Rs 48,650, a workforce of 46 with 38
  active, six named hubs, four booking numbers — ignoring the real result it
  had been handed. Those branches sat ABOVE the one reading res.stats, so
  the correct code was unreachable: asking about revenue could not return
  the real number because a literal answered first.

  Two were worse than wrong figures. The default branch returned a staffing
  table for ANY unmatched question. And the no-answer path built a
  sourceCalls entry claiming /admin/milers had been called, status
  "complete", "46 milers scanned" — forging the provenance trail that exists
  so an operator can check where a number came from. A fabricated figure is
  a bug; a fabricated citation defeats the mechanism for catching one.

  190 lines removed. Every branch now reads the result and returns null when
  there is nothing to draw. No-answer says so; errors report as errors.

  Found while verifying: 'Inactive'.includes('active') is true, so every hub
  counted as active — carried from the original, whose own sample data
  tripped it (six hubs, one Inactive, shown as 6/6). Now an explicit
  vocabulary match, with unknown treated as down: a hub wrongly shown
  offline gets investigated, one wrongly shown online hides an outage.

Home launcher tiles named pages that do not exist
  Every tile now names its destination. Task Board -> Tripsheets,
  Staff -> Milers, Availability -> Milers Summary (it pointed at the same
  page as the tile beside it), Compliance -> Exceptions,
  Invoices -> Bookings, Payroll -> Profitability,
  AI Reports -> Orders Summary. Group headings: WORKFORCE SUITE -> FLEET,
  FINANCE & CRM -> CLIENTS & REVENUE, AI TOOLS -> REPORTS & AI. "Invoices",
  "Payroll" and "CRM" named systems Doormile does not run.

  Four hardcoded badges removed (3, 38, 7, "New"). None was computed. A red
  badge means "this many things need you", and one that never changes
  teaches operators to ignore the real ones.

Navbar MileTruth control misaligned, hover dead
  One cause: a 36px image (h-9 w-9 max-w-none) inside a 32px button. It
  stood proud of the bell and avatar AND covered its own button, leaving
  hover:bg-surface-sunken nowhere to render. Now 20px.

Assistant dock 30% -> 20%, and responsive
  clamp(320px, 20vw, 460px) rather than max(): the cap is what makes a large
  monitor work, since 20vw is 768px at 4K. Verified across seven screen
  classes — 384px/20% at 1920, capped at 460px beyond 2300px, full-width
  overlay at or below 900px. At 1024px the 320px floor wins (31%), because
  20vw would be 205px and too narrow for the composer.

Suggestion chips took a third of the panel
  .dai-suggestions was flex-direction:column, overriding the component's own
  wrap="wrap", so four chips became four full rows. Row + wrap, trimmed
  padding, ellipsis on the text span where text-overflow can act. Measured
  at the 320px floor: 4 rows/177px -> 2 rows/84px, nothing clipped.

Pricing and Customers were unreachable on mobile
  Moving them off the nav bar into the account dropdown removed them from
  the phone entirely — the mobile sheet builds from NAV plus NAV_GROUPS and
  they were in neither. Both stayed routed, so only a typed URL reached
  them. Now one SETTINGS_NAV array that the dropdown and the sheet share.

calculateDrivingDistance was called and never imported
  CreateOrder.jsx:371 — a ReferenceError on every customer-pickup order with
  a pinned collection address, thrown synchronously inside a useEffect so
  the .catch() on that chain could never see it. Neither the build nor the
  lint config catches an unbound identifier in a .jsx file: eslint.config.js
  spreads pluginJs.configs.recommended and then declares its own rules
  object, which replaces the spread rules wholesale, so no-undef has never
  run. A repo-wide sweep with it enabled found this was the only instance.
  Pre-existing; found while auditing the coordinate changes.

Dead code and stale docs
  ALL_DESTINATIONS (declared, never read; its comment claimed it was what
  the mobile sheet renders). --dai-panel-width (declared twice, read
  nowhere) and the max-width:1279px block that only set it. AdminLayout's
  header comment said "three grouped menus (Fleet Ops, Reports, Settings)"
  when there are two, and Settings is a section in the account menu — that
  difference in routing is what caused the mobile gap above.

VERIFIED

878 tests across 26 suites, build clean, no new lint problems. The tab
strip, dock width, chip wrapping and navbar sizing were measured in a real
browser against the shipped stylesheet. deriveVisualData is module-private,
so it was extracted and driven through 16 logic checks.

NOT VERIFIED

/doormile/home has never been rendered in a browser, and the responsive
pass covers the assistant panel only — no page has been viewed at any
breakpoint. Both need a signed-in session. DataTable carries its own
overflow-x-auto and only two fixed widths above 390px exist in src/pages,
but that is grep, not eyes.

STILL OPEN

customerAppBookings.js lost its customerstatus/customerstage grouping in
49ee0c5 and has not been restored, so the Bookings tabs still read only the
operational status. The Status column (Bookings.jsx:98, :415) was never
stage-aware.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 19:21:21 +05:30
05f08efc64 updates on the changes on warning and lat and long fixed to make it good 2026-09-18 11:59:43 +05:30
bc79ba4912 updates on the autocomplete in the create order page 2026-09-11 15:39:35 +05:30
49ee0c5076 updates on the bookings page and updated ai and more thngs 2026-09-11 11:20:38 +05:30
1caa7b71a9 updates on the delviereis page 2026-08-29 16:00:46 +05:30
70cfac8996 updates on the build 2026-08-29 15:42:56 +05:30
3d6160e3f1 updates on the dispatch page preview 2026-08-28 17:14:11 +05:30
8d54a317cc updates on the build regarding the dispatch page design fix 2026-08-28 16:51:17 +05:30
2c892b93c3 updates on the map configuration and the design 2026-08-28 16:42:19 +05:30
01d69e2f4f updates on the dispatch page change rider option 2026-08-28 15:47:36 +05:30
7d72e3a068 updates on the patch updats on the multiple order 2026-08-28 15:34:06 +05:30
904cbd1085 updates on the build regarding the queries page and the dispatch page 2026-08-28 13:21:40 +05:30
a4cc06d516 updates on the milers page and name change 2026-08-28 13:00:05 +05:30
fbf1b31cf7 updates on the design in the multiple order page 2026-08-28 12:17:37 +05:30
5d5a748352 updates on auth for the login creds and data linkage and updates on the deliveries page and queries section and updates on the test files 2026-08-28 11:38:53 +05:30
f48e061138 updates on the datepicker on the orders page and the deliveries page 2026-08-28 11:05:54 +05:30
ee3bcd6c2f updates on the desing 2026-08-27 17:27:13 +05:30
475a8e4c04 updates on the ai bot 2026-08-27 17:17:07 +05:30
1d1e51620e updates on the multiple 2026-08-27 16:58:54 +05:30
c9a80cbd20 updates on the changes 2026-08-27 16:49:09 +05:30
8855b62b39 updated the test 2026-08-27 13:40:48 +05:30
e34e41ca96 updates on the ai bot and the queries and the delivereis page 2026-08-27 13:11:05 +05:30
c6607ae75d updates on the create order design and select location updates 2026-08-27 12:15:31 +05:30
656e180675 updates on the zone selector for the specific login 2026-08-27 12:03:12 +05:30
4be2e73712 changes on the orders page regarding the selection options 2026-08-27 11:41:10 +05:30
4bcf604539 updates on the deliveries page and status updates as well 2026-08-27 10:34:48 +05:30
cf4f4ecd9c initial commit 2026-08-26 15:01:15 +05:30
aa42d9ee81 updates on the ui changes and changed into doormile 2026-08-24 18:10:47 +05:30
dcf9770ada chore: clean up and restructure repository 2026-08-21 11:11:21 +05:30
b2e6868824 update agents skill design 2026-08-20 18:18:10 +05:30
161b237695 update the workspace and skills flow 2026-08-20 11:04:13 +05:30
d3f7f439f6 update Markdown skills 2026-08-19 17:36:27 +05:30
aa2fb41871 workspace upadate 2026-08-17 19:52:44 +05:30
7fa21a4513 fix error line 2026-08-17 17:33:56 +05:30
69b38abced update draft issue 2026-08-15 23:24:06 +05:30
b349f2db61 fix pubilsh job posting 2026-08-14 18:01:43 +05:30
4fdfb90326 update owliver skill 2026-08-14 17:33:16 +05:30
cccada9bd2 position ui and owliver update 2026-08-14 01:18:59 +05:30
1c653264b5 update position page design 2026-08-13 21:41:14 +05:30
6340962907 remove create position button 2026-08-12 19:44:15 +05:30
3beb66059b update ui design for all pages 2026-08-12 18:56:56 +05:30
25c4ee4a6a update hired page 2026-08-11 19:17:40 +05:30
8a256a4de7 fix talent pool ui 2026-08-11 17:09:53 +05:30
7427359967 update ui changes 2026-08-10 19:51:49 +05:30
5cd49a1655 ui changes 2026-08-10 19:36:45 +05:30
409dffe938 fix port 2026-08-10 15:53:53 +05:30
312d2d9f4c fix mobile screen responsive 2026-08-10 14:47:19 +05:30