3d57c90e04
Closes #12303 ### What’s Changed - Replace auto‐save with explicit Save / Cancel Webhook forms now use manual “Save” and “Cancel” buttons instead of the old debounced auto‐save/update. - Separate “New” and “Detail” routes Two dedicated paths `/settings/webhooks/new` for creation and /`settings/webhooks/:webhookId` for editing, making the UX clearer. - URL hint & normalization If a user omits the http(s):// scheme, we display a “Will be saved as https://…” hint and automatically default to HTTPS. - Centralized validation with Zod Introduced a `webhookFormSchema` for client‐side URL, operations, and secret validation. - Storybook coverage Added stories for both “New Webhook” and “Webhook Detail” - Unit tests Added tests for the new `useWebhookForm` hook
30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
/*
|
|
* _____ _
|
|
*|_ _|_ _____ _ __ | |_ _ _
|
|
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
|
|
* | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden
|
|
* |_| \_/\_/ \___|_| |_|\__|\__, |
|
|
* |___/
|
|
*/
|
|
|
|
export { assertUnreachable } from './assertUnreachable';
|
|
export { isFieldMetadataDateKind } from './fieldMetadata/isFieldMetadataDateKind';
|
|
export { getImageAbsoluteURI } from './image/getImageAbsoluteURI';
|
|
export {
|
|
sanitizeURL,
|
|
getLogoUrlFromDomainName,
|
|
} from './image/getLogoUrlFromDomainName';
|
|
export { parseJson } from './parseJson';
|
|
export { capitalize } from './strings/capitalize';
|
|
export { absoluteUrlSchema } from './url/absoluteUrlSchema';
|
|
export { buildSignedPath } from './url/buildSignedPath';
|
|
export { getAbsoluteUrl } from './url/getAbsoluteUrl';
|
|
export { getAbsoluteUrlOrThrow } from './url/getAbsoluteUrlOrThrow';
|
|
export { getUrlHostnameOrThrow } from './url/getUrlHostnameOrThrow';
|
|
export { isValidHostname } from './url/isValidHostname';
|
|
export { isValidUrl } from './url/isValidUrl';
|
|
export { isDefined } from './validation/isDefined';
|
|
export { isValidLocale } from './validation/isValidLocale';
|
|
export { isValidUuid } from './validation/isValidUuid';
|
|
export { normalizeLocale } from './validation/normalizeLocale';
|