SuperSam — доставка строительных материалов
Go to file
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
.vscode Add logistics UI actions and demo login buttons 2026-05-13 18:59:30 +03:00
docs fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
public fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
scripts refactor: align delivery flow with 1c imports 2026-04-13 16:24:04 +03:00
src fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
supabase fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
.env.example fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
.gitignore fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
.opencode.json Add logistics UI actions and demo login buttons 2026-05-13 18:59:30 +03:00
1 fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
Caddyfile fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
Dockerfile fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
QWEN.md feat: complete delivery workflow updates 2026-04-13 16:32:18 +03:00
README.md Polish demo UI and delivery filters 2026-05-13 18:59:30 +03:00
anonymize_xml.py Add logistics UI actions and demo login buttons 2026-05-13 18:59:30 +03:00
deno.lock feat(delivery): auto-create invitation links 2026-05-13 18:59:30 +03:00
docker-compose.app.yml fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
docker-compose.yml feat: complete delivery workflow updates 2026-04-13 16:32:18 +03:00
eslint.config.js Polish demo UI and delivery filters 2026-05-13 18:59:30 +03:00
index.html fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
package-lock.json fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
package.json fix: RLS recursion, driver UI, auth errors, status counts 2026-05-20 16:25:05 +03:00
postcss.config.js Initial import 2026-03-14 18:40:54 +03:00
tailwind.config.js Initial import 2026-03-14 18:40:54 +03:00
vite.config.js Initial import 2026-03-14 18:40:54 +03:00

README.md

Construction Delivery Control

React-приложение для управления доставкой заказов. В текущем контуре есть три внутренние роли и публичная страница клиента: менеджер, логист, водитель и клиент.

Запуск

npm install
npm run dev

Главный документ

  • Обзор системы — назначение приложения, роли, сценарии, клиентский flow и подготовка к показу.

Что уже есть

  • OTP-вход по email через Supabase Auth.
  • Role-based dashboard для менеджера, логиста и водителя.
  • Карточка заказа с составом, комментариями и историей.
  • Публичная страница /delivery/:token для выбора даты, половины дня и просмотра состава заказа.
  • Supabase SQL-схема, таблицы приглашений и Edge Functions для invitation flow.
  • Документация по продукту, архитектуре и сценариям.

Структура

  • src/ — интерфейс и клиентская логика.
  • supabase/schema.sql — структура БД, роли, индексы, RLS, триггеры.
  • supabase/functions/ — Edge Functions для приглашений, статусов и чат-коммуникаций.
  • supabase/seed/stage-1-demo.sql — набор seed-данных для показа заказчику.
  • docs/architecture.md — архитектура фронтенда и модулей.
  • docs/product-overview.md — общий обзор продукта, ролей и сценариев.
  • docs/scenarios.md — сценарии жизненного цикла заказа.