shoc-frontend-new/src/app/(protected)/workorders/_hooks
Arthur Bassi 4af826a1e0
feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100)
* fix(work-orders): address wizard create review findings

[recover] remove malicious eslint payload (was 166c63e4)

* fix(work-orders): remove legacy completedDate EditWorkorder path

[recover] remove malicious eslint payload (was f4e6132b)

* fix(work-orders): use local calendar day for completedDate

Restore todayIso() after parent merge reintroduced UTC slice, and keep the wizard-date-utils regression test.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(work-orders): send wizard status and clear POC notes on site change

Map draft.status to lifecycleStatus on board create, and reset pocNotes with POC fields when the wizard site changes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(query): scope broadcast channel per account and clear on auth

Isolate TanStack Query broadcast by userId, dispose and clear on
logout/401, and extract vendor filter drawers for governance.

* feat(work-orders): board wizard create with service notes

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(work-orders): enforce single-service wizard create per SH-118

Use single service selection in the wizard and omit extraServices from board create.

* fix(vendors): restore filter drawer labels for e2e and visual CI

Use VendorFilterOptions again and keep the Apply filters footer label expected
by vendor Playwright specs and the committed visual baseline.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 11:52:48 -03:00
..
build-resolved-board-search-params.ts refactor(work-orders): pass board-api governance maintainability gate 2026-07-28 09:56:27 -03:00
create-comp-doc-dialog-actions.ts fix(work-orders): harden CompDoc generate seed persist and blob revoke 2026-08-05 10:54:33 -03:00
use-comp-doc-dialog.ts fix(work-orders): seed CompDoc address after location settles [SH-116] 2026-08-06 10:14:29 -03:00
use-dispatch-create-controller.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-dispatch-detail-controller.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-dispatch-uplift-controller.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-media-upload-session.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-table-sort.ts feat(work-orders): add board table core and filters 2026-07-23 13:47:08 -03:00
use-vendor-editor.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-work-order-view-controller.ts feat(work-orders): query broadcast, remove auth bypass, dispatch polish (#100) 2026-08-14 11:52:48 -03:00
use-work-order-view-page.ts feat(work-orders): comment @mentions autocomplete (SH-217) (#91) 2026-08-11 14:07:02 -03:00
use-work-orders-board-source.ts refactor(work-orders): pass board-api governance maintainability gate 2026-07-28 09:56:27 -03:00
use-work-orders-list-filters.ts feat(work-orders): integrate board list, search and field patch API 2026-07-27 10:19:34 -03:00
use-work-orders-list-page.ts fix(work-orders): use local calendar day for slide-over completedDate 2026-08-10 17:12:13 -03:00
use-work-orders-table-data.ts refactor(work-orders): pass board-api governance maintainability gate 2026-07-28 09:56:27 -03:00
use-work-orders-table-local-state.ts refactor(work-orders): pass board-api governance maintainability gate 2026-07-28 09:56:27 -03:00
use-work-orders-table-ui-state.ts fix(work-orders): extract inline dialog state and enable Schedule On clear 2026-08-10 17:12:09 -03:00