Files
supabase/apps
Gildas GarciaandAli Waseem 914a47beec fix: new project form overrides user selected region with a recommended one (#44809)
## Problem

When creating a project, if users select a region then change the
compute size, the region is reset.

## Solution

Only applies the recommended region if users have not selected one
explicitly.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Improved form state handling by extracting and using granular form
operations for more reliable, consistent updates and reduced unnecessary
re-renders.
* **Bug Fixes**
* Auto-fill and region recommendation behavior is gentler: fields are
only auto-populated when untouched, region defaults avoid overwriting
edits, region errors reset defaults safely, and empty recommendations
are normalized to an empty string.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-04-14 17:42:01 +02:00
..