caterium-app/public
pavlov346346-source ab6d41ba0e
Some checks failed
Caterium QA / qa (push) Has been cancelled
feat: server-side order audit log for company owners
Owners/admins can now see, on the Аккаунт settings tab, a
tamper-proof journal of who created, edited or deleted each order
and when — including employees who have orders.* permissions. It is
written from inside sun_save_app_state itself (which already
diffs orders server-side for permission checks), so it can't be
spoofed or wiped by the client, unlike the old per-browser
'История изменений' list which only covered the current device and
had a 'Clear history' button anyone could press.

- New table public.sun_order_audit_log (workspace, order id, action,
  actor, summary, details), locked down to security-definer writes
  only — no client insert/update/delete policy exists.
- New RPC sun_list_order_audit(workspace, limit), admin-only.
- New settings card 'Журнал заказов' reading it, admin-only,
  classified into the existing Аккаунт settings tab.
- Verified end-to-end against a local PGlite instance: create/edit/
  delete each produce one correctly-attributed row, and a non-admin
  member is denied read access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 18:56:39 +03:00
..
api Correct support mailbox to support@caterium.ru (#42) 2026-09-21 11:04:06 +03:00
catalog Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
core fix: always show the per-guest price in client banquet menu 2026-09-22 18:00:52 +03:00
demo feat: add photos for the 34 training-catalog items that had none 2026-09-22 17:00:45 +03:00
fonts Restore distinct proposal designs and improve PDF typography and pagination 2026-09-18 04:05:36 +03:00
help Remove device PIN and fit calendar to mobile screens 2026-09-18 20:43:09 +03:00
legacy Optional per-profile training catalog with reversible example visibility (#35) 2026-09-20 12:18:40 +03:00
offer-gallery Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
offer-templates Refine six client proposal layouts and transparent company logos 2026-09-18 19:55:04 +03:00
vendor Route cloud access through Caterium and vendor login SDK 2026-09-18 19:07:47 +03:00
.htaccess Cache optimized trial photos for legacy URLs in the installed app 2026-09-18 04:59:16 +03:00
app-runtime.js feat: server-side order audit log for company owners 2026-09-22 18:56:39 +03:00
caterium-login-logo.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
caterium-mark-light.svg feat: add approved Caterium mark for light login 2026-09-12 05:56:39 +03:00
index.html fix: move payment colors into Оформление tab, unify reference-list cards 2026-09-22 18:48:20 +03:00
manifest.webmanifest brand: update PWA identity to Caterium 2026-09-11 10:03:25 +03:00
pwa-icon-192.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
pwa-icon-512.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
refresh-login-20260912.html fix: add one-click PWA cache refresh for login 2026-09-12 08:27:31 +03:00
service-worker.js fix: always show the per-guest price in client banquet menu 2026-09-22 18:00:52 +03:00
sun-logo.png Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00