feat(setup): port Kibana setup wizard to the deepfreeze-server web UI - #16
Merged
Conversation
Adds a 5-step setup wizard to the standalone server UI, gated on Overview when the cluster is uninitialized. Supports both bucket modes: - core Setup gains a create_bucket flag: default True keeps CLI behavior (creates the bucket, errors if it exists); False reuses an existing bucket (precondition requires it to exist, no create/rollback). Setup now populates self._results so the server surfaces dry-run steps and a completion summary via CommandResult.details. - server: expanded SetupRequest with the full wizard config, threaded it through orchestrator.setup(), added get_setup_options() and a new GET /api/setup/options route (buckets, ILM policies, index templates, and s3 client names already in use on the cluster). - frontend: SetupWizard.tsx (reuse-vs-create bucket toggle), setup API client methods/types, and an Overview gate that renders the wizard when status.initialized is false. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
wortmanb
force-pushed
the
pr/setup-wizard
branch
from
July 13, 2026 21:50
57849ac to
b421228
Compare
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.
Summary
Ports the Kibana plugin's setup wizard into the standalone deepfreeze-server web UI, backed by the FastAPI/Python stack. The wizard is gated on the Overview page and appears whenever the cluster is uninitialized (
status.initialized === false); it disappears once setup completes.Bucket modes (both supported)
Setupgains acreate_bucketflag. DefaultTruepreserves existing CLI behavior (creates the bucket, errors if it already exists).Falsereuses an existing bucket — the precondition is inverted (the bucket must exist) and no bucket is created or rolled back.Setupnow populatesself._resultswith step records, so the server surfaces dry-run steps and a completion summary throughCommandResult.details.Server
SetupRequestto the full wizard config (provider, style, year/month, base path, ACL, storage class,rotate_by,create_bucket), threaded throughorchestrator.setup().orchestrator.get_setup_options()andGET /api/setup/optionsroute, returning buckets / ILM policies / index templates / s3 client names already in use on the cluster.CommandResult{success: false, errors: [...]}(HTTP 200), which the wizard renders as a callout.Frontend
SetupWizard.tsx— 5-step EUI wizard with a Step-2 reuse-vs-create bucket toggle.SetupConfig/SetupOptionstypes andgetSetupOptions/setup/setupDryRunclient methods.status.initializedis false.Testing
npm run buildgreen; deployed and verified on the AWS/GCP/Azure test boxes.🤖 Generated with Claude Code