Skip to content

feat(cms): render tab paragraph through the editable paragraph renderer (DX-31557) - #28

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

vaishnavi-kedar-cstk merged 2 commits into
epic/DX-31554-sap-rich-text-paragraphfrom
claude/feat/DX-31557-tab-paragraph-editable-renderer

Conversation

@vaishnavi-kedar-cstk

Copy link
Copy Markdown
Contributor

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

DX-31557 · Epic DX-31554 · wave 2 of 2 (after DX-31556, PR #27)

What

  • Registers CMSTabParagraphComponent to ContentstackEditableParagraphComponent beside CMSParagraphComponent (decision A-2). The field mapper already passes Content through for both types.
  • TC-3: mapper spec covers both typeCodes (editor HTML unchanged, empty/missing -> ''); runs in npm test.
  • TC-4/5/6/7: TestBed specs written and type-checked but not in testMatch (pod decision DSCDX-743); to be run by hand in the E2E host app.

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

TC-22, tab paragraph vs SAP stock renderer (from code, not run in a browser)

  • Relative link: stock routes in-app via the router; ours is a native navigation (full reload).
  • Hash anchor: stock rewrites to current URL + #; ours keeps #sec, which resolves against <base href>.
  • External link: no difference.
  • Sanitizer: stock bypasses it; ours keeps Angular's, so inline styles, iframes, scripts and on* handlers are removed (intended).
    The first two already apply to plain paragraphs.

Risk to check in Visual Builder: tab paragraphs expanded by expandContainer() in the page normalizer are bare {uid,typeCode}; if the later fetch content type differs from the entry's real type, the preview data-cslp tag could name the wrong type. Not verified.

For a person: manual test on the test stack (create a tab paragraph entry, place it in a slot, edit inline on a preview build, publish).

Skipped: nothing.


Generated by Claude Code

Register CMSTabParagraphComponent to ContentstackEditableParagraphComponent
beside CMSParagraphComponent so tab paragraphs get the same markup and the
preview-only field-level data-cslp tag. Adds mapper, module-registration and
renderer specs (TestBed specs are outside the npm test match).

Refs: DX-31557

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

Refs: DX-31557

Co-authored-by: Claude <noreply@anthropic.com>
@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:56
@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk requested a review from a team as a code owner October 28, 2026 10:56
@vaishnavi-kedar-cstk
vaishnavi-kedar-cstk merged commit dc967b3 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-31557-tab-paragraph-editable-renderer branch October 28, 2026 10:56
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