From 62abbd206f3e037cbaaca26fc67e61385bc475d6 Mon Sep 17 00:00:00 2001
From: Daryl Lim <5508348+daryllimyt@users.noreply.github.com>
Date: Thu, 9 Jan 2025 12:56:59 +0000
Subject: [PATCH] feat(ui): Add error states for settings (#721)
---
.../organization/org-settings-auth.tsx | 10 ++++++++
.../organization/org-settings-git.tsx | 23 +++++++++++++++++--
.../organization/org-settings-oauth.tsx | 10 ++++++++
.../organization/org-settings-sso.tsx | 11 +++++++++
4 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/frontend/src/components/organization/org-settings-auth.tsx b/frontend/src/components/organization/org-settings-auth.tsx
index 81434b4b6..6220d9e71 100644
--- a/frontend/src/components/organization/org-settings-auth.tsx
+++ b/frontend/src/components/organization/org-settings-auth.tsx
@@ -18,6 +18,7 @@ import {
} from "@/components/ui/form"
import { Switch } from "@/components/ui/switch"
import { CenteredSpinner } from "@/components/loading/spinner"
+import { AlertNotification } from "@/components/notifications"
import { CustomTagInput } from "@/components/tags-input"
const authFormSchema = z.object({
@@ -40,6 +41,7 @@ export function OrgSettingsAuthForm() {
const {
authSettings,
authSettingsIsLoading,
+ authSettingsError,
updateAuthSettings,
updateAuthSettingsIsPending,
} = useOrgAuthSettings()
@@ -87,6 +89,14 @@ export function OrgSettingsAuthForm() {
if (authSettingsIsLoading) {
return