Repository navigation
feat(web): serve the web dashboard at /ui/ - #64
Merged
Merged
Conversation
Vite + React 19 + Tailwind, with pages for the dashboard, cluster, statistics, snapshots and settings. `npm run dev` serves it on :5173 and proxies /api, /health and /metrics to localhost:8080. Nothing serves the built files yet. Source only: node_modules and dist stay ignored by web/dashboard/.gitignore. The lockfile is the user's from 2025-12-31. Recovered from untracked work in the user's checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
goclusterfs-mount embeds the dashboard from internal/webui and serves it on the API server under /ui/, on by default (-dashboard=false turns it off). Without `make dashboard` the binary embeds a placeholder page that says how to build it, so go build and go test need no Node. The static files skip auth and the rate limiter: they hold no data, and a browser can't send a token when it loads them. /api/v1/* keeps its rules, and the loopback Host check still covers /ui/. Responses carry a strict Content-Security-Policy and nosniff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Snapshots are per file: pick a path, then create, clone or delete its snapshots, or clone the file. Without a path the page lists every snapshot. Delete finishes in the background, so a deleted snapshot shows as "deleting" until the worker frees it. - The API token is entered in Settings and kept in sessionStorage, so it goes away with the tab. 401 and 403 explain what to do. - Cluster shows the registry's nodes from /stats/cluster and the lock counters from /stats/lock. There is no leader and no per-lock list. - Journal states are clean, dirty, recovering and corrupt. TRIM replaces the SFB card; small-file containers show as disabled. - The refresh settings now drive every page. Settings that did nothing (theme, compact mode, latency, lock panel, API endpoint) are gone. - Data hooks no longer refetch on every render. - Vite builds with base /ui/ into internal/webui/build/dist, without source maps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`make dashboard` runs npm ci, lint and the Vite build. A new Dashboard CI job runs it on Node 22.23.4 and checks that the build embeds and serves. The Go jobs keep testing /ui/ with the placeholder, so they need no Node. The release workflow builds the dashboard before dist.sh, dist.sh refuses to package a placeholder, and archives now carry the licenses of the npm packages the dashboard bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mattmattox
marked this pull request as ready for review
November 12, 2026 07:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
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.
Third of the three PRs that replace draft #52: the user's React dashboard (first commit, unchanged), served by
goclusterfs-mountat/ui/, built to the plan the PM approved. The plan's details are in API-CONFIG.md under "Web Dashboard".Corrections to the plan:
Hostheader, so the API treatsnpm run devas its own origin and writes work there too, still with the token.Pins:
Additions to the plan: the Settings page runs the three admin endpoints, and a 401 on any page points to Settings for the token.
Also fixed:
npm auditon the lockfile (2025-12-31): 19 advisories, all with fixes: 1 low, 4 moderate, 14 high, 0 critical. Nothing is upgraded here; upgrades go in a separate PR, to versions at least 48 h old.BrowserRouterwith fixed routes only.fs.denybypasses, which only affectnpm run dev.Results:
tsc -band eslint clean, API and webui tests pass with-race, parity OK.TestEmbeddedBuildpasses against it./ui/integration tests. Release passed at 4188b9a and 9944ce3, so it builds the UI, packages it with dist.sh and checks the embed.🤖 Generated with Claude Code