Commit Graph

102 Commits

Author SHA1 Message Date
root 805ceca152 fix: 8 bugfixes — current undefined, auth email, sequential statuses, problem dialog, action log details, KPI layout, date sort, driver lock 2026-05-28 10:03:19 +00:00
root 2ee437e83e fix: add Ошибки tab to admin nav + already fixed client→supabase in ErrorLogPanel 2026-05-27 15:33:06 +00:00
root 7dfdd91798 fix: comprehensive error logging — all errors now captured in client_error_logs
- safeSupabaseCall: logs caught errors via logError
- AuthContext: logs sendOtp, verifyOtp errors
- ErrorLogPanel: fixed client→supabase reference in delete functions
- AuthContext: sets window.__supersam_user_id__ on auth state change
2026-05-27 15:30:33 +00:00
root dac8450586 feat: action_logs — журнал действий сотрудников с фильтрами 2026-05-27 15:12:46 +00:00
root 8f50a68687 feat: delivery_date_source tracking + manual date in analytics funnel 2026-05-27 14:59:57 +00:00
root f90b476bfd fix: hide delivery choice flow after save, remove confusing hero block 2026-05-27 14:40:20 +00:00
root 136e5c826a fix: parseOrderList collects ALL source orders, edge fn returns orderItems 2026-05-27 14:36:00 +00:00
root d0f2a72dda feat: stop words CRUD + client-side filtering 2026-05-27 14:28:52 +00:00
root a764213a77 feat: logistics board as grouped tables with column headers 2026-05-27 14:16:00 +00:00
root f8c6c538b7 compact: logistics readiness cards — single-line on desktop, stacked on mobile 2026-05-27 14:12:39 +00:00
root 0930ea9c26 fix: back button uses browser history instead of hardcoded /dashboard 2026-05-27 14:06:54 +00:00
root db555bbf55 remove: drop readiness column from orders table 2026-05-27 14:03:57 +00:00
root d43dd04e9b feat: add orders table tab for logistician role 2026-05-27 13:59:21 +00:00
root 8dcab4da77 fix: show delivery date card for agreed+ statuses, not just agreed 2026-05-27 12:57:31 +00:00
root 470270118b fix: driver_assigned status on assign + driver column in table 2026-05-27 12:48:48 +00:00
root 58dc110007 feat: allow admin/logistician to re-edit delivery date after agreement 2026-05-27 12:44:43 +00:00
root 1f285ea718 feat: driver assigned confirmation block in delivery card 2026-05-27 12:41:17 +00:00
root 19bed475ee feat: delivery date in table+card, driver assign preserves agreed status 2026-05-27 12:39:02 +00:00
root 9ec7d8e8ae fix: assign driver preserves agreed+ statuses instead of downgrading to driver_assigned 2026-05-27 12:34:41 +00:00
root a8d54699ff fix: restrict agreed/driver_assigned status buttons, show hints instead 2026-05-27 12:26:21 +00:00
root 0f32d6d73a feat: URL-based navigation via ?tab= param for shareable links 2026-05-27 12:21:32 +00:00
root 15f2ab3cde refactor: PATCH user via supabase client, not edge function 2026-05-27 12:12:44 +00:00
root fd3f738b9f fix: no default role, placeholder for role dropdown 2026-05-27 12:01:45 +00:00
root cee5acab1d fix: modal styling - solid bg, full-width dropdown, labels 2026-05-27 11:59:43 +00:00
root e04485c446 feat: add-user modal dialog — compact, centered, backdrop 2026-05-27 11:53:54 +00:00
root 696f275567 fix: simple add-user form — 3 fields + small button 2026-05-27 11:50:12 +00:00
root 9009ffdfb0 feat: manage-users edge function, admin CRUD via API instead of direct supabase.auth.admin 2026-05-27 11:28:53 +00:00
root b9b227e524 feat: UserManagementPanel — themed dropdown, inline edit name/email/role 2026-05-27 11:23:37 +00:00
root bb6708e94b fix: mega_admin in GroupDetailPage + OrderDetailPanel role checks 2026-05-27 11:19:43 +00:00
root c59a806c2c fix: mega_admin role in UI checks + fix UserManagementPanel client→supabase 2026-05-27 11:17:41 +00:00
root 58a96355f1 fix: replace createClient with shared supabase singleton in useAdminStats and errorLogger 2026-05-27 10:59:37 +00:00
root 2fea387d43 fix: use shared supabase client with auth session in admin panels
- UserManagementPanel: replace createClient() with supabase from supabaseClient
- ErrorLogPanel: same — reuse authenticated supabase singleton
- Remove production_lead role from ROLES/ROLE_LABELS/ROLE_TONES
- Remove service_role key dependency — RLS handles auth
- Fixes: admin Users tab showing empty (RLS couldnt resolve auth.uid())
2026-05-27 09:50:07 +00:00
root c996805122 fix: duplicate client declaration 2026-05-27 08:55:35 +00:00
root f4a4082677 fix: remove service_role from ErrorLogPanel - use anon key + RLS 2026-05-27 08:54:49 +00:00
root 3934e6a872 feat: error log panel - delete, export JSON/CSV, select rows 2026-05-27 06:14:33 +00:00
root f451add13c fix: replace assign_driver RPC with direct supabase update 2026-05-26 19:55:35 +00:00
root 41e36299b7 fix: persist signed-out flag in sessionStorage to block auto-login after logout 2026-05-26 17:53:21 +00:00
root 8a8446bfec fix: prevent session restore after signOut with signedOutRef flag 2026-05-26 14:43:43 +00:00
root 844f052462 fix: kill session on signOut, .maybeSingle() for 406, remove StrictMode 2026-05-26 14:36:50 +00:00
root cbc6242613 fix: remove TS annotations from jsx file 2026-05-25 15:34:03 +00:00
root ca6f160073 feat: secure auth storage - obfuscated sessionStorage instead of plaintext localStorage 2026-05-25 15:32:17 +00:00
root cf18ecb6ff fix: funnel show all steps, center KPI, top nav, roles RU, admin users tab 2026-05-25 13:17:24 +00:00
root 0d5fb1b79a mobile: responsive admin dashboard 2026-05-25 12:57:46 +00:00
root 79e1173dd3 funnel: outcomes only, SMS separate panel 2026-05-25 12:47:57 +00:00
root 011dd08f08 bump: SW cache v4 to force cache invalidation 2026-05-25 12:41:25 +00:00
root 40b28be0ee fix: automation funnel — correct data logic, remove emojis, rename to Воронка согласования 2026-05-25 12:31:58 +00:00
root 89d6a01b68 feat: add PWA install button to header 2026-05-22 14:10:08 +00:00
root a04e8edb6e feat: auto-restore push subscription + bump SW cache v3 2026-05-22 11:18:58 +00:00
root 5f88b2ca65 feat: role-based notification settings, push via DB trigger 2026-05-22 11:11:01 +00:00
root f099cf20d8 fix: update VAPID public key to match server-side keys 2026-05-22 10:59:39 +00:00