Skip to content
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

Merged
merged 19 commits into from
Aug 29, 2024

Conversation

zacharyblasczyk
Copy link
Member

@zacharyblasczyk zacharyblasczyk commented Aug 27, 2024

This allows us to delete and edit deployments.

@@ -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",
Copy link
Member Author

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
Copy link
Member Author

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 {} +",
Copy link
Member Author

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:"
Copy link
Member Author

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.

Comment on lines -17 to +23
"@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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a bump here.

Comment on lines +122 to +131
render={() => (
<FormItem>
<FormLabel>ID</FormLabel>
<Input
value={id}
readOnly
className="bg-gray-800 text-gray-100"
/>
</FormItem>
)}
Copy link
Member Author

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.

Comment on lines 54 to 55
const onSubmit = form.handleSubmit(async (data) => {
const isDataChanged = !isEqual(data, { name, slug, description });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplified this a bit.


setOpen(false);
if (!isDataChanged) return;

Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add that to linear.
RN we display this when you try and create a duplicate slug on any kind:
Screen Shot 2024-08-28 at 11 39 19 PM

Copy link
Member Author

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.

Copy link
Member

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

@zacharyblasczyk zacharyblasczyk merged commit bf077e5 into main Aug 29, 2024
10 checks passed
@zacharyblasczyk zacharyblasczyk deleted the zacharyb/update-delete-deployment branch August 29, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants