Commit Graph
223 Commits
Author SHA1 Message Date
ngqileandClaude Opus 5.5 98a77fa17d feat(pages): admin and public landing page APIs in mobile-api
Admin pages and images scoped by company, counter refusals relayed as
code plus field; public page read, image passthrough and form sign-up
through the QR registration rules with source WEB; company branding
save checks the logo's company; lead detail and export show the web page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:59:44 +08:00
ngqileandClaude Opus 5.5 bf6f2c8696 feat(pages): open the three public landing-page reads in the gateway
Only GET of a published page, a page image and an active company's
branding, each anchored to its exact shape. Writes still need a token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:45:12 +08:00
ngqileandClaude Opus 5.5 dcbe8071b5 feat(pages): company logo and accent colour
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:43:52 +08:00
ngqileandClaude Opus 5.5 b164110367 feat(pages): landing pages, page images and web sign-ups in services-counter
Pages and block rules are ported from babyboo's CMS, scoped per company.
Images are checked by their magic bytes. A WEB registration keeps its
page address and UTM tags and never counts as attended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:41:30 +08:00
ngqileandClaude Opus 5.5 9741707156 feat(pages): SQL for pages, images, web sign-up origin and branding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:31:05 +08:00
ngqileandClaude Opus 5.5 567b81d74e docs(pages): OpenSpec change add-landing-pages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:24:37 +08:00
ngqileandClaude Opus 5.5 57a7d4efe1 docs(i18n): record the live check for the labels filter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 15:00:31 +08:00
ngqileandClaude Opus 5.5 df947c9332 docs(i18n): deployment notes for the Co-Lite labels filter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:56:06 +08:00
ngqileandClaude Opus 5.5 918f5fa2b2 feat(portal): Co-Lite labels only filter on Translations
On by default. The portal server sends its own label codes to the new
search; unchecking lists every label as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:55:56 +08:00
ngqileandClaude Opus 5.5 d2cbc3c227 feat(admin-api): label search with an optional code list
POST /api/admin/messages/search takes the list filters plus up to 5,000
codes. The no-create guard test now allows this read-only POST by name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:50:28 +08:00
ngqileandClaude Opus 5.5 89662d0eb2 feat(system): limit the label search to given codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:47:36 +08:00
ngqileandClaude Opus 5.5 a24291edd2 docs(i18n): design and OpenSpec change for the Co-Lite labels filter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:43:02 +08:00
ngqileandClaude Opus 5.5 1cbe8cfe9c docs(i18n): tick the release review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 14:28:00 +08:00
ngqileandClaude Opus 5.5 f764abe7da docs(i18n): record the live check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:43:14 +08:00
ngqileandClaude Opus 5.5 ee517753aa feat(portal): language picker on the sign-in page
The spec lists the picker before sign-in, and staff who work in Chinese
need it there. Also makes the Chinese for "Switch off" differ from the
dialog's Close button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:41:22 +08:00
ngqileandClaude Opus 5.5 3d53cc465b docs(i18n): deployment steps for translations and languages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:26:58 +08:00
ngqileandClaude Opus 5.5 48a6180c0a fix(gateway): route /locale/** to services-system
The language registry answered 404 through the gateway, so the public
language list failed with a 500. Found in the live check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:26:16 +08:00
ngqileandClaude Opus 5.5 a73614424e feat(i18n): first-pass Chinese for every back-office label
zh_CN.seed.json covers all 706 portal labels; guard tests check coverage,
placeholders and extra keys. npm run i18n:sql writes the SQL that inserts
missing rows, sets zh_CN, aligns the four rows with Tastefully English and
bumps the catalog version; a test keeps the committed SQL in step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:22:07 +08:00
ngqileandClaude Opus 5.5 a8bfcf5f6d feat(portal): Translations and Languages pages
Ported from babyboo and trimmed to back-office labels: list with search
and the Missing Chinese filter, edit panel with placeholder checks and an
unsaved-changes guard, export, import with preview and summary, and the
Languages page with guarded switches. A blank translation is no longer
treated as an old placeholder mismatch, so Save blocks a broken new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:17:54 +08:00
ngqileandClaude Opus 5.5 27e0ec7bff feat(mobile-api): admin translations and languages APIs
Locales list, create and update; public enabled list; message catalog,
version, search, detail, update, export and import. Refusals from
services-system pass through as 409 with their reason code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 13:05:08 +08:00
ngqileandClaude Opus 5.5 45bd81cdbb fix(gateway): only label reads skip the user token, not message writes
Any URL containing /message/ skipped the user token, saves included. Only the
catalog reads that services and the sign-in page make stay open now, each an
exact GET path, plus the enabled-language list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:44:38 +08:00
ngqileandClaude Opus 5.5 ebfee582c2 feat(system): message search, guarded saves and the catalog version read
Ported from babyboo message-admin-api: search over the code, English and Chinese
text; a missing-Chinese filter; a save that refuses a code change or a duplicate
code (409, no longer swallowed) and bumps the catalog version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:42:59 +08:00
ngqileandClaude Opus 5.5 4622a5219d feat(system): language registry with guarded updates and a catalog version
Ported from babyboo locale-registry: a duplicate code, a code change, switching
English off and switching off the last enabled language are refused as 409s
with a message code; every accepted change bumps the catalog version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:40:15 +08:00
ngqileandClaude Opus 5.5 075a3a34d1 feat: language registry, catalog version and translation modules (SQL)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:37:08 +08:00
ngqileandClaude Opus 5.5 e81ccc51ac docs: OpenSpec change add-zh-cn-messages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:30:45 +08:00
ngqileandClaude Opus 5.5 7b364aff11 docs(whatsapp): record the live check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:10:39 +08:00
ngqileandClaude Opus 5.5 8f17b416b8 docs(whatsapp): tick portal tasks and the deployment doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 11:57:23 +08:00
ngqileandClaude Opus 5.5 3e610e0f88 fix(whatsapp): answer 503 when the inbox cannot take an event, so Meta redelivers
The webhook answered 200 whatever happened downstream, and Meta only
redelivers on a non-2xx answer, so an event that reached a stopped service,
or a just-started one that had not resolved its companies yet, was lost.
mobile-api now answers 503 on an unreachable service or a 5xx (a 4xx
refusal still gets 200), and the service answers 503 for a configured
number whose company is not resolved yet. wamid uniqueness makes the
redelivery safe. Owner decision 2026-12-02; design D3 and the spec updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 11:49:17 +08:00
ngqileandClaude Opus 5.5 13b692748c feat: whatsapp admin api in mobile-api
- /api/admin/whatsapp: conversations, thread, send, read, assign, start, templates and sync, media, unread count, assignees.
- Caller context from the token: company through AdminCompanyScope (fail closed), admin for BO_WHATSAPP_ADMIN or super admin.
- Exactly-one validation for send, assign and start; path ids must look like uuids before they reach the service.
- Service reason codes come back with their status and a message; an unreachable service is 502.
- Owner and assignee names filled from the system service.
- Audit: send (conversation and template name, never text), assign (owner before and after), start, sync; read markers skipped.
- Media streams with nosniff and a sandbox CSP; anything but image, audio or video downloads.
- Disabling a user or changing their roles tells the service to free their chats (best effort).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 0d5c3f351a chore: tick whatsapp task 4.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 627e0134e2 docs: tick WhatsApp wave 3 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 73d06795aa docs: tick WhatsApp wave 2 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 6d63cc74d1 feat: WhatsApp contract between mobile-api, the service and the counter
Shared DTOs on both sides with identical JSON keys, the service API
constants with the access convention (the service enforces company,
owner and admin), Snowflake ids as strings towards the portal, and the
counter's WhatsApp contact type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 3ac3e108ff feat: WhatsApp service skeleton, settings, gateway route and mock
Adds solvway-services-whatsapp with per-company WhatsApp settings
(secrets masked), the gateway route /whatsapp/**, compose entries for
the service and a local whatsapp-mock, the example env keys, and the
service in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 6e5362fa2c feat: WhatsApp inbox schema and modules
Adds schema service-whatsapp (wa_conversation, wa_message, wa_read,
wa_template), modules BO_WHATSAPP and BO_WHATSAPP_ADMIN, the rollback,
and the local seed mirror.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 e0df2b2e84 docs: design and OpenSpec change for the WhatsApp inbox
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:55 +08:00
ngqileandClaude Opus 5.5 ae756e554f docs: archive polish-e2e-followups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 10:34:27 +08:00
ngqileandClaude Opus 5.5 a9f647589f fix(portal): wrap card action buttons on phones; record live check
The Companies card clipped its Edit button at 360 px: the page's own
button group did not wrap inside the shared actions cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 10:32:22 +08:00
ngqileandClaude Opus 5.5 1b8110dbbf feat: data table listings become cards on phones
Below md each row is a card: the first column as title, other columns as
labelled values, actions at the bottom. A sort select replaces the hidden
header; paging is unchanged. One DOM, CSS only, like DashTable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 09:24:30 +08:00
ngqileandClaude Opus 5.5 8ce9fcf471 feat: portal password hints, company hint, interest and role delete, dashboard notes
- Login: company-code hint after an invalid-credentials failure with an empty company.
- Password forms show the active rules (label-first, count-safe) and tie hint and refusal to the input.
- Interests and roles: soft delete with confirm dialogs; deactivate now confirms too.
- Dashboard figure explanations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 02:59:44 +08:00
ngqileandClaude Opus 5.5 5e68478670 feat: switched-on password rules for the hint, named refusals
The system exposes the switched-on admin password rules. mobile-api
serves them to signed-in admins and, rate limited, on an exact public
route for the first-login screen. Every admin password path now refuses
with PASSWORD_RULE naming the first rule broken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 02:25:10 +08:00
ngqileandClaude Opus 5.5 0b201a51ca feat: soft delete for interests and roles
A super admin can delete an interest or a role. Deleted rows leave every
list, picker and filter, keep their names on existing leads, and keep
their names reserved. A role held by any user, and the protected roles,
cannot be deleted. Deletes are audited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 02:08:28 +08:00
ngqileandClaude Opus 5.5 0f83e9cc08 feat: soft-delete columns for interests and roles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 01:46:27 +08:00
ngqileandClaude Opus 5.5 a9e2232686 docs: design and OpenSpec change for the e2e follow-ups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 01:46:18 +08:00
ngqileandClaude Opus 5.5 099390c5c6 docs: archive group-sidebar-categories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 00:19:39 +08:00
ngqileandClaude Opus 5.5 75e243f3bb feat: sidebar groups pages into Events, Leads, Access and System
Labelled sections replace the single Administration divider, Login
security gets its own lock icon, and the icon map drops the babyboo
icons Co-Lite does not use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 00:19:18 +08:00
ngqileandClaude Opus 5.5 2c663f4ad5 docs: design and OpenSpec change for sidebar categories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 23:58:45 +08:00
ngqileandClaude Opus 5.5 a3944ea1f9 docs: archive refine-visitor-pages-and-shell
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 23:44:59 +08:00
ngqileandClaude Opus 5.5 6fda854df0 fix: neutral signed-out frame, visitor page polish and DESIGN.md update
Rest of the final-review fixes (the previous commit only removed the
duplicate breadcrumb test file, which moved into Breadcrumbs.test.tsx):
the signed-out frame drops the giraffe coat and 16px corners, the
loading icon spins, error headings fall back to the load-failed text,
invite registered and checked-in states are covered, the pinned-column
test renders a table, DESIGN.md describes the shipped look, and the
spec notes the pinned-column divider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 23:44:36 +08:00
ngqileandClaude Opus 5.5 db9e218423 docs: record the visual follow-up release check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 23:26:16 +08:00