Commit Graph

39 Commits

Author SHA1 Message Date
Codex 874e9b3885 fix: debug order composition parsing and add visible error info 2026-05-20 16:25:06 +03:00
Codex 458414636d fix: parse order composition from source_orders field 2026-05-20 16:25:06 +03:00
Codex 3728ed0e95 fix: include order_list fields in queries and map to frontend object 2026-05-20 16:25:06 +03:00
Codex 0056e71b39 fix: add explicit text color and order composition to OrderDetailPanel 2026-05-20 16:25:06 +03:00
Codex f6bbfe1ba2 fix: add explicit text color to OrderDetailPanel value fields for dark theme visibility 2026-05-20 16:25:05 +03:00
Codex b9c6bb2810 fix: RLS recursion, driver UI, auth errors, status counts
- Fix infinite RLS recursion in users policies via current_role_name()
- Add is_admin() helper and simplify users select policies
- Fix order_groups insert for service_role (n8n integration)
- Fix status option counts in dropdown (LogisticsReadinessBoard)
- Add driver delivery status buttons (loaded, on_route, delivered, problem, cancelled)
- Replace driver date range filters with single date picker + date pills
- Hide SMS/internal data from driver view in OrderDetailPanel
- Fix Edge Function error messages in OTP flow (read error.context body)
- Add update_delivery_status RPC for driver workflow
- Remove customer column from order_groups fetch (DB schema mismatch)
- UI: swap filter/search positions, limit modal width, status label cleanup
2026-05-20 16:25:05 +03:00
Test 5e9da52690 Revert "test push"
This reverts commit db2ba331eb.
2026-05-20 13:09:02 +00:00
Test db2ba331eb test push 2026-05-20 13:08:57 +00:00
mihail 488e478841 Merge pull request 'fix(delivery): simplify public choice flow' (#2) from codex/delivery-rpc-deploy into main
Reviewed-on: https://git.supersamsev.ru/mihail/supersam/pulls/2
2026-05-14 18:17:59 +00:00
Codex 496abc761b fix(delivery): simplify public choice flow 2026-05-14 21:10:27 +03:00
mihail 2367ff2554 Merge pull request 'fix(delivery): show invoice refs in client flow' (#1) from codex/delivery-rpc-deploy into main
Reviewed-on: https://git.supersamsev.ru/mihail/supersam/pulls/1
2026-05-14 10:22:16 +00:00
Codex fc74241378 fix(delivery): show invoice refs in client flow 2026-05-14 12:51:25 +03:00
Codex eeb2620547 fix(delivery): switch public flow to rpc 2026-05-13 18:59:30 +03:00
Codex 7e399f2517 fix(delivery): tighten public flow
Filter client delivery slots to tomorrow and the day after,\nkeep invalid delivery times out of the UI, and show a clearer\nerror state when saving fails.
2026-05-13 18:59:30 +03:00
Codex 633973142d fix(delivery): load links and schedule SMS 2026-05-13 18:59:30 +03:00
Codex b79de7afba feat(delivery): auto-create invitation links
Add a Supabase trigger that creates delivery invitations and writes delivery_link on order_groups changes. n8n can now consume link_ready rows without calling the edge function first.
2026-05-13 18:59:30 +03:00
Codex 684424dd25 feat(order-groups): wire driver delivery flow 2026-05-13 18:59:30 +03:00
Codex f2230f3277 Add logistics UI actions and demo login buttons
- Fix bug in transfer-to-logistics: body.note was incorrectly used for delivery_agreement_status
- Add quick actions section in OrderDetailPanel for status changes (visible to role)
- Add driver assignment buttons for logistician/admin
- Add demo login buttons for all roles (works with real Supabase config)
- Add loginAsDemoUser function to AuthContext for quick demo login
2026-05-13 18:59:30 +03:00
Codex 219670583b Add security hardening SQL patch 2026-05-13 18:59:30 +03:00
Codex e29a51e7ea Harden auth and delivery endpoints 2026-05-13 18:59:30 +03:00
Codex 5dcfa80940 Polish demo UI and delivery filters 2026-05-13 18:59:30 +03:00
root 72673e01fc test: verify hooks work 2026-05-03 16:59:32 +00:00
root d44d944517 Add deployment config files and supabaseClient lock fix 2026-05-03 16:44:58 +00:00
Codex b3b8657b43 fix: merge saved delivery status into choice block 2026-04-16 19:34:57 +03:00
Codex a867bf5464 fix: remove duplicate saved choice block 2026-04-16 18:18:45 +03:00
Codex 5142ff30db fix: persist saved client delivery choice 2026-04-16 18:04:45 +03:00
Codex de0cf49490 fix: show saved client delivery choice 2026-04-16 17:41:46 +03:00
Codex 31388f267d fix: make client delivery selection explicit 2026-04-16 17:23:43 +03:00
Codex 3b4b6648ff fix: make client flow load without edge function 2026-04-16 17:00:31 +03:00
Codex ffc7f3a97d fix: speed up otp login 2026-04-16 16:30:36 +03:00
Codex a5113a2ed5 feat: simplify delivery roles and docs 2026-04-16 13:31:17 +03:00
Codex c28c826601 feat: show client order items in delivery flow 2026-04-16 12:42:41 +03:00
Codex ca72a4e662 feat: document product and wire real client flow 2026-04-14 23:20:50 +03:00
Codex b147d632e8 feat: add role switch login and clean production copy 2026-04-14 23:01:02 +03:00
Codex 49e60d48c1 feat: complete delivery workflow updates 2026-04-13 16:32:18 +03:00
Codex 1798e3acfd refactor: align delivery flow with 1c imports 2026-04-13 16:24:04 +03:00
Codex a534d53e61 feat: tighten email otp auth flow 2026-04-09 22:35:13 +03:00
Codex 0448db3354 chore: ignore worktrees 2026-04-09 22:28:14 +03:00
Codex b40a4a553e Initial import 2026-03-14 18:40:54 +03:00