Agentic UI: Make the site settings WordPress version field a dropdown - #4284
Conversation
📊 Performance Test ResultsComparing 736afc2 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
…dropdown # Conflicts: # apps/ui/src/data/queries/use-sites.ts
|
When the site is restarting, the WP version is temporarily reverted to the previous one: 1231221312.mov |
@nightnei it should be fixed, can you take another look please? 🙇 |
sejas
left a comment
There was a problem hiding this comment.
Code looks good. I just found a edge case that I think is misleading. When I'm offline the WP version option is disabled and it makes sense, but it also changes from the real value to latest which I think is not correct.
wp-version-offline.mp4
…dropdown # Conflicts: # apps/local/src/index.ts
|
@sejas I fixed that issue, can you take another look please? 🙇
|
|
@bcotrim Confirm that both the bug Antonio reported and mine are fixed.
|
|
@nightnei thanks for catching that, should be fixed now! 🙇 |
nightnei
left a comment
There was a problem hiding this comment.
Thanks Bernardo, now works perfectly and I didn't spot any regression 👍

Related issues
How AI was used in this PR
Implemented with Claude: reused the existing
useWordPressVersionsquery andwpVersionFieldselect support, then extended them for the settings form and ported the legacy version-selector semantics. Code and tests reviewed by me.Proposed Changes
The WordPress version field in the agentic UI site settings was a free-text input, so you could type anything (including invalid versions). It's now a dropdown of the actually available WordPress versions, with the same semantics as Studio Classic:
isWpAutoUpdating: falseand the version is applied on save.getWpVersionconnector method: IPC handler on desktop, a/sites/:id/wp-versionroute on the local server). If the installed version is older than the fetched offers, it's inserted into the list in the right position so it stays selectable.Testing Instructions
Pre-merge Checklist