Skip to content

Layout Manager: fe_mode, mount routes, facade CDN 1.0.25#49

Merged
wolfy-j merged 2 commits intomasterfrom
feature/layout-manager
Apr 28, 2026
Merged

Layout Manager: fe_mode, mount routes, facade CDN 1.0.25#49
wolfy-j merged 2 commits intomasterfrom
feature/layout-manager

Conversation

@AndrewKirkovski
Copy link
Copy Markdown
Contributor

Summary

Brings the full layout-manager release track into master. This PR is the framework-side counterpart to the gen-2-chat 1.0.25 web-host release and the app-template consumer PR. Six commits, all on the facade + views modules.

Headline changes

  • fe_mode requirement (compat / managed) — picks which Web Host entry the facade loads.
    • compat (default) → module.js, full Wippy chrome (unchanged behavior).
    • managedmanaged-layout.js, declarative multi-panel host driven by hostConfig.layout.
    • Both expose window.initWippyApp(config). Unknown values normalize to compat.
    • Added in c359259. Requires Web Host >= 1.0.24.
  • Mount routes + apiRoutes at config root (c93c280) — pages can claim top-level URL prefixes; the host honors apiRoutes overrides at the config root. The views module gains a page registry and updated render path.
  • Facade CDN bumps: 1.0.22 → 1.0.23 → 1.0.25 across _index.yaml, Makefile, README, and the test fixture. Skipped 1.0.24 (no consumer ever picked it up).
  • customVariabled typo fix in views render (was emitted with a stray `d`; renamed everywhere — wire format + TS interface + dev overlay + types). Any external consumer reading the old key now sees the corrected spelling — match this rename downstream.
  • Vendored loading.js refresh (a3bd18d) — pulled fresh from the CDN with source map.

Commits in this PR

Hash Subject
`3901c9f` Bump facade CDN to 1.0.25
`c359259` facade: add fe_mode compat/managed for managed-layout.js entry
`25ef4c8` Bump facade CDN to 1.0.23; fix customVariabled typo in views render
`1954fe4` Bump facade CDN default to 1.0.22
`a3bd18d` Update vendored loading.js with source map
`c93c280` Mount routes, apiRoutes at config root

Verification

  • `wippy lint` clean for `src/facade` (2 entries) and `src/facade/test` (8 entries).
  • `wippy run test` on `src/facade/test` blocked locally by a Windows symlink artifact (`src/facade/test/public` stored as text `../public` because Git on Windows uses `core.symlinks=false`). Pre-existing repo state, not a regression — runs fine on Unix CI.
  • Vendored `loading.js` re-fetched from `webcomponents-1.0.25` is byte-identical to the tracked file (loading component didn't move this window), so no vendored-file delta is included.

Cross-repo coordination

  • gen-2-chat 1.0.25 is published and deployed (npm + CDN).
  • app-template has a parallel PR (also off feature/layout-manager) titled Draft: needs wippy facade publish that depends on this PR landing + a facade module republish before it can be marked ready.

Test plan

  • CI lint green
  • CI tests green (Linux runner — `test/public` symlink works there)
  • Facade module package version bumped + published after merge so app-template can pick it up
  • Manual smoke: `wippy.exe run -c -o wippy.facade:fe_mode:default=managed` against the layout-manager-aware web host

🤖 Generated with Claude Code

New `fe_mode` requirement (default: `compat`) picks which Web Host entry
file the facade loads:

- `compat` — module.js, full Wippy chrome (unchanged behavior)
- `managed` — managed-layout.js, declarative multi-panel host driven by
  hostConfig.layout (HostLayoutDeclaration)

Both entries expose the same `window.initWippyApp(config)` symbol, so
index.html does not branch on mode beyond the module file path. Unknown
values of fe_mode normalize to `compat`.

Requires Web Host >= 1.0.24.
Skipped 1.0.24 — last reference here was 1.0.23. Updates the
fe_facade_url default in _index.yaml plus the Makefile WEB_HOST_CDN,
README example, and config_handler_test fixture.

Re-ran `make sync` against the new URL — loading.js content is
unchanged across 1.0.23 → 1.0.25 (the loading component didn't
move this window), so no vendored-file delta to commit.

Verified: wippy lint clean for src/facade and src/facade/test
(0 issues, 2 entries each).

Test runner blocked by a pre-existing Windows-symlink issue
(src/facade/test/public stored as text "../public" because Git
on Windows uses core.symlinks=false). Unrelated to this bump.
@wolfy-j wolfy-j merged commit fd2ce1d into master Apr 28, 2026
14 of 18 checks passed
@wolfy-j wolfy-j deleted the feature/layout-manager branch April 28, 2026 13:04
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