Skip to content

Technician day view "Ma journée" (mobile) - #32

Merged
Installation-04 merged 5 commits into
mainfrom
claude/feature-day-view
Nov 5, 2026
Merged

Installation-04 merged 5 commits into
mainfrom
claude/feature-day-view

Conversation

@Installation-04

Copy link
Copy Markdown
Owner

Summary

  • New mobile-first page /journee ("Ma journée", sidebar entry) listing the current user's work orders: in progress, due today, overdue, plus those finished today.
  • Cards show client, equipment, address (map link), phone (tel link), one-tap Démarrer / Terminer / Rouvrir, quick note (added to the client logbook), and a link to the client's work orders tab (/clients/:id?tab=workorders).
  • Phone landing: non-admin users on a screen under 768px are redirected from / to /journee once per browser session.
  • Backend: GET /api/work-orders/my-day[?date=YYYY-MM-DD] (own orders only, client's local date) and POST /api/work-orders/:id/status (in_progress/done; assignee or admin; cancelled orders refused). Both in the new routes/myday.js.
  • ClientDetail now honours ?tab=. CHANGELOG entry under "Non publié".

Tests

  • backend/test/myday.test.js (5 tests: auth, date validation, filtering and ordering, transitions and permissions); full npm test 196/196 pass against local Postgres; frontend npm run build OK.
  • Checked with Playwright at 360px, light and dark: redirect on landing, no horizontal scroll, all touch targets at least 44px, start, note, finish flow.

Generated by Claude Code

…the technician's clock, single status hook

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
…stale-response guard, ?tab= fallback

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
# Conflicts:
#	CHANGELOG.md
@Installation-04
Installation-04 marked this pull request as ready for review November 5, 2026 03:07
…intenance

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
@Installation-04
Installation-04 merged commit 2d031d0 into main Nov 5, 2026
6 checks passed
@Installation-04 Installation-04 mentioned this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants