feat(admin-portal): leads listing and lead detail

Lead Listing with search and server paging, lead detail with event
history, shared-contact warning and an edit form under BO_LEADS_EDIT,
and a View lead link from the event lead edit page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-27 16:53:44 +08:00
1 parent eab4053c06
commit 82b6943474
15 files changed
+861 -2

No files matched your search

@@ -71,7 +71,7 @@ Design: `design.md` (decision numbers below refer to it). All tasks run serially
## 4. Portal
- [ ] 4.1 Add the Lead Listing and lead detail (design decision 6):
- [x] 4.1 Add the Lead Listing and lead detail (design decision 6):
- the leads data layer: route `app/api/leads/[...path]`, service, types, and `/leads` mapped to `BO_LEADS`;
- the `/leads` listing with search;
- the `/leads/[leadUuid]` detail page, with an edit form when the user has `BO_LEADS_EDIT`, the shared-contact warning, the event history and not-found;