From 7b807a0745660dba88131033059b7c1b3d0aea12 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 14 Aug 2025 12:03:28 +0200 Subject: [PATCH] ui/vars: add more vars to install story --- .../src/workflows/Install/Install.stories.tsx | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-app/ui/src/workflows/Install/Install.stories.tsx b/pkgs/clan-app/ui/src/workflows/Install/Install.stories.tsx index 54ff6a598..70e5b45ea 100644 --- a/pkgs/clan-app/ui/src/workflows/Install/Install.stories.tsx +++ b/pkgs/clan-app/ui/src/workflows/Install/Install.stories.tsx @@ -64,15 +64,70 @@ const mockFetcher: Fetcher = ( description: "Name of the gritty", prompt_type: "line", display: { - label: "Gritty Name", + label: "(1) Name", group: "User", required: true, }, }, + { + name: "gritty.foo", + description: "Name of the gritty", + prompt_type: "line", + display: { + label: "(2) Password", + group: "Root", + required: true, + }, + }, + { + name: "gritty.bar", + description: "Name of the gritty", + prompt_type: "line", + display: { + label: "(3) Gritty", + group: "Root", + required: true, + }, + }, + ], + }, + { + name: "funny.dodo", + prompts: [ + { + name: "gritty.name", + description: "Name of the gritty", + prompt_type: "line", + display: { + label: "(4) Name", + group: "User", + required: true, + }, + }, + { + name: "gritty.foo", + description: "Name of the gritty", + prompt_type: "line", + display: { + label: "(5) Password", + group: "Lonely", + required: true, + }, + }, + { + name: "gritty.bar", + description: "Name of the gritty", + prompt_type: "line", + display: { + label: "(6) Batty", + group: "Root", + required: true, + }, + }, ], }, ], - run_generators: null, + run_generators: true, get_machine_hardware_summary: { hardware_config: "nixos-facter", },