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
admin and Claude Haiku 4.5
ef7f1c9660
docs: approve Modernist spec, resolve status and imagery decisions
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_015e81pY6swiKHQZDcN86CTD
2026-09-30 18:09:04 +08:00
admin and Claude Haiku 4.5
bf178d5b8d
chore: ignore tmp/ scratch directory
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_015e81pY6swiKHQZDcN86CTD
2026-09-30 18:03:11 +08:00
admin and Claude Haiku 4.5
38ccc44933
docs: add Modernist design system restyle spec
...
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_015e81pY6swiKHQZDcN86CTD
2026-09-30 17:59:47 +08:00
admin and Claude Haiku 4.5
d2707ac3df
fix: resolve TypeScript test type errors in report-pdf and bulk-import tests
...
- Updated mockSession to include required SessionPayload fields (siteId, name)
- Added optional chaining for metadata.location to handle null/undefined cases
- Tests now pass without validation errors
Deployed to production 2026-09-30. App running with local postgres migration complete.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_015e81pY6swiKHQZDcN86CTD
2026-09-30 14:53:10 +08:00
admin and Claude Haiku 4.5
cbc01b9de5
docs: update - Supabase migration complete to local postgres
...
Database migrated Sep 30 2026. Production now uses local postgres at 127.0.0.1:5433.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 12:58:16 +08:00
admin and Claude Haiku 4.5
26120862a1
docs: Supabase to local postgres migration implementation plan
...
7-task implementation plan with step-by-step instructions:
- Task 1: Pre-migration verification
- Task 2: Prepare local postgres schema
- Task 3: Export data from Supabase
- Task 4: Import to local + announce downtime
- Task 5: Validate data integrity
- Task 6: Update app config & cutover
- Task 7: Post-migration cleanup & docs
Estimated timeline: 3-4 hours total (1-2 hours downtime).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 09:06:47 +08:00
admin and Claude Haiku 4.5
fe0dd27448
docs: Supabase to local postgres migration design spec
...
Migration plan for moving from Supabase cloud to self-hosted local postgres.
Scope: 30 users, 500 incidents, ~100MB database.
Downtime: Planned maintenance window.
Approach: Direct pg_dump/restore with validation.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-30 08:06:11 +08:00
admin and Claude Haiku 4.5
fbc6ea4f1f
docs: correct deployment path to /var/www/ims
...
IMS for ims.setia.com.my is deployed to /var/www/ims, not /opt/wsims/app.
PM2 wsims process runs from this location.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-29 23:08:25 +08:00
admin and Claude Haiku 4.5
e3f70dd8a4
docs: add production deployment path (/opt/wsims/app)
...
Critical note: Production wsims runs from /opt/wsims/app, not /var/www/ims.
Always deploy to /opt/wsims/app and restart PM2 wsims process.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-09-29 22:57:11 +08:00