feat(pages): admin publish and discard endpoints

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 11:29:32 +08:00
1 parent cd85faa60e
commit 8203839b09
5 files changed
+71 -1

No files matched your search

@@ -7,7 +7,7 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-03-page-builder-design.m
- [x] 1.1 SQL: `sql/01-page-draft.sql`, `sql/99-rollback.sql`; mirror 01 into `local/seed/`; apply locally.
- [x] 1.2 services-counter: `draft` on the entity and DTO, `hasDraft` on list rows; save rules for published pages; publish (re-validate, slug check) and discard endpoints; `findPublished` unchanged.
- Verify: `mvn -T 1C -B -pl solvway-services-counter -am verify`
- [ ] 1.3 mobile-api: `POST /api/admin/pages/{id}/publish` and `/discard`, scoped, refusals relayed like save.
- [x] 1.3 mobile-api: `POST /api/admin/pages/{id}/publish` and `/discard`, scoped, refusals relayed like save.
- Verify: `mvn -T 1C -B -pl solvway-mobile-api -am verify`
## 2. Portal