Hermes
56cb4b460f
fix(analytics): period key '1d' (Сегодня) not in PERIOD_DAYS map — fell back to 30 days; add '1d' to both hooks
2026-08-14 16:00:36 +02:00
Hermes
c4aebb08a4
chore(sw): bump to v113 (timeline SMS state from log)
2026-08-14 15:08:35 +02:00
Hermes
6fe0bfbc73
chore(sw): bump to v112 (endpoint-targeted test push)
2026-08-13 15:03:23 +02:00
Hermes
4fed962f23
chore(sw): bump to v111 (direct test push button on /client)
2026-08-13 14:34:17 +02:00
Hermes
91245169f4
chore(sw): bump to v110 (text-base fix, login link)
2026-08-13 14:26:38 +02:00
Hermes
e21cea1b1c
chore(sw): bump to v109 (test consent page + test push button)
2026-08-13 14:18:49 +02:00
Hermes
045c903074
chore(sw): bump to v108 (root redirect → /client)
2026-08-13 14:09:16 +02:00
Hermes
15132f56e8
feat(client): PWA install — client route, manifest start_url=/client, SW app-shell, invitation links → /client/:token
2026-08-11 13:37:29 +02:00
root
02b70cac22
fix: manifest start_url → /delivery/showcase for client PWA
2026-08-06 17:52:34 +00:00
root
7a702114eb
feat: iOS push instruction banner + fix edge-functions security.ts exports
2026-08-06 17:36:31 +00:00
root
2597835352
fix(mobile): anchor notifications popup to viewport right edge
2026-08-06 16:05:43 +00:00
root
de5130e31f
fix(mobile): anchor install tooltip to viewport right edge
2026-08-06 15:50:44 +00:00
root
6d53625579
fix(mobile): anchor PWA install tooltip to right edge
2026-08-06 15:39:51 +00:00
root
4d47261321
feat(logistics): SMS problem as tag, red highlight for unagreed 2+ days
2026-08-06 15:28:51 +00:00
root
d5849f0ab2
feat(logistics): highlight and filter orders with SMS problems
2026-08-06 15:12:23 +00:00
root
c321353e8f
feat(orders): show SMS delivery confirmation and 2nd-SMS skip reason
2026-08-06 13:55:42 +00:00
root
fefb8065be
perf(dashboard): lazy load order details only when needed; skip fetch on non-order tabs
2026-08-06 13:40:20 +00:00
root
44d3f0f16d
fix(client): compact order composition trigger
2026-08-06 12:10:21 +00:00
root
82d6f4f077
feat(orders): show client push subscription and delivery log
2026-08-06 12:06:11 +00:00
root
ad7b92503c
fix(push): remove monochrome Android badge icon
2026-08-06 11:28:53 +00:00
root
34b01758ef
fix(ui): use СуперСам and normal order composition heading
2026-08-06 11:13:40 +00:00
root
74de57f3fc
fix(ui): use СуперСам and normal order composition heading
2026-08-06 11:12:47 +00:00
root
9be5f81ffe
fix(ui): localize SuperSam name and normalize order headings
2026-08-06 11:11:56 +00:00
root
9e4ce20c96
fix(push): use SuperSam application icon in notifications
2026-08-06 10:15:42 +00:00
root
1922778e0f
feat(push): prepare client subscription test contour
2026-08-06 08:56:12 +00:00
root
98ebc935c2
fix(pwa): force SW bump for tab visibility on mobile
2026-08-06 08:12:56 +00:00
root
8faa839056
chore(pwa): bump cache version
2026-08-06 08:03:11 +00:00
root
811e2a1254
chore(pwa): bump cache version
2026-08-06 07:51:32 +00:00
root
4459d03932
chore(pwa): bump cache version
2026-08-06 07:48:40 +00:00
root
b1a09ae71a
chore(pwa): bump cache version
2026-08-06 07:14:46 +00:00
root
15b69102b0
chore(pwa): bump cache version
2026-08-06 07:11:02 +00:00
root
4bf95064bd
chore(pwa): bump cache version
2026-08-06 07:06:41 +00:00
root
db261f96db
chore(pwa): bump cache version
2026-08-06 07:01:15 +00:00
root
24e708901a
chore(pwa): bump cache version
2026-08-06 06:52:48 +00:00
root
60d6033085
feat(logistics): improve order workflow and aging
2026-08-06 06:52:32 +00:00
root
20873bdc5f
fix: font zones + stale highlight + fmtTime + SW v49
...
- FontSettingsContext: body zone first in CSS (specific zones win)
- Arbitrary px sizes (10-14px) overrides in table/card zones
- fs-zone-table on OrdersTable + LogisticsReadinessBoard
- fs-zone-body/heading/nav in AppShell + const navigate = useNavigate()
- Stale delivery highlight: isStale() 24h + bg tint, isLinkOpened 👁
- fmtTime defined in OrderDetailPanel (was used but never declared)
- SmsStatusCard synced from prod
- SW v49 (fixed: addEventListener was broken by sed)
2026-07-02 14:25:40 +00:00
root
23c0ed78ef
feat: drag-and-drop section ordering in LogisticsReadinessBoard + unified table visuals
...
- LogisticsReadinessBoard: @dnd-kit/sortable for drag-and-drop section reordering
- Drag handle (6-dot grip icon) on left of each section header
- Custom order persists in localStorage (key: logistics-section-order)
- Default: agreed → manual_required → funnel order
- Flat rows (no Button/rounded), matches OrdersTable style
- 7 columns: Клиент | Город | Тип | Дата | Водитель | Статус | Обновлён
- Horizontal scroll: overflow-x-auto + min-w-[1080px]
- Type column wide enough for Самовывоз/Доставка in one line
- OrdersTable: widened Type column (minmax 70px→100px), min-w 920→1080px
for consistent horizontal scroll across tables
2026-06-30 12:21:54 +00:00
root
4215001ab7
feat: test_mode toggle in admin + cache bump v10
...
- test_mode + test_phone columns in sms_campaign_settings (DB)
- Script reads test_mode from DB settings, not env vars
- Admin panel: toggle Test/Production mode with visual indicator
- test_mode=true (default): SMS only to test_phone
- test_mode=false: SMS to real customers
- Service worker cache v9 → v10 (fixes white screen)
2026-06-23 08:58:59 +00:00
root
17fe2125a5
fix: replace Button with native button for mobile cards — proper left-align
...
Button component forces inline-flex items-center justify-center rounded-full
which was overriding all alignment. Switched to native <button> with
flex flex-col items-start justify-start. SW v8→v9.
2026-06-18 18:35:42 +00:00
root
28ccb655d3
fix: mobile card — no phone, show ordersTotal badge, cache-control headers
...
Mobile: removed phone + buildGroupSummary, kept name + type badge + status +
order numbers + count badge (N сч.)
Caddyfile: Cache-Control immutable for assets, no-cache for HTML+SW
SW v7→v8
2026-06-18 17:56:37 +00:00
root
7b773dd4aa
fix: mobile card left-align (!items-start !justify-start override Button center)
...
Button base has inline-flex items-center justify-center — overriding with
!important Tailwind utilities for mobile cards. SW cache v6→v7.
2026-06-18 17:48:19 +00:00
root
921b7dbf00
fix: bump SW cache v5→v6, force client cache bust
2026-06-18 17:33:14 +00:00
root
e05613ac1d
feat: add pickup (самовывоз) delivery type
...
- New status pickup in delivery workflow
- DB: delivery_type, pickup_date, pickup_time_slot columns
- Client page: tabs Доставка/Самовывоз with PickupSlotsPicker
- PickupSlotsPicker: today/tomorrow/day-after with half-day slots
- Storage notice: free 2 workdays, then 300₽/day
- OrderDetailPanel: delivery type tabs, pickup date/time, status button
- Edge function: delivery_type/pickup fields in confirm-delivery-choice
- RPC: confirm_delivery_choice_by_token updated for pickup
- orderGroupRepository: full pickup field mapping
2026-06-10 12:02:46 +00:00
root
011dd08f08
bump: SW cache v4 to force cache invalidation
2026-05-25 12:41:25 +00:00
root
a04e8edb6e
feat: auto-restore push subscription + bump SW cache v3
2026-05-22 11:18:58 +00:00
root
dc9d7de60f
feat: push notifications + PWA notifications UI
...
- VAPID keys generated for web push
- push_subscriptions, notifications, notification_preferences tables
- DB triggers: auto-notify on order status change, driver assignment
- Edge functions: send-push-notification, subscribe-push, unsubscribe-push
- Frontend: NotificationBell, NotificationSettings components
- usePushNotifications hook (subscribe/unsubscribe push)
- useNotifications hook (fetch + realtime + mark read)
- Service worker: push event handler + notification click
- AppShell: notification bell in header
- DashboardPage: wired notifications
- manifest.webmanifest: name updated to SuperSam
- Caddyfile: CSP allows wss:// + fcm push
2026-05-22 10:48:33 +00: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
Codex
b40a4a553e
Initial import
2026-03-14 18:40:54 +03:00