This website requires JavaScript.
a1f5f3126a
Merge pull request 'chore(release): 2.0.0, merge roles into SSA' (#3 ) from chore/release-2.0.0 into main
main
v2.0.0
admin
2026-11-06 22:16:39 +08:00
2fed177fdc
chore(release): 2.0.0, merge roles into SSA
chore/release-2.0.0
admin and Claude Sonnet 5.5
2026-11-06 22:16:01 +08:00
e130b039d4
Merge pull request 'Chore/remove supabase legacy' (#2 ) from chore/remove-supabase-legacy into main
admin
2026-11-06 22:08:46 +08:00
1a2f9fbd47
docs(claude): drop removed Supabase leftovers, note ssa role
chore/remove-supabase-legacy
admin and Claude Sonnet 5.5
2026-11-06 22:08:21 +08:00
2bda9d06a7
chore: remove legacy Supabase code and dependencies
admin and Claude Sonnet 5.5
2026-11-06 22:07:21 +08:00
f32c6e8c60
Merge pull request 'Feat/ssa role' (#1 ) from feat/ssa-role into main
admin
2026-11-06 21:58:37 +08:00
4ec37bd078
test(layout): update app-shell search test for ssa role
feat/ssa-role
admin and Claude Sonnet 5.5
2026-11-06 21:50:23 +08:00
f52e63ad09
fix(db): make ssa role migration a single self-contained transaction
Weei Han and Claude Sonnet 5.5
2026-11-06 21:41:08 +08:00
813395700f
feat(auth): merge reporter, supervisor, capa_owner into ssa role
Weei Han and Claude Sonnet 5.5
2026-11-06 21:34:10 +08:00
701fefd286
feat(report): show all trucks regardless of site
admin and Claude Sonnet 5.5
2026-10-15 13:52:46 +08:00
f3c62d9225
Merge feat/truck-site: link trucks to a site, filter report truck list
admin and Claude Sonnet 5.5
2026-10-15 12:01:16 +08:00
17c32ecd04
fix(trucks): skip active-site check when PATCH leaves site unchanged
admin and Claude Sonnet 5.5
2026-10-15 11:53:32 +08:00
5f1d7a6ed4
feat(report): filter truck list by selected site
admin and Claude Sonnet 5.5
2026-10-15 11:50:00 +08:00
149704898d
feat(trucks): site select, site label and edit modal in admin
admin and Claude Sonnet 5.5
2026-10-15 11:48:15 +08:00
f3f3aec59f
feat(trucks): admin API accepts site_id and partial edits
admin and Claude Sonnet 5.5
2026-10-15 11:46:31 +08:00
867b725262
feat(trucks): site_id column and site/truck helpers
admin and Claude Sonnet 5.5
2026-10-15 11:44:37 +08:00
fd7a55337f
docs: implementation plan for truck-to-site link
admin and Claude Sonnet 5.5
2026-10-15 11:25:16 +08:00
2a9d32d1d0
docs: spec for linking trucks to a site
admin and Claude Sonnet 5.5
2026-10-15 11:17:15 +08:00
c4377fb705
Merge feat/zone-capa-proof: zone picker, CAPA completion proof, test-data cleanup
admin and Claude Sonnet 5.5
2026-10-15 11:07:32 +08:00
275a1ef3e9
docs(ops): cleanup must run as RLS-bypassing role, stop on error
admin and Claude Sonnet 5.5
2026-10-14 11:18:20 +08:00
10f22b5cd5
chore(ops): test-data cleanup script and runbook
admin and Claude Sonnet 5.5
2026-10-14 11:14:57 +08:00
1b84ed8625
fix(capa): handle network errors, keep form locked after submit, extend tests
admin and Claude Sonnet 5.5
2026-10-14 11:13:46 +08:00
550a61cedc
feat(capa): proof form for owners and photo gallery for HSE
admin and Claude Sonnet 5.5
2026-10-14 11:12:22 +08:00
de7fb298f7
fix(capa): atomic in_progress guard on submit, add behavioural tests
admin and Claude Sonnet 5.5
2026-10-14 11:11:10 +08:00
51986b7ae5
feat(capa): require note and photos via /submit, block PATCH bypass
admin and Claude Sonnet 5.5
2026-10-14 11:10:03 +08:00
cf5719883c
feat(report): site and zone picker when no QR zone is detected
admin and Claude Sonnet 5.5
2026-10-14 11:08:18 +08:00
98cc7c4ac9
docs: implementation plan for zone picker, CAPA proof, cleanup
admin and Claude Sonnet 5.5
2026-10-14 11:05:57 +08:00
29bdb39506
docs: spec for zone picker, CAPA completion proof, test-data cleanup
admin and Claude Sonnet 5.5
2026-10-14 11:02:12 +08:00
99eca7d242
fix(ai): use correct llama.cpp model name
admin and Claude Haiku 4.5
2026-10-01 21:59:01 +08:00
e89ecdd5c4
fix(ai): update endpoint to llama.cpp on port 8081
admin and Claude Haiku 4.5
2026-10-01 21:56:48 +08:00
7424fe4f9b
feat(ai): switch to qwen2.5-coder-8k model
admin and Claude Haiku 4.5
2026-10-01 13:19:41 +08:00
0ca92182ff
feat(branding): add Setia logo favicon
admin and Claude Haiku 4.5
2026-10-01 12:59:23 +08:00
aac988010a
fix: disable embeddings gracefully when GOOGLE_AI_API_KEY missing
admin and Claude Haiku 4.5
2026-10-01 12:03:07 +08:00
a33ec0a234
docs(design): record slice 2 (CAPA) and the mockup features that need a backend
feat/admin-refresh-slice-2-capa-deploy
admin and Claude Haiku 4.5
2026-10-01 11:37:41 +08:00
fd78e72669
test(capa): fix the fetch mock typing in the create form test
admin and Claude Haiku 4.5
2026-10-01 11:37:11 +08:00
40878c126a
feat(capa): restyle the create CAPA form and page with the shared field primitives
admin and Claude Haiku 4.5
2026-10-01 11:35:46 +08:00
587b580797
feat(capa): restyle the CAPA detail page, verification form, close card, owner actions and notes
admin and Claude Haiku 4.5
2026-10-01 11:20:57 +08:00
572a9c9484
feat(capa): replace the CAPA board with a workspace (TableCard list and status board) with search, filters and saved views
admin and Claude Haiku 4.5
2026-10-01 10:47:04 +08:00
4f6afacea4
feat(capa): add pure list helpers for filtering, saved views, sorting and paging
admin and Claude Haiku 4.5
2026-10-01 10:26:34 +08:00
12e017d1d0
docs: add IMS Admin refresh slice 2 (CAPA) implementation plan
admin and Claude Haiku 4.5
2026-10-01 10:20:01 +08:00
4f9ca6e37f
docs(design): record slice 2 (CAPA) and the mockup features that need a backend
admin and Claude Haiku 4.5
2026-10-01 11:37:41 +08:00
48b77458dd
test(capa): fix the fetch mock typing in the create form test
admin and Claude Haiku 4.5
2026-10-01 11:37:11 +08:00
7e129b2781
feat(capa): restyle the create CAPA form and page with the shared field primitives
admin and Claude Haiku 4.5
2026-10-01 11:35:46 +08:00
4f75dd5887
feat(ai): switch from DeepSeek to local Ollama (qwen3:14b)
admin and Claude Haiku 4.5
2026-10-01 11:34:05 +08:00
69e510af74
feat(capa): restyle the CAPA detail page, verification form, close card, owner actions and notes
admin and Claude Haiku 4.5
2026-10-01 11:20:57 +08:00
04437926c2
feat(capa): replace the CAPA board with a workspace (TableCard list and status board) with search, filters and saved views
admin and Claude Haiku 4.5
2026-10-01 10:47:04 +08:00
9dca2a51d2
feat(capa): add pure list helpers for filtering, saved views, sorting and paging
admin and Claude Haiku 4.5
2026-10-01 10:26:34 +08:00
9f0331d190
docs: add IMS Admin refresh slice 2 (CAPA) implementation plan
admin and Claude Haiku 4.5
2026-10-01 10:20:01 +08:00
87f553321b
fix(design): correct the incident list footer range on empty and out-of-range pages
feat/admin-refresh-slice-1
admin and Claude Haiku 4.5
2026-10-01 09:43:44 +08:00
582504c24b
feat(design): colour banners and badges by meaning, document slice 1 and update design notes
admin and Claude Haiku 4.5
2026-10-01 09:36:01 +08:00
a64b951922
feat(design): migrate the Incidents list to TableCard with server-side views, sort, filters and paging
admin and Claude Haiku 4.5
2026-10-01 09:33:44 +08:00
9ba708ecb7
feat(design): add AppShell, MobileShell and the notifications drawer
admin and Claude Haiku 4.5
2026-10-01 09:31:12 +08:00
32dd42ac79
feat(design): add TableCard (views, toolbar, sortable header, selection, bulk bar, footer pager, empty, mobile list)
admin and Claude Haiku 4.5
2026-10-01 09:29:35 +08:00
2a5b9332c7
feat(design): add IMS Admin primitives (Button, StatusTag, Checkbox, FilterChip, Segmented, Avatar, Drawer) and restyle Field, Card, Modal
admin and Claude Haiku 4.5
2026-10-01 09:28:34 +08:00
01343d732e
feat(design): switch to IMS Admin tokens, Geist and the 1px-rule gate
admin and Claude Haiku 4.5
2026-10-01 09:26:08 +08:00
9ed8c97c24
docs: add IMS Admin refresh slice 1 implementation plan
admin and Claude Haiku 4.5
2026-10-01 09:21:28 +08:00
f117605775
docs(design): add design.md for the IMS Admin refresh and track its mockup references
admin and Claude Haiku 4.5
2026-10-01 08:37:36 +08:00
86d907afda
docs: update CLAUDE.md for local Postgres, own auth, filesystem evidence and systemd deploy
admin and Claude Haiku 4.5
2026-10-01 08:27:32 +08:00
bbe038e3aa
fix(middleware): exempt manifest.json and sw.js from the auth matcher
admin and Claude Haiku 4.5
2026-10-01 08:13:59 +08:00
137780d013
docs(design): document Modernist design system and track its source
feat/modernist-restyle
admin and Claude Haiku 4.5
2026-09-30 20:49:05 +08:00
c5a98eed06
feat(design): sweep off-system styles and add the check:design gate
admin and Claude Haiku 4.5
2026-09-30 20:39:44 +08:00
ba9eeefe47
refactor(design): replace status, priority and severity color maps with StatusTag and mono tokens
admin and Claude Haiku 4.5
2026-09-30 19:08:18 +08:00
0b5020b3d0
feat(design): restyle shell with flat Modernist sidebar, mobile nav and bell
admin and Claude Haiku 4.5
2026-09-30 19:06:17 +08:00
e7416bf236
feat(design): restyle Modal as a flat Modernist dialog
admin and Claude Haiku 4.5
2026-09-30 19:04:43 +08:00
4411ed54b5
feat(design): add Modernist UI primitives (Button, Tag, StatusTag, Field, Card, table styles)
admin and Claude Haiku 4.5
2026-09-30 19:04:05 +08:00
3a941a357b
refactor(design): drop rounded classes, swap bg-white and gray borders for tokens
admin and Claude Haiku 4.5
2026-09-30 19:02:28 +08:00
8701d24c6c
feat(design): add Modernist tokens, theme remap and Archivo font
admin and Claude Haiku 4.5
2026-09-30 18:55:02 +08:00
106136e902
docs: add Modernist design system restyle implementation plan
admin and Claude Haiku 4.5
2026-09-30 18:25:57 +08:00
ef7f1c9660
docs: approve Modernist spec, resolve status and imagery decisions
admin and Claude Haiku 4.5
2026-09-30 18:09:04 +08:00
bf178d5b8d
chore: ignore tmp/ scratch directory
admin and Claude Haiku 4.5
2026-09-30 18:03:11 +08:00
38ccc44933
docs: add Modernist design system restyle spec
admin and Claude Haiku 4.5
2026-09-30 17:59:47 +08:00
d2707ac3df
fix: resolve TypeScript test type errors in report-pdf and bulk-import tests
admin and Claude Haiku 4.5
2026-09-30 14:53:10 +08:00
cbc01b9de5
docs: update - Supabase migration complete to local postgres
admin and Claude Haiku 4.5
2026-09-30 12:58:16 +08:00
26120862a1
docs: Supabase to local postgres migration implementation plan
admin and Claude Haiku 4.5
2026-09-30 09:06:47 +08:00
fe0dd27448
docs: Supabase to local postgres migration design spec
admin and Claude Haiku 4.5
2026-09-30 08:06:11 +08:00
fbc6ea4f1f
docs: correct deployment path to /var/www/ims
admin and Claude Haiku 4.5
2026-09-29 23:08:25 +08:00
e3f70dd8a4
docs: add production deployment path (/opt/wsims/app)
admin and Claude Haiku 4.5
2026-09-29 22:57:11 +08:00
6f0490a37c
chore: update UI version to 1.2.2
admin and Claude Haiku 4.5
2026-09-29 22:32:21 +08:00
7e6242290c
1.2.2
admin
2026-09-29 22:05:36 +08:00
09aef82125
build: update tsconfig jsx setting for Next.js 16
admin and Claude Haiku 4.5
2026-09-29 22:05:35 +08:00
92b134286e
security: update dependencies to patch 13 CVEs
admin and Claude Haiku 4.5
2026-09-29 22:03:20 +08:00
f1de68a305
fix: prevent RCE in bulk-import via shell injection
admin and Claude Haiku 4.5
2026-09-29 17:57:47 +08:00
172ca4a29e
fix(bulk-import): handle missing location data from DeepSeek analysis
admin
2026-08-20 07:50:22 +08:00
1422d3df47
fix(bulk-import): skip __MACOSX folder when processing zip imports
admin
2026-08-19 18:45:34 +08:00
1bb8e4d856
fix(sw): handle undefined cache response in service worker
admin
2026-08-16 16:38:43 +08:00
e79d31d129
fix(admin): update bulk import link to new route
admin
2026-08-16 16:32:01 +08:00
80c3d97667
refactor(bulk-import): move route from /admin to /bulk-import
admin
2026-08-16 16:06:32 +08:00
f873f7c879
fix(bulk-import): correct requireAdmin destructuring and disable PDF parsing
admin
2026-08-16 15:56:48 +08:00
6d9ecdedf1
docs: record bulk import implementation complete
admin
2026-08-16 15:38:45 +08:00
7cddc332f8
fix(bulk-import): type safety and unused imports
admin
2026-08-16 15:37:45 +08:00
abb2b3e707
feat(bulk-import): complete implementation
admin
2026-08-16 15:35:33 +08:00
303636326b
feat(bulk-import): core extraction and incident creation library
admin
2026-08-16 15:16:59 +08:00
e889a24afd
docs: add bulk incident import implementation plan
admin
2026-08-16 14:57:29 +08:00
f68832bf54
docs: add bulk incident import design spec
admin
2026-08-16 14:50:25 +08:00
dbff55dd7a
docs: update SDD progress ledger — CAPA scrollable columns complete
admin
2026-08-16 14:04:53 +08:00
e48620431a
feat(capa-board): add scrollable columns for large case lists
admin
2026-08-16 13:59:40 +08:00
ed70fedf89
bump: version 0.2.0 to 1.2.0
admin
2026-08-16 10:15:05 +08:00
d51699a949
feat(sidebar): display version number at bottom
admin
2026-08-16 10:13:39 +08:00
46bb9afaf3
feat(evidence): show filenames for PDFs/videos/docs, bump version to 0.2.0
admin
2026-08-16 10:09:16 +08:00
1e33ef2483
fix(evidence): disable auth on evidence route, filesystem storage already protected
admin
2026-08-16 09:44:57 +08:00