Skip to content

fix(demo): embed console under site nav, fix refresh + deep create - #676

Merged
Timur Tukaev (tym83) merged 1 commit into
mainfrom
feat/demo-embed
Sep 2, 2026
Merged

fix(demo): embed console under site nav, fix refresh + deep create#676
Timur Tukaev (tym83) merged 1 commit into
mainfrom
feat/demo-embed

Conversation

@tym83

Copy link
Copy Markdown
Contributor

Fixes three problems with the live demo reported on the current deployment.

1. Refresh no longer breaks

The demo shipped as a full-screen SPA at /demo/. On GitHub Pages a hard refresh of any deep route (e.g. /demo/console/postgreses) returns the site 404 page, not the SPA — so the demo fell apart on reload. Now the SPA is served at /demo-app/ and /demo/ is a real Hugo page (layout demo-app) that embeds the app in an iframe. The top URL is always /demo/, so a refresh reloads cleanly.

Also restores mockServiceWorker.js to the overlay — it was missing, so an automated rebuild would produce a demo with no mocks at all (the underlying cause of broken refreshes). This was a latent bug in the weekly refresh.

2. Site navigation stays above the demo

The Hugo wrapper renders the normal cozystack.io navbar; the console is embedded below it instead of taking over the whole page.

3. Create works in depth

Deploying a service now installs → turns ready, and its Pods / Services / Volumes are synthesized on the fly so the instance detail tabs are populated (previously a created instance was hollow). Synthesis is read-time, not a create-time mutation, which also fixes a UI freeze on the Deploy button.

Verified end to end in a browser: refresh, the embedded nav, and create → drill into workloads all work.

Supersedes #671 (folds in its deploy-progress and richer fixtures). The weekly demo-refresh smoke gate still applies.

…eate

The demo shipped as a full-screen SPA at /demo/. Three problems: a hard
refresh on any deep route 404'd (GitHub Pages serves the site 404, not the
SPA), the site navigation disappeared, and creating an instance did not carry
through to a usable detail view.

- Serve the SPA build at /demo-app/ and add a Hugo page at /demo/ (layout
  demo-app) that renders the site navbar and embeds the app in an iframe. The
  top URL is always /demo/ (a real page), so a refresh reloads cleanly and the
  main menu stays above the demo.
- Restore mockServiceWorker.js to the overlay. It was missing, so an automated
  rebuild produced a demo with no mocks (this is what broke refreshes).
- Make create work in depth: a deployed instance installs then turns ready,
  and its Pods/Services/Volumes are synthesized on the fly so the detail tabs
  are populated. Synthesis is read-time (not a create-time mutation), which
  also fixes a UI freeze on Deploy.

Supersedes #671 (folds in the deploy-progress and richer fixtures).

Signed-off-by: tym83 <6355522@gmail.com>
@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 340e988
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6a97a3c89e7732000977f757
😎 Deploy Preview https://deploy-preview-676--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 28881ada-8aef-488a-b81c-31855fd02373


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tym83
Timur Tukaev (tym83) merged commit 66e0dab into main Sep 2, 2026
6 of 7 checks passed
@tym83
Timur Tukaev (tym83) deleted the feat/demo-embed branch September 2, 2026 07:31
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