Skip to content

MAINT: split ScenarioDetail state into hooks and sections - #3526

Open
Utkarsh Bahuguna (u7k4rs6) wants to merge 2 commits into
microsoft:mainfrom
u7k4rs6:refactor/scenario-detail-state
Open

Utkarsh Bahuguna (u7k4rs6) wants to merge 2 commits into
microsoft:mainfrom
u7k4rs6:refactor/scenario-detail-state

Conversation

@u7k4rs6

@u7k4rs6 Utkarsh Bahuguna (u7k4rs6) commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

ScenarioDetail owned loading, the launch form, debounced estimates and launch confirmation all in one 1700 line component.
This moves loading into useScenarioDetail, the related form fields into a reducer, estimates into useScenarioRunEstimate (debounce and stale answers) and the confirm/launch flow into useScenarioLaunch (one run per double click).
The estimate and the run request are now built from the same launch input, and the technique list, estimate summary and run preview are their own components.
Nothing changes for the user: the existing ScenarioDetail tests pass untouched, and there are new focused tests for each piece.

Fixes #2653

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MAINT Decompose ScenarioDetail launch and estimate state

1 participant