mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
## Problem In the Google sign-in provider settings, the Client IDs field is a single-line input. When several comma-separated IDs are configured, the value overflows the input, so it is hard to tell whether an ID is already present. Linear: FE-4476 ## Solution Show the IDs one per line when the field is not being edited, and the original comma-separated string while it is focused. - Not focused: the field is read-only and shows one ID per line, in the stored order. - Focused: the field is editable and shows the exact stored string. - The stored value, the validation, and the API payload are unchanged. Typing does no conversion. - If the field is read-only or disabled, it stays in the one-per-line view. It adds a small `CommaSeparatedListInput` component and a new `comma-separated-list` field type, used only for the Google Client IDs field. ## Review instructions 1. Open a project and go to Authentication > Sign In / Providers > Google. 2. Enable Google sign-in and enter several client IDs separated by commas, then save. 3. Reload the page and reopen Google. Check that the IDs show one per line, in the order you saved. 4. Click into the field and check that it shows the original comma-separated string. 5. With Google enabled, add a trailing comma or a space and click Save. Check that the validation error appears and no request is sent.