Bug 2336488

Summary: "Launch storage editor" is greyed out when installer launches, have to proceed to step 2 and return to step 1 before it works
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anaconda-webuiAssignee: Katerina Koukiou <kkoukiou>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkonecny, kkoukiou, mkolman, rvykydal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-webui-22-1.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-22 14:52:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Williamson 2025-01-09 00:54:21 UTC
In current Fedora Rawhide Workstation live, when webui first runs, if you open the kebab menu, the "Launch storage editor" link is greyed out - even though it's supposed to be active from this page ("Installation method"). To get it to activate you have to pick some option and hit Next to reach Storage configuration, then hit Back to get back to Installation method. Now it'll be active.

I think this is because nothing does `setCurrentStepId("installation-method");` when the installer first starts up, but I tried this:

--- a/src/components/app.jsx
+++ b/src/components/app.jsx
@@ -86,6 +86,8 @@ export const Application = ({ conf, dispatch, isFetching, onCritFail, osRelease,
 
     // On live media rebooting the system will actually shut it off
     const title = cockpit.format(_("$0 installation"), osRelease.PRETTY_NAME);
+    // Set initial step ID
+    setCurrentStepId("installation-method");
 
     return (
         <>

...and it seems to make the installer crash, so I don't know the right way to fix this.

Comment 1 Adam Williamson 2025-01-09 19:54:09 UTC
Tried this instead:

--- a/src/components/app.jsx
+++ b/src/components/app.jsx
@@ -54,7 +54,7 @@ export const ApplicationLoading = () => (
 export const Application = ({ conf, dispatch, isFetching, onCritFail, osRelease, reportLinkURL }) => {
     const [storeInitialized, setStoreInitialized] = useState(false);
     const [showStorage, setShowStorage] = useState(false);
-    const [currentStepId, setCurrentStepId] = useState();
+    const [currentStepId, setCurrentStepId] = useState("installation-method");
     const address = useAddress();
     const { path } = usePageLocation();

it doesn't crash, but also doesn't fix the bug, so I'm a bit stumped.

Comment 2 Katerina Koukiou 2025-01-21 15:21:25 UTC
Upstream fix: https://github.com/rhinstaller/anaconda-webui/pull/602

Comment 3 Fedora Update System 2025-01-22 12:29:10 UTC
FEDORA-2025-cd32402343 (anaconda-webui-22-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cd32402343

Comment 4 Fedora Update System 2025-01-22 14:52:56 UTC
FEDORA-2025-cd32402343 (anaconda-webui-22-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.