This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch fixVulnerabilitiesAndModernize in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git
commit 19f939ea72d3df66ae048a851271c94ba7279693 Author: James Daugherty <[email protected]> AuthorDate: Sun Mar 1 01:34:13 2026 -0500 Fix renamed state key and regenerate stale snapshots --- .../__snapshots__/useApplicationForm.test.jsx.snap | 38 +++++++++++----------- .../useAvailableFeatures.test.jsx.snap | 4 +-- app/launch/src/state/factories/initializeState.js | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/launch/src/components/Application/__tests__/__snapshots__/useApplicationForm.test.jsx.snap b/app/launch/src/components/Application/__tests__/__snapshots__/useApplicationForm.test.jsx.snap index b97faf5..9599636 100644 --- a/app/launch/src/components/Application/__tests__/__snapshots__/useApplicationForm.test.jsx.snap +++ b/app/launch/src/components/Application/__tests__/__snapshots__/useApplicationForm.test.jsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Initial Form Data with "" 1`] = ` Array [ @@ -200,7 +200,7 @@ Array [ ] `; -exports[`Initial Form Data with "servlet" 1`] = ` +exports[`Initial Form Data with "reloading" 1`] = ` Array [ <div className="type" @@ -210,22 +210,22 @@ Array [ <div className="reloading" > - + JREBEL </div>, <div className="servlet" > - spring-boot-starter-tomcat + </div>, <div className="gorm" > - + </div>, <div className="javaVersion" > - + </div>, <div className="name" @@ -240,7 +240,7 @@ Array [ ] `; -exports[`Initial Form Data with "servlet" 2`] = ` +exports[`Initial Form Data with "reloading" 2`] = ` Array [ <div className="type" @@ -250,22 +250,22 @@ Array [ <div className="reloading" > - + DEVTOOLS </div>, <div className="servlet" > - NONE + </div>, <div className="gorm" > - + </div>, <div className="javaVersion" > - + </div>, <div className="name" @@ -280,7 +280,7 @@ Array [ ] `; -exports[`Initial Form Data with "reloading" 1`] = ` +exports[`Initial Form Data with "servlet" 1`] = ` Array [ <div className="type" @@ -290,22 +290,22 @@ Array [ <div className="reloading" > - SPOCK + </div>, <div className="servlet" > - + spring-boot-starter-tomcat </div>, <div className="gorm" > - + </div>, <div className="javaVersion" > - + </div>, <div className="name" @@ -320,7 +320,7 @@ Array [ ] `; -exports[`Initial Form Data with "reloading" 2`] = ` +exports[`Initial Form Data with "servlet" 2`] = ` Array [ <div className="type" @@ -330,12 +330,12 @@ Array [ <div className="reloading" > - DEVTOOLS + </div>, <div className="servlet" > - + NONE </div>, <div className="gorm" diff --git a/app/launch/src/components/Application/__tests__/__snapshots__/useAvailableFeatures.test.jsx.snap b/app/launch/src/components/Application/__tests__/__snapshots__/useAvailableFeatures.test.jsx.snap index a219bf1..611fc5c 100644 --- a/app/launch/src/components/Application/__tests__/__snapshots__/useAvailableFeatures.test.jsx.snap +++ b/app/launch/src/components/Application/__tests__/__snapshots__/useAvailableFeatures.test.jsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Initial Form Data with "BOOM" 1`] = ` <div @@ -10,7 +10,7 @@ exports[`Initial Form Data with "BOOM" 1`] = ` exports[`Initial Form Data with "WEB" 1`] = ` <div - className="test" + className="reloading" > [ "a", diff --git a/app/launch/src/state/factories/initializeState.js b/app/launch/src/state/factories/initializeState.js index 0fb0edc..2d1bd82 100644 --- a/app/launch/src/state/factories/initializeState.js +++ b/app/launch/src/state/factories/initializeState.js @@ -13,7 +13,7 @@ const initialForm = (initialData) => { javaVersion: typeof javaVersion === 'string' ? javaVersion : '', // This is specifically "" to work with the SelectOption component servlet: typeof servlet === 'string' ? servlet : '', gorm: typeof gorm === 'string' ? gorm : '', - test: typeof reloading === 'string' ? reloading : '', + reloading: typeof reloading === 'string' ? reloading : '', features: StarterSDK.reconstructFeatures(features), [ACTIVITY_KEY]: initialData[ACTIVITY_KEY], }
