admin and Claude Sonnet 5.5
17c32ecd04
fix(trucks): skip active-site check when PATCH leaves site unchanged
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:53:32 +08:00
admin and Claude Sonnet 5.5
5f1d7a6ed4
feat(report): filter truck list by selected site
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:50:00 +08:00
admin and Claude Sonnet 5.5
149704898d
feat(trucks): site select, site label and edit modal in admin
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:48:15 +08:00
admin and Claude Sonnet 5.5
f3f3aec59f
feat(trucks): admin API accepts site_id and partial edits
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:46:31 +08:00
admin and Claude Sonnet 5.5
867b725262
feat(trucks): site_id column and site/truck helpers
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:44:37 +08:00
admin and Claude Sonnet 5.5
fd7a55337f
docs: implementation plan for truck-to-site link
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:25:16 +08:00
admin and Claude Sonnet 5.5
2a9d32d1d0
docs: spec for linking trucks to a site
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:17:15 +08:00
admin and Claude Sonnet 5.5
c4377fb705
Merge feat/zone-capa-proof: zone picker, CAPA completion proof, test-data cleanup
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-15 11:07:32 +08:00
admin and Claude Sonnet 5.5
275a1ef3e9
docs(ops): cleanup must run as RLS-bypassing role, stop on error
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:18:20 +08:00
admin and Claude Sonnet 5.5
10f22b5cd5
chore(ops): test-data cleanup script and runbook
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:14:57 +08:00
admin and Claude Sonnet 5.5
1b84ed8625
fix(capa): handle network errors, keep form locked after submit, extend tests
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:13:53 +08:00
admin and Claude Sonnet 5.5
550a61cedc
feat(capa): proof form for owners and photo gallery for HSE
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:12:22 +08:00
admin and Claude Sonnet 5.5
de7fb298f7
fix(capa): atomic in_progress guard on submit, add behavioural tests
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:11:10 +08:00
admin and Claude Sonnet 5.5
51986b7ae5
feat(capa): require note and photos via /submit, block PATCH bypass
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:10:03 +08:00
admin and Claude Sonnet 5.5
cf5719883c
feat(report): site and zone picker when no QR zone is detected
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:08:18 +08:00
admin and Claude Sonnet 5.5
98cc7c4ac9
docs: implementation plan for zone picker, CAPA proof, cleanup
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:05:57 +08:00
admin and Claude Sonnet 5.5
29bdb39506
docs: spec for zone picker, CAPA completion proof, test-data cleanup
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-14 11:02:12 +08:00
admin and Claude Haiku 4.5
99eca7d242
fix(ai): use correct llama.cpp model name
...
- Update model to qwen2.5-coder-32b-instruct-Q4_K_M
- Match actual model available in llama.cpp on port 8081
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 21:59:01 +08:00
admin and Claude Haiku 4.5
e89ecdd5c4
fix(ai): update endpoint to llama.cpp on port 8081
...
- Switch from Ollama (11434) to llama.cpp (8081)
- Point to OpenAI-compatible API at localhost:8081/v1
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 21:56:48 +08:00
admin and Claude Haiku 4.5
7424fe4f9b
feat(ai): switch to qwen2.5-coder-8k model
...
- Use larger coder model (32.8B params) for better reasoning
- Update client default model
- Update all AI routes to use qwen2.5-coder-8k:latest
- Already installed and available on server Ollama
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 13:19:41 +08:00
admin and Claude Haiku 4.5
0ca92182ff
feat(branding): add Setia logo favicon
...
- Crop Setia logo icon to 256x256 favicon
- Reference favicon in app metadata
- Displays in browser tabs and bookmarks
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 12:59:23 +08:00
admin and Claude Haiku 4.5
aac988010a
fix: disable embeddings gracefully when GOOGLE_AI_API_KEY missing
...
- Catch and log GOOGLE_AI_API_KEY errors instead of failing
- Allows endpoints to work without embeddings configured
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 12:03:07 +08:00
admin and Claude Haiku 4.5
4f9ca6e37f
docs(design): record slice 2 (CAPA) and the mockup features that need a backend
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 11:37:41 +08:00
admin and Claude Haiku 4.5
48b77458dd
test(capa): fix the fetch mock typing in the create form test
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 11:37:11 +08:00
admin and Claude Haiku 4.5
7e129b2781
feat(capa): restyle the create CAPA form and page with the shared field primitives
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 11:35:46 +08:00
admin and Claude Haiku 4.5
4f75dd5887
feat(ai): switch from DeepSeek to local Ollama (qwen3:14b)
...
- Point AI client to localhost:11434/v1 (Ollama)
- Remove DeepSeek API key dependency
- Update model name to qwen3:14b across all routes
- Update test mocks to use createLocalLLMClient
- Removes need for DEEPSEEK_API_KEY setting
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 11:34:05 +08:00
admin and Claude Haiku 4.5
69e510af74
feat(capa): restyle the CAPA detail page, verification form, close card, owner actions and notes
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 11:20:57 +08:00
admin and Claude Haiku 4.5
04437926c2
feat(capa): replace the CAPA board with a workspace (TableCard list and status board) with search, filters and saved views
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 10:47:04 +08:00
admin and Claude Haiku 4.5
9dca2a51d2
feat(capa): add pure list helpers for filtering, saved views, sorting and paging
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 10:26:34 +08:00
admin and Claude Haiku 4.5
9f0331d190
docs: add IMS Admin refresh slice 2 (CAPA) implementation plan
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 10:20:01 +08:00
admin and Claude Haiku 4.5
87f553321b
fix(design): correct the incident list footer range on empty and out-of-range pages
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:43:44 +08:00
admin and Claude Haiku 4.5
582504c24b
feat(design): colour banners and badges by meaning, document slice 1 and update design notes
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:36:01 +08:00
admin and Claude Haiku 4.5
a64b951922
feat(design): migrate the Incidents list to TableCard with server-side views, sort, filters and paging
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:33:44 +08:00
admin and Claude Haiku 4.5
9ba708ecb7
feat(design): add AppShell, MobileShell and the notifications drawer
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:31:12 +08:00
admin and Claude Haiku 4.5
32dd42ac79
feat(design): add TableCard (views, toolbar, sortable header, selection, bulk bar, footer pager, empty, mobile list)
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:29:35 +08:00
admin and Claude Haiku 4.5
2a5b9332c7
feat(design): add IMS Admin primitives (Button, StatusTag, Checkbox, FilterChip, Segmented, Avatar, Drawer) and restyle Field, Card, Modal
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:28:34 +08:00
admin and Claude Haiku 4.5
01343d732e
feat(design): switch to IMS Admin tokens, Geist and the 1px-rule gate
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:26:08 +08:00
admin and Claude Haiku 4.5
9ed8c97c24
docs: add IMS Admin refresh slice 1 implementation plan
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 09:21:28 +08:00
admin and Claude Haiku 4.5
f117605775
docs(design): add design.md for the IMS Admin refresh and track its mockup references
...
Derived from IMS Admin Spec.dc.html and IMS Admin.dc.html. Defines tokens,
components (StatusTag, TableCard, shells, drawer), screen index, build order
and the changes from the live Modernist build. CLAUDE.md already cites it as
the source of truth.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 08:37:36 +08:00
admin and Claude Haiku 4.5
86d907afda
docs: update CLAUDE.md for local Postgres, own auth, filesystem evidence and systemd deploy
...
Replaces the Supabase, Resend, Claude and pm2 notes with the current stack
(Drizzle + local PostgreSQL, bcryptjs/jose auth, on-disk evidence, DeepSeek AI,
Brevo email, build-only deploy to /srv/apps/ims/app). Also includes the
design-system section switch to the IMS Admin refresh (design.md).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 08:27:32 +08:00
admin and Claude Haiku 4.5
bbe038e3aa
fix(middleware): exempt manifest.json and sw.js from the auth matcher
...
Logged-out requests were redirected to /login, and logged-in non-admin roles
were bounced to their home page, which blocked PWA install and the service
worker.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-10-01 08:13:59 +08:00
admin and Claude Haiku 4.5
137780d013
docs(design): document Modernist design system and track its source
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 20:49:05 +08:00
admin and Claude Haiku 4.5
c5a98eed06
feat(design): sweep off-system styles and add the check:design gate
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 20:39:44 +08:00
admin and Claude Haiku 4.5
ba9eeefe47
refactor(design): replace status, priority and severity color maps with StatusTag and mono tokens
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 19:08:18 +08:00
admin and Claude Haiku 4.5
0b5020b3d0
feat(design): restyle shell with flat Modernist sidebar, mobile nav and bell
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 19:06:17 +08:00
admin and Claude Haiku 4.5
e7416bf236
feat(design): restyle Modal as a flat Modernist dialog
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 19:04:43 +08:00
admin and Claude Haiku 4.5
4411ed54b5
feat(design): add Modernist UI primitives (Button, Tag, StatusTag, Field, Card, table styles)
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 19:04:05 +08:00
admin and Claude Haiku 4.5
3a941a357b
refactor(design): drop rounded classes, swap bg-white and gray borders for tokens
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 19:02:28 +08:00
admin and Claude Haiku 4.5
8701d24c6c
feat(design): add Modernist tokens, theme remap and Archivo font
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 18:55:02 +08:00
admin and Claude Haiku 4.5
106136e902
docs: add Modernist design system restyle implementation plan
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_015e81pY6swiKHQZDcN86CTD
2026-09-30 18:25:57 +08:00