mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
resolves coder/internal#205 The goal is to create a new page located in deployment settings to allow users to create and update organization IDP sync settings. - [x] Use shadcn button for export policy button - [x] Disable save button if form is not dirty - [x] Disable "Add IdP organization" button if idp org name or coder orgs are empty - [x] Add footnote label below organization sync field input - [x] Add button to Delete rows in mapping table - [x] Create Multi-select combox box component to select coder org to map to idp org - [x] Storybook tests - [x] Tooltip for assign default org switch - [x] Display success/error toast on form submission <img width="1181" alt="Screenshot 2024-12-02 at 20 33 07" src="https://github.com/user-attachments/assets/86877d3b-82ec-4ed2-b239-bf8497352a9e">
6 lines
164 B
TypeScript
6 lines
164 B
TypeScript
export const isUUID = (text: string) => {
|
|
const UUID =
|
|
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
return UUID.test(text);
|
|
};
|