Skip to content

feat(starter-pack): paragraph Content fields as HTML rich text (DX-31556) - #27

Merged
vaishnavi-kedar-cstk merged 2 commits into
epic/DX-31554-sap-rich-text-paragraphfrom
claude/feat/DX-31556-paragraph-rich-text-fields
Oct 28, 2026
Merged

vaishnavi-kedar-cstk merged 2 commits into
epic/DX-31554-sap-rich-text-paragraphfrom
claude/feat/DX-31556-paragraph-rich-text-fields

Conversation

@vaishnavi-kedar-cstk

Copy link
Copy Markdown
Contributor

🤖 Authored by the Dev agent (AI), triggered by Vaishnavi Kedar.

DX-31556 · Epic DX-31554 · wave 1 of 2

What

  • Generator: new richText() helper; Content on cms_paragraph_component and cms_tab_paragraph_component is now HTML rich text (allow_rich_text, rich_text_type: custom, no multiline/markdown). Shape copied from a real stack export (kickstart-stack-seed page.json).
  • Both content type JSONs regenerated by the generator; a second run leaves no diff.
  • TC-1 spec import-export/starter-pack/content-types.spec.ts (generator output equals shipped JSON; only the two paragraph types differ in shape). jest.config.cjs roots/testMatch extended to include it.
  • Docs: CONTENT-MODEL.md 3.2, starter-pack README.md (non-rendering formatting; existing stacks not updated).

Gate (local): lint 0 errors (54 existing warnings), format:check, typecheck, test:all (175 + 8 tests) all pass.

Not done / for a person

  • TC-2 (CI fails on generator diff) needs a .github/workflows change: follow-up for @contentstack/security-admin.
  • QA: a person tests a fresh csdx cm:stacks:import with auditing on (TC-8) and the editor in Visual Builder; no stack here.
  • Security: no rendering change in this PR; sanitized [innerHTML] unchanged.

Skipped: nothing.


Generated by Claude Code

Make the `content` field of cms_paragraph_component and
cms_tab_paragraph_component an HTML rich-text field (allow_rich_text,
rich_text_type "custom", html option set) instead of a multiline text box.
Generated by generate-content-types.mjs; no other content type changes.

Adds TC-1 spec asserting the rich-text shape and that the shipped
content_types/*.json equal the generator output.

Refs: DX-31556

Co-authored-by: Claude <noreply@anthropic.com>
Document that the Content field of cms_paragraph_component and
cms_tab_paragraph_component is HTML rich text, list the editor formatting
that does not render (inline styles, embeds, iframes, scripts), and note
that the generator is the source of truth when the docs and pack differ.
Note that stacks which already imported the pack are not updated.

Refs: DX-31556

Co-authored-by: Claude <noreply@anthropic.com>
@snyk-io

snyk-io Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 2 10 ✅ Passed
🟠 High Severity 0 21 25 ✅ Passed
🟡 Medium Severity 0 18 500 ✅ Passed
🔵 Low Severity 0 1 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 2
  • High without fixes: 21
  • Medium without fixes: 18
  • Low without fixes: 1

✅ BUILD PASSED - All security checks passed

@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk marked this pull request as ready for review October 28, 2026 10:50
@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk requested a review from a team as a code owner October 28, 2026 10:50
@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk merged commit 4085a7e into epic/DX-31554-sap-rich-text-paragraph Oct 28, 2026
10 checks passed
@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk deleted the claude/feat/DX-31556-paragraph-rich-text-fields branch October 28, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants