feat(pages): published pages keep a draft until publish or discard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
da39c9bd84
commit
cd85faa60e
10 files changed
+315
-31
No files matched your search
@@ -0,0 +1,4 @@
|
||||
-- Co-Lite change add-page-drafts-and-templates: rollback. Dropping the column loses every unpublished draft:
|
||||
-- publish or note them first. Then deploy the previous services-counter, which saves published pages directly.
|
||||
USE `service-counter`;
|
||||
ALTER TABLE `cms_page` DROP COLUMN `draft`;
|
||||
@@ -4,8 +4,8 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-03-page-builder-design.m
|
||||
|
||||
## 1. Data and services
|
||||
|
||||
- [ ] 1.1 SQL: `sql/01-page-draft.sql`, `sql/99-rollback.sql`; mirror 01 into `local/seed/`; apply locally.
|
||||
- [ ] 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.
|
||||
- [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.
|
||||
- Verify: `mvn -T 1C -B -pl solvway-mobile-api -am verify`
|
||||
|
||||
Reference in new issue
Block a user