Skip to content

feat(site): support main-site embedding and clarify Scans navigation - #18

Merged
mstrhakr merged 2 commits into
mainfrom
feat/main-site-embed
Oct 16, 2026
Merged

mstrhakr merged 2 commits into
mainfrom
feat/main-site-embed

Conversation

@mstrhakr

Copy link
Copy Markdown
Collaborator

Summary

Support embedding Scans inside the main website's shared header/footer while keeping the standalone site focused on Scans.

  • Activate headerless dark-mode embedding only after an origin- and source-checked handshake with the immediate parent at https://printmaster.work.
  • Report content height and anchor positions so the main-site wrapper can resize and scroll without nested navigation.
  • Preserve standalone navigation/theme behavior, including direct visits with ?embed=1 when there is no trusted parent handshake.
  • Clarify standalone navigation: local setup/release links, explicitly labeled external Scans resources, and a separate "More from PrintMaster" footer for fleet monitoring and Agent/Server downloads.
  • Add embed regression tests to CI and document hosting/deployment constraints.

Validation

  • After rebase: node --test .\tests\site.test.cjs .\tests\embed.test.cjs — 9 tests passed.
  • Browser integration previously verified responsive iframe sizing, copy buttons, outer-page section navigation, matching dark theme, and standalone light/dark behavior with local code intercepted at the production origins.

Companion and deployment

The companion Printmaster-Org/printmaster.work commit 503e7eb adds 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 main with the currently promoted published stable version. No new Windows utility release is needed.

GitHub Pages cannot configure a custom HTTP frame-ancestors policy. 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.

mstrhakr and others added 2 commits October 16, 2026 11:03
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>
@mstrhakr
mstrhakr merged commit 21460ab into main Oct 16, 2026
4 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.

1 participant