feat(demo): self-refreshing console demo + Resources nav grouping - #670
Merged
Conversation
The mocked /demo/ console was vendored as a prebuilt bundle. Add the source of that bundle as a small overlay on cozystack-ui (demo-src/: the demo mock layer, MSW worker, smoke test, and patches to main.tsx/vite/manifests) plus a build script that clones upstream fresh, lays the overlay on top, smoke-checks it, and regenerates static/demo. A weekly workflow runs that build and opens a PR when the demo changes, using the built-in GITHUB_TOKEN — no fork, no external secrets. This repo is public, so the Actions run is free. Needs Settings → Actions → General → allow GitHub Actions to create PRs. Signed-off-by: tym83 <6355522@gmail.com>
The top nav had grown to seven items and wrapped. Fold OSS Health, Community and Enterprise support into a single Resources dropdown, leaving Docs, Compliance, Resources, Live Demo and GitHub on the top row. Signed-off-by: tym83 <6355522@gmail.com>
Timur Tukaev (tym83)
requested review from
Andrei Kvapil (kvaps),
Timofei Larkin (lllamnyp) and
myasnikovdaniil
as code owners
August 30, 2026 10:01
✅ Deploy Preview for cozystack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 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. Comment |
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.
Two changes.
Self-refreshing demo
The mocked
/demo/console shipped as a prebuilt bundle. This adds its source as a small overlay oncozystack-ui(demo-src/: the mock layer, MSW worker, smoke test, and patches tomain.tsx/vite.config/manifests) plusdemo-src/build.sh, which clones upstream fresh, applies the overlay, smoke-checks a build (Playwright walks every sidebar/tab screen; fails on any un-mocked Kubernetes call or page error), and regeneratesstatic/demo..github/workflows/demo-refresh.ymlruns that weekly and opens a PR when the demo changes — using the built-inGITHUB_TOKEN, no fork and no external secrets. This repo is public, so the run is free.Needs Settings → Actions → General → Allow GitHub Actions to create and approve pull requests enabled once. (
static/demoitself is unchanged here — the rebuild reproduces the current bundle byte-for-byte.)Resources nav grouping
The top nav had grown to seven items and wrapped. OSS Health, Community and Enterprise support fold into a single Resources dropdown, leaving Docs, Compliance, Resources, Live Demo and GitHub on the top row.