From d7ef0b0cfb572c49df3c48bb6188e9f02e8b7761 Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:53:04 -0700 Subject: [PATCH] run the pre-commit hooks (#80) Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- apps/console/public/icons/horizonal-bars.svg | 14 -- apps/console/src/app/(auth)/verify/page.tsx | 2 +- apps/console/src/app/(auth)/waitlist/page.tsx | 2 +- apps/console/src/app/layout.tsx | 2 +- .../components/pages/auth/signup/signup.tsx | 4 +- .../pages/auth/subscriber-verify/verifier.tsx | 10 +- .../src/components/pages/invite/accept.tsx | 10 +- .../developers/personal-access-token-form.tsx | 6 +- .../members/actions/member-actions.tsx | 2 +- .../protected/policies/actions/actions.tsx | 6 +- .../protected/policies/policies-table.tsx | 2 +- .../protected/procedures/actions/actions.tsx | 6 +- .../protected/procedures/procedures-table.tsx | 2 +- .../questionnaire/actions/actions.tsx | 4 +- .../pages/protected/questionnaire/create.tsx | 9 +- .../questionnaire/questionnaire-editor.tsx | 12 +- .../questionnaire/questionnaire-table.tsx | 2 +- .../questionnaire/questionnaire-viewer.tsx | 2 +- .../protected/questionnaire/templates.tsx | 2 +- .../src/components/shared/editor/plate.tsx | 8 +- apps/console/src/lib/auth/auth.ts | 4 +- apps/console/src/lib/authz/utils.ts | 6 +- apps/storybook/.storybook/openlane.ts | 4 +- apps/storybook/src/stories/Introduction.mdx | 4 +- packages/codegen/query/organzation.graphql | 135 ------------------ packages/dally/src/index.ts | 2 +- packages/tailwind-config/tailwind.config.ts | 4 +- .../dropdown-menu/dropdown-menu.styles.tsx | 2 +- packages/ui/src/logo/logo.tsx | 20 +-- .../ui/src/plate-ui/code-block-element.css | 125 ++++++++-------- .../ui/src/plate-ui/fixed-toolbar-buttons.tsx | 2 +- .../ui/src/plate-ui/mention-input-element.tsx | 2 +- 32 files changed, 133 insertions(+), 284 deletions(-) delete mode 100644 apps/console/public/icons/horizonal-bars.svg delete mode 100644 packages/codegen/query/organzation.graphql diff --git a/apps/console/public/icons/horizonal-bars.svg b/apps/console/public/icons/horizonal-bars.svg deleted file mode 100644 index 516ee32c..00000000 --- a/apps/console/public/icons/horizonal-bars.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/apps/console/src/app/(auth)/verify/page.tsx b/apps/console/src/app/(auth)/verify/page.tsx index 02a4be1b..223a6197 100644 --- a/apps/console/src/app/(auth)/verify/page.tsx +++ b/apps/console/src/app/(auth)/verify/page.tsx @@ -2,7 +2,7 @@ import { Suspense } from 'react' import { LoaderCircle } from 'lucide-react' -import { TokenVerifier } from '@/components/pages/auth/subscriber-verify/verifier' +import { TokenVerifier } from '@/components/pages/auth/subscriber-verify/verifier' export const dynamic = 'force-dynamic' diff --git a/apps/console/src/app/(auth)/waitlist/page.tsx b/apps/console/src/app/(auth)/waitlist/page.tsx index 551b4154..cdd2cb5b 100644 --- a/apps/console/src/app/(auth)/waitlist/page.tsx +++ b/apps/console/src/app/(auth)/waitlist/page.tsx @@ -23,7 +23,7 @@ const Waitlist: React.FC = () => {
- Back to login + Back to login
diff --git a/apps/console/src/app/layout.tsx b/apps/console/src/app/layout.tsx index bd70f9a2..93a635e2 100644 --- a/apps/console/src/app/layout.tsx +++ b/apps/console/src/app/layout.tsx @@ -25,7 +25,7 @@ export default function RootLayout({ async src="https://js.stripe.com/v3/pricing-table.js"> - + diff --git a/apps/console/src/components/pages/auth/signup/signup.tsx b/apps/console/src/components/pages/auth/signup/signup.tsx index a9dca21a..9585fc13 100644 --- a/apps/console/src/components/pages/auth/signup/signup.tsx +++ b/apps/console/src/components/pages/auth/signup/signup.tsx @@ -159,13 +159,13 @@ export const SignupPage = () => { }} onSubmit={async (payload: RegisterUser) => { setIsLoading(true) - try { + try { const v: any = await validateEmail(payload) if (!v) { router.push('/waitlist') return } - + if (payload.password === payload.confirmedPassword) { delete payload.confirmedPassword diff --git a/apps/console/src/components/pages/auth/subscriber-verify/verifier.tsx b/apps/console/src/components/pages/auth/subscriber-verify/verifier.tsx index b23b285e..2b18a5e5 100644 --- a/apps/console/src/components/pages/auth/subscriber-verify/verifier.tsx +++ b/apps/console/src/components/pages/auth/subscriber-verify/verifier.tsx @@ -15,7 +15,7 @@ export const TokenVerifier = () => { const [message, setMessage] = useState('') const [error, setError] = useState('') - + useEffect(() => { const verifyToken = async () => { @@ -42,7 +42,7 @@ export const TokenVerifier = () => { <>
-
+
No token provided, please check your email for a verification link.
@@ -51,11 +51,11 @@ export const TokenVerifier = () => { } if (error) { - return ( + return ( <>
-
+
{error}
) @@ -81,7 +81,7 @@ export const TokenVerifier = () => { <>
-
+
Verifying diff --git a/apps/console/src/components/pages/invite/accept.tsx b/apps/console/src/components/pages/invite/accept.tsx index 6ca8c0be..41a6f502 100644 --- a/apps/console/src/components/pages/invite/accept.tsx +++ b/apps/console/src/components/pages/invite/accept.tsx @@ -13,9 +13,9 @@ export const InviteAccepter = () => { const { data: session, update } = useSession() const { push } = useRouter() const token = searchParams?.get('token') - + const { isLoading, verified, error } = useAcceptOrganizationInvite(token ?? null) - + useEffect(() => { const updateSession = async () => { if (verified && session) { @@ -28,14 +28,14 @@ export const InviteAccepter = () => { organization: verified?.joined_org_id, }, }) - + push('/dashboard') } } - + updateSession() }, [verified, error]) - + return (
diff --git a/apps/console/src/components/pages/protected/developers/personal-access-token-form.tsx b/apps/console/src/components/pages/protected/developers/personal-access-token-form.tsx index 435aa8b4..878b298c 100644 --- a/apps/console/src/components/pages/protected/developers/personal-access-token-form.tsx +++ b/apps/console/src/components/pages/protected/developers/personal-access-token-form.tsx @@ -215,9 +215,9 @@ const PersonalAccessTokenForm = () => { {Object.entries(orgs) .reverse() .map(([key, value], i) => ( - { const newValue = checked @@ -235,7 +235,7 @@ const PersonalAccessTokenForm = () => { {value?.node?.name?.substring(0, 2)} - + {value?.node?.name} )) diff --git a/apps/console/src/components/pages/protected/organization/members/actions/member-actions.tsx b/apps/console/src/components/pages/protected/organization/members/actions/member-actions.tsx index 742a60dc..fb3e9bea 100644 --- a/apps/console/src/components/pages/protected/organization/members/actions/member-actions.tsx +++ b/apps/console/src/components/pages/protected/organization/members/actions/member-actions.tsx @@ -99,7 +99,7 @@ export const MemberActions = ({ type FormData = zInfer - + const form = useForm({ resolver: zodResolver(formSchema), defaultValues: { diff --git a/apps/console/src/components/pages/protected/policies/actions/actions.tsx b/apps/console/src/components/pages/protected/policies/actions/actions.tsx index 5ea83518..0ba48ebf 100644 --- a/apps/console/src/components/pages/protected/policies/actions/actions.tsx +++ b/apps/console/src/components/pages/protected/policies/actions/actions.tsx @@ -38,7 +38,7 @@ export const Actions = ({ const router = useRouter() const { actionIcon } = pageStyles() const { toast } = useToast() - + // const [ _, deleteTemplate] = useDeletePolicyMutation() const [isDeleteDialogOpen, setIsDeleteDialogOpen] = useState(false); @@ -87,8 +87,8 @@ export const Actions = ({ - - + + diff --git a/apps/console/src/components/pages/protected/policies/policies-table.tsx b/apps/console/src/components/pages/protected/policies/policies-table.tsx index 51774605..df2d1e29 100644 --- a/apps/console/src/components/pages/protected/policies/policies-table.tsx +++ b/apps/console/src/components/pages/protected/policies/policies-table.tsx @@ -78,7 +78,7 @@ export const PoliciesTable = () => { // onChange={handleSearch} />
-
-