diff --git a/.gitignore b/.gitignore index d4a85489..76344a89 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ packages/frontend/dist/ # ignore all .DS_Store files **/.DS_Store +.vscode \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index ca7dfdad..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - // IntelliSense for taiwind variants - "tailwindCSS.experimental.classRegex": [ - "tv\\('([^)]*)\\')", - "(?:'|\"|`)([^\"'`]*)(?:'|\"|`)" - ], - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" -} diff --git a/packages/backend/src/server.ts b/packages/backend/src/server.ts index 734893e7..d9ed06c9 100644 --- a/packages/backend/src/server.ts +++ b/packages/backend/src/server.ts @@ -1,22 +1,22 @@ -import debug from 'debug'; -import express from 'express'; -import cors from 'cors'; -import { ApolloServer } from 'apollo-server-express'; -import { createServer } from 'http'; import { ApolloServerPluginDrainHttpServer, ApolloServerPluginLandingPageLocalDefault, AuthenticationError, } from 'apollo-server-core'; +import { ApolloServer } from 'apollo-server-express'; +import cors from 'cors'; +import debug from 'debug'; +import express from 'express'; import session from 'express-session'; +import { createServer } from 'http'; -import { TypeSource } from '@graphql-tools/utils'; import { makeExecutableSchema } from '@graphql-tools/schema'; +import { TypeSource } from '@graphql-tools/utils'; import { ServerConfig } from './config'; import { DEFAULT_GQL_PATH } from './constants'; -import githubRouter from './routes/github'; import authRouter from './routes/auth'; +import githubRouter from './routes/github'; import stagingRouter from './routes/staging'; import { Service } from './service'; @@ -101,7 +101,7 @@ export const createAndStartServer = async ( } app.use( - session(sessionOptions) + session(sessionOptions) as unknown as express.RequestHandler ); server.applyMiddleware({ @@ -116,9 +116,9 @@ export const createAndStartServer = async ( app.use(express.json()); app.set('service', service); - app.use('/auth', authRouter); - app.use('/api/github', githubRouter); - app.use('/staging', stagingRouter); + app.use('/auth', authRouter as express.RequestHandler); + app.use('/api/github', githubRouter as express.RequestHandler); + app.use('/staging', stagingRouter as express.RequestHandler); app.use((err: any, req: any, res: any, next: any) => { console.error(err); diff --git a/packages/frontend/config/tabPageConfig.tsx b/packages/frontend/config/tabPageConfig.tsx deleted file mode 100644 index f8d2ebee..00000000 --- a/packages/frontend/config/tabPageConfig.tsx +++ /dev/null @@ -1,25 +0,0 @@ -export const tabPageConfig: TabPageNavigationConfig = { - defaultTab: 'tab1', - tabs: [ - { - id: 'tab1', - label: 'Overview', - content:
{text}
-{subtitle}
+ )} ++ Suggestions +
++ Suggestions +
++ No projects matching this name +
++ {item.name} +
+{item.organization.name}
+This will halt the deployment and you'll have to start the process diff --git a/packages/frontend/src/components/projects/Dialog/ChangeStateToProductionDialog.tsx b/packages/frontend/src/components/projects/Dialog/ChangeStateToProductionDialog.tsx index f761bffb..528f3fda 100644 --- a/packages/frontend/src/components/projects/Dialog/ChangeStateToProductionDialog.tsx +++ b/packages/frontend/src/components/projects/Dialog/ChangeStateToProductionDialog.tsx @@ -1,17 +1,18 @@ import ConfirmDialog, { ConfirmDialogProps, -} from 'components/shared/ConfirmDialog'; +} from '@/components/shared/ConfirmDialog'; import { Deployment, Domain } from 'gql-client'; +import { Link } from 'react-router-dom'; -import DeploymentDialogBodyCard from 'components/projects/project/deployments/DeploymentDialogBodyCard'; -import { Button } from 'components/shared/Button'; +import DeploymentDialogBodyCard from '@/components/projects/project/deployments/DeploymentDialogBodyCard'; +import { TagProps } from '@/components/shared/Tag'; +import { Button } from '@/components/ui'; import { - ChevronDown, - Link, ArrowRightCircle, + ChevronDown, + Link as LinkIcon, Loader2, } from 'lucide-react'; -import { TagProps } from 'components/shared/Tag'; interface ChangeStateToProductionDialogProps extends ConfirmDialogProps { deployment: Deployment; @@ -55,7 +56,7 @@ export const ChangeStateToProductionDialog = ({ ), }} > -
Upon confirmation, this deployment will be changed to production. @@ -66,7 +67,7 @@ export const ChangeStateToProductionDialog = ({ /> {newDeployment && ( <> -
+
Once deleted, the deployment will not be accessible.
diff --git a/packages/frontend/src/components/projects/Dialog/DeleteDomainDialog.tsx b/packages/frontend/src/components/projects/Dialog/DeleteDomainDialog.tsx index 3d2d5c16..0ef568cc 100644 --- a/packages/frontend/src/components/projects/Dialog/DeleteDomainDialog.tsx +++ b/packages/frontend/src/components/projects/Dialog/DeleteDomainDialog.tsx @@ -1,6 +1,6 @@ import ConfirmDialog, { ConfirmDialogProps, -} from 'components/shared/ConfirmDialog'; +} from '@/components/shared/ConfirmDialog'; interface DeleteDomainDialogProps extends ConfirmDialogProps { projectName: string; @@ -23,9 +23,9 @@ export const DeleteDomainDialog = ({ open={open} confirmButtonTitle="Yes, delete domain" handleConfirm={handleConfirm} - confirmButtonProps={{ variant: 'danger' }} + confirmButtonProps={{ variant: 'destructive' }} > -+
Once deleted, the project{' '}
{projectName}
diff --git a/packages/frontend/src/components/projects/Dialog/DeleteVariableDialog.tsx b/packages/frontend/src/components/projects/Dialog/DeleteVariableDialog.tsx
index ba014480..b5f6f45c 100644
--- a/packages/frontend/src/components/projects/Dialog/DeleteVariableDialog.tsx
+++ b/packages/frontend/src/components/projects/Dialog/DeleteVariableDialog.tsx
@@ -1,6 +1,6 @@
import ConfirmDialog, {
ConfirmDialogProps,
-} from 'components/shared/ConfirmDialog';
+} from '@/components/shared/ConfirmDialog';
interface DeleteVariableDialogProps extends ConfirmDialogProps {
variableKey: string;
@@ -21,9 +21,9 @@ export const DeleteVariableDialog = ({
open={open}
confirmButtonTitle="Yes, confirm delete"
handleConfirm={handleConfirm}
- confirmButtonProps={{ variant: 'danger' }}
+ confirmButtonProps={{ variant: 'destructive' }}
>
-
+
Are you sure you want to delete the variable{' '}
{variableKey}
diff --git a/packages/frontend/src/components/projects/Dialog/DeleteWebhookDialog.tsx b/packages/frontend/src/components/projects/Dialog/DeleteWebhookDialog.tsx
index 2017d4c0..97c9dfaf 100644
--- a/packages/frontend/src/components/projects/Dialog/DeleteWebhookDialog.tsx
+++ b/packages/frontend/src/components/projects/Dialog/DeleteWebhookDialog.tsx
@@ -1,6 +1,6 @@
import ConfirmDialog, {
ConfirmDialogProps,
-} from 'components/shared/ConfirmDialog';
+} from '@/components/shared/ConfirmDialog';
interface DeleteWebhookDialogProps extends ConfirmDialogProps {
webhookUrl: string;
@@ -21,9 +21,9 @@ export const DeleteWebhookDialog = ({
open={open}
confirmButtonTitle="Yes, confirm delete"
handleConfirm={handleConfirm}
- confirmButtonProps={{ variant: 'danger' }}
+ confirmButtonProps={{ variant: 'destructive' }}
>
-
+
Are you sure you want to delete{' '}
{webhookUrl}
diff --git a/packages/frontend/src/components/projects/Dialog/DisconnectRepositoryDialog.tsx b/packages/frontend/src/components/projects/Dialog/DisconnectRepositoryDialog.tsx
index 43d1f372..793b299c 100644
--- a/packages/frontend/src/components/projects/Dialog/DisconnectRepositoryDialog.tsx
+++ b/packages/frontend/src/components/projects/Dialog/DisconnectRepositoryDialog.tsx
@@ -1,6 +1,6 @@
import ConfirmDialog, {
ConfirmDialogProps,
-} from 'components/shared/ConfirmDialog';
+} from '@/components/shared/ConfirmDialog';
interface DisconnectRepositoryDialogProps extends ConfirmDialogProps {}
@@ -18,9 +18,9 @@ export const DisconnectRepositoryDialog = ({
open={open}
confirmButtonTitle="Yes, confirm disconnect"
handleConfirm={handleConfirm}
- confirmButtonProps={{ variant: 'danger' }}
+ confirmButtonProps={{ variant: 'destructive' }}
>
-
+
Any data tied to your Git project may become misconfigured. Are you sure
you want to continue?
+
Once removed, {formatAddress(memberName)} ({formatAddress(ethAddress)}@
{emailDomain}) will not be able to access this project.
{project.name} {project.name} {project.name}
- {project.deployments[0]?.applicationDeploymentRecordData?.url ?? 'No domain'}
+ {project.deployments[0]?.applicationDeploymentRecordData?.url ??
+ 'No domain'}