Repository navigation
feat(site): support main-site embedding and clarify Scans navigation - #18
Merged
Merged
Conversation
Add an origin-checked parent handshake for headerless dark-mode rendering, responsive iframe sizing, and top-level navigation. Preserve standalone behavior and cover messaging with CI tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep setup and release navigation local to Scans and separate explicitly labeled fleet-monitoring and Agent/Server download links in the footer. Preserve embedded navigation behavior and add regression assertions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Support embedding Scans inside the main website's shared header/footer while keeping the standalone site focused on Scans.
https://printmaster.work.?embed=1when there is no trusted parent handshake.Validation
node --test .\tests\site.test.cjs .\tests\embed.test.cjs— 9 tests passed.Companion and deployment
The companion Printmaster-Org/printmaster.work commit
503e7ebadds the/scans/wrapper with shared navigation, iframe messaging validation, clipboard delegation, and a standalone fallback. It is separate from this PR.Deploy this Scans support first, then the main-site wrapper. After merge and successful main CI, refresh Pages from
mainwith the currently promoted published stable version. No new Windows utility release is needed.GitHub Pages cannot configure a custom HTTP
frame-ancestorspolicy. The handshake restricts activation of embedded mode, not who can frame the public standalone site; the README documents an edge/server policy for hosting that supports it.