-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update and Delete deployments with cascade, also lint fix #3
Conversation
apps/webservice/src/app/[workspaceSlug]/_components/CreateDeployment.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/CreateSystem.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/DeleteDeployment.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/DeploymentOptionsDropdown.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/DeploymentOptionsDropdown.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/DeploymentOptionsDropdown.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/DeploymentOptionsDropdown.tsx
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
@@ -13,7 +13,7 @@ const buttonVariants = cva( | |||
default: | |||
"bg-primary text-primary-foreground shadow hover:bg-primary/90", | |||
destructive: | |||
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", | |||
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/70", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a bit more visibility on hover.
@@ -7,6 +7,7 @@ packages: | |||
|
|||
catalog: | |||
eslint: ^9.9.0 | |||
typescript-eslint: ^8.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Globalized this.
@@ -10,7 +10,7 @@ | |||
"build": "turbo build", | |||
"build:digitalocean": "pnpm install --production=false && pnpm build", | |||
"clean": "git clean -xdf node_modules", | |||
"clean:workspaces": "turbo clean", | |||
"clean:workspaces": "turbo clean && find . -type d -name 'dist' -exec rm -rf {} +", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helped with the dist being cached and causing an issue with pnpm db:push
@@ -32,6 +32,6 @@ | |||
"prettier": "catalog:", | |||
"tailwindcss": "catalog:", | |||
"typescript": "catalog:", | |||
"typescript-eslint": "^7.8.0" | |||
"typescript-eslint": "catalog:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different eslint across the project.
"@next/eslint-plugin-next": "^14.2.3", | ||
"eslint-config-turbo": "^1.13.3", | ||
"@next/eslint-plugin-next": "^14.2.6", | ||
"eslint-config-turbo": "^1.13.4", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsx-a11y": "^6.8.0", | ||
"eslint-plugin-react": "^7.34.1", | ||
"eslint-plugin-jsx-a11y": "^6.9.0", | ||
"eslint-plugin-react": "^7.35.0", | ||
"eslint-plugin-react-hooks": "beta", | ||
"typescript-eslint": "^7.8.0" | ||
"typescript-eslint": "^7.18.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a bump here.
Signed-off-by: Zachary Blasczyk <[email protected]>
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/systems/[systemSlug]/deployments/TableDeployments.tsx
Outdated
Show resolved
Hide resolved
render={() => ( | ||
<FormItem> | ||
<FormLabel>ID</FormLabel> | ||
<Input | ||
value={id} | ||
readOnly | ||
className="bg-gray-800 text-gray-100" | ||
/> | ||
</FormItem> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't need form control.
apps/webservice/src/app/[workspaceSlug]/_components/DeleteDeployment.tsx
Show resolved
Hide resolved
const onSubmit = form.handleSubmit(async (data) => { | ||
const isDataChanged = !isEqual(data, { name, slug, description }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified this a bit.
apps/webservice/src/app/[workspaceSlug]/_components/DeploymentOptionsDropdown.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
apps/webservice/src/app/[workspaceSlug]/_components/EditDeploymentDialog.tsx
Outdated
Show resolved
Hide resolved
|
||
setOpen(false); | ||
if (!isDataChanged) return; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably add a check to make sure the slug is a valid slug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The toast in the bottom left.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is only shown in dev mode, it will not happen in prod
This allows us to delete and edit deployments.