Skip to content

Commit

Permalink
filter build command
Browse files Browse the repository at this point in the history
  • Loading branch information
adeniyii committed Sep 25, 2024
1 parent e663785 commit 990623f
Show file tree
Hide file tree
Showing 7 changed files with 5,934 additions and 9,967 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"turbo": "^2.1.2"
},
"scripts": {
"build": "pnpm turbo run build --filter=!./examples/* --filter=!@kpl/admin",
"generate:root": "pnpx tsx ./integration-generator/index.ts",
"lint-staged": "lint-staged",
"preinstall": "npx only-allow pnpm",
Expand Down
5 changes: 4 additions & 1 deletion packages/admin/src/app/(dashboard)/connections/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export function Page() {

function Page() {
return <>Connection</>;
}

export default Page;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ConnectPage = async ({ params }: { params: { integrationName: string } })
apiKeyConfig,
});

const getOAuthConnectionRoute = ({ name, connectionId }: { name: string; connectionId: string }) => {
const getOAuthConnectionRoute = async ({ name, connectionId }: { name: string; connectionId: string }) => {
'use server';
const router = framework?.createRouter();
return router?.makeConnectURI({
Expand Down
3 changes: 3 additions & 0 deletions packages/admin/src/app/components/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ export const Icon = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement> & { name:
},
);


Icon.displayName = 'Icon';

export default Icon;
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import { ApiKeyConfigProps } from '@/domains/integrations/types';
interface ConnectButtonProps {
apiKeyConfig: ApiKeyConfigProps;
authType: IntegrationCredentialType | undefined;
getOAuthConnectionRoute: ({ name, connectionId }: { name: string; connectionId: string }) => string | undefined;
getOAuthConnectionRoute: ({ name, connectionId }: { name: string; connectionId: string }) => Promise<string | undefined>;
integrationName: string;
}

export const ConnectButton = ({
export const ConnectButton = async ({
authType,
apiKeyConfig,
getOAuthConnectionRoute,
Expand All @@ -34,7 +34,7 @@ export const ConnectButton = ({
const [isOpen, setIsOpen] = React.useState(false);

const handleConnect = async (cId: string) => {
const oauthConnectionRoute = getOAuthConnectionRoute({
const oauthConnectionRoute = await getOAuthConnectionRoute({
name: String(integrationName).toUpperCase(),
connectionId: cId,
});
Expand Down
Loading

0 comments on commit 990623f

Please sign in to comment.