feat(pages): HTML block type and hide-header option in the services
The counter accepts an HTML block (required, at most 200,000 characters, no script check because it only runs sealed) and stores a hide-header flag on the page. mobile-api passes the flag through on save and in the public page. 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
dcad8cb650
commit
9a7b225827
15 files changed
+96
-7
No files matched your search
@@ -0,0 +1,5 @@
|
||||
-- Co-Lite change add-custom-html-block: a page option that hides the company header and the page title.
|
||||
-- Target: `service-counter`. Additive only. Run once, after add-landing-pages 01.
|
||||
SET NAMES utf8mb4;
|
||||
USE `service-counter`;
|
||||
ALTER TABLE `cms_page` ADD COLUMN `hide_header` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hide the company header and the page title on the public page' AFTER `status`;
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Co-Lite change add-custom-html-block: rollback. Pages with HTML blocks must be edited or deleted first,
|
||||
-- because the previous release refuses the HTML block type when such a page is saved.
|
||||
USE `service-counter`;
|
||||
ALTER TABLE `cms_page` DROP COLUMN `hide_header`;
|
||||
@@ -4,12 +4,12 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-02-custom-html-block-des
|
||||
|
||||
## 1. Data and services
|
||||
|
||||
- [ ] 1.1 SQL: `sql/01-hide-header.sql` (`cms_page.hide_header`), `sql/99-rollback.sql`; mirror 01 into `local/seed/`.
|
||||
- [ ] 1.2 services-counter:
|
||||
- [x] 1.1 SQL: `sql/01-hide-header.sql` (`cms_page.hide_header`), `sql/99-rollback.sql`; mirror 01 into `local/seed/`.
|
||||
- [x] 1.2 services-counter:
|
||||
- the `HTML` block type: required, at most 200,000 characters, no script check;
|
||||
- `hideHeader` on the page model and DTO.
|
||||
- Verify: `mvn -T 1C -B -pl solvway-services-counter -am verify`
|
||||
- [ ] 1.3 mobile-api: `hideHeader` on `AdminPageRequest` and in the public page response.
|
||||
- [x] 1.3 mobile-api: `hideHeader` on `AdminPageRequest` and in the public page response.
|
||||
- Verify: `mvn -T 1C -B -pl solvway-mobile-api -am verify`
|
||||
|
||||
## 2. Portal
|
||||
|
||||
Reference in new issue
Block a user