Skip to content

Add GSP Layout (SiteMesh) option dropdown#118

Closed
codeconsole wants to merge 0 commit into
apache:mainfrom
codeconsole:feat/gsp-layout-option
Closed

Add GSP Layout (SiteMesh) option dropdown#118
codeconsole wants to merge 0 commit into
apache:mainfrom
codeconsole:feat/gsp-layout-option

Conversation

@codeconsole

Copy link
Copy Markdown

Adds a "GSP Layout" radio group (SiteMesh 3 default / SiteMesh 2) driven by the new gspLayout select option, and sends gspLayout on the features/diff/preview/create requests plus the generated --gsp-layout CLI arg.

Pairs with the grails-forge backend change (apache/grails-core#15713), where SiteMesh 3 and GSP SiteMesh 2 Layouts become invisible, option-driven defaults. Together they fix the UI glitch where selecting SiteMesh 2 left SiteMesh 3 still shown as an included default — the layout choice is now a single dropdown instead of two conflicting feature cards.

Lint clean; vitest suite green (no snapshot changes).

@matrei

matrei commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Appreciate the effort 👍

However, I'm not sure the GSP layout engine should have such a prominent position in the Forge.
As it is now in Forge, SiteMesh 2 (grails-layout) is silently the default. You can select SiteMesh 3 as a feature.

Can't we just switch these around?

(For reference, this is what the change in this PR looks like)
Screenshot from 2026-06-10 16-37-17

@jdaugherty

Copy link
Copy Markdown
Contributor

I disagree with this change. It's not like there are going to be multiple options for this longer term. We should leave it as a feature.

@codeconsole codeconsole force-pushed the feat/gsp-layout-option branch from b335c81 to e73ca1b Compare June 10, 2026 15:26
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.

3 participants