Skip to content

Update Coolify extension - delete project (new action) - #22794

Merged
raycastbot merged 3 commits into
raycast:mainfrom
xmok:ext/coolify
Nov 11, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
xmok:ext/coolify

Conversation

@xmok

@xmok xmok commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Description

  • Delete Project

Screencast

coolify-del-proj.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: coolify Issues related to the coolify extension platform: macOS platform: Windows OP is author The OP of the PR is the author of the extension labels Nov 10, 2025
@raycastbot

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

Due to our current reduced availability, the initial review may take up to 10 business days.

@greptile-apps

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR adds a delete project functionality to the Coolify extension. The implementation refactors the API architecture by centralizing authentication headers in a shared configuration (API_HEADERS in config.ts) and introduces a new API client module (coolify.ts) with a generic request handler. The main projects view is updated to use useFetch from @raycast/utils instead of the custom useCoolify hook to leverage optimistic updates. A destructive delete action is added to the project list with proper confirmation dialogs, error handling, and toast notifications following Raycast's UI patterns.

Important Files Changed

Filename Score Overview
extensions/coolify/src/lib/config.ts 5/5 Centralizes API headers by making API_TOKEN private and exporting API_HEADERS
extensions/coolify/CHANGELOG.md 3/5 Adds changelog entry for delete project feature but lacks descriptive content
extensions/coolify/src/projects.tsx 4/5 Replaces useCoolify with useFetch and adds delete action with confirmation dialog
extensions/coolify/src/lib/use-coolify.ts 5/5 Updates to use centralized API_HEADERS from config
extensions/coolify/src/lib/coolify.ts 4/5 New API client with generic request handler and project delete method

Confidence score: 3/5

  • This PR requires moderate attention due to incomplete changelog documentation and potential runtime issues with API responses
  • Score lowered due to missing descriptive content in changelog entry and potential error handling issues in the new API client for DELETE responses that may not return JSON
  • Pay close attention to the changelog entry which needs descriptive bullet points, and the new coolify.ts file which assumes JSON responses for DELETE requests

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

5 files reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/coolify/CHANGELOG.md Resolved
Comment thread extensions/coolify/src/projects.tsx Resolved
Comment thread extensions/coolify/src/lib/coolify.ts Resolved
@pernielsentikaer pernielsentikaer self-assigned this Nov 11, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 663406a into raycast:main Nov 11, 2025
@github-actions

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@xmok
xmok deleted the ext/coolify branch November 14, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: coolify Issues related to the coolify extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants