Skip to content

Develop v4 - #640

Merged
kirtesh-cstk merged 5 commits into
stage_v4from
develop_v4
Sep 10, 2026
Merged

kirtesh-cstk merged 5 commits into
stage_v4from
develop_v4

Conversation

@kirtesh-cstk

Copy link
Copy Markdown
Contributor

No description provided.

kirtesh-cstk and others added 3 commits August 10, 2026 17:07
The edit button linked to the entry and field but said nothing about the
page it was clicked from. The CMS cannot work that out from the entry
alone: a referenced entry can be rendered on several pages, and a nested
one has no page among the entries that directly reference it. Without it
the live preview panel falls back to the environment base URL.

The redirect URL now carries the current page as preview-url, which the CMS
already understands. Live preview's own query parameters are stripped so
only the page remains.

Co-Authored-By: Claude <noreply@anthropic.com>
The copier in addLivePreviewQueryTags and the stripper in getCurrentPageUrl
are inverse operations on the same set of parameters, and each carried its
own copy of it. Adding a parameter to one and not the other would have let a
preview parameter ride back into preview-url.

Both now read LIVE_PREVIEW_QUERY_PARAMS. getCurrentPageUrl drops that list
plus cslp-buttons, which the edit button reads off the page URL but must not
be forwarded onto internal links.

Also drops preview_variant from the strip list. It appears nowhere else in
src, so it was guarding against a parameter that does not exist.

The copier no longer requires content_type_uid and entry_uid to be present
together. Neither the SDK nor the panel produces a URL with one and not the
other, and setConfigFromParams already reads them independently.

Co-Authored-By: Claude <noreply@anthropic.com>
…view-url

fix(edit-button): send the page the editor was on to the CMS
@kirtesh-cstk
kirtesh-cstk requested a review from a team as a code owner September 3, 2026 12:08
@snyk-io

snyk-io Bot commented Sep 3, 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

github-actions Bot commented Sep 3, 2026

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 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 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

✅ BUILD PASSED - All security checks passed

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.43% 2530 / 3752
🔵 Statements 66.28% 2570 / 3877
🔵 Functions 64.71% 453 / 700
🔵 Branches 61.98% 1531 / 2470
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/livePreview/editButton/editButton.ts 96.66% 89.59% 100% 97.74% 109-110, 181, 268, 413, 451, 573, 601, 648
src/utils/addLivePreviewQueryTags.ts 90% 50% 100% 90% 10
src/utils/getCurrentPageUrl.ts 70% 75% 100% 75% 25, 32-33
src/utils/livePreviewQueryParams.constant.ts 100% 100% 100% 100%
Generated in workflow #902 for commit 3c658c8 by the Vitest Coverage Report Action

@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 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 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

✅ BUILD PASSED - All security checks passed

@hitesh-shetty-cstk hitesh-shetty-cstk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@kirtesh-cstk
kirtesh-cstk merged commit 30dcfaf into stage_v4 Sep 10, 2026
10 checks passed
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