Repository navigation
Conversation
- Rename extension to dokploy-manager - Add Dokploy extension for Raycast
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
Greptile SummaryThis PR adds a new Raycast extension for managing Dokploy servers. The main changes are:
Confidence Score: 5/5This looks safe to merge after small preference-typing cleanup.
extensions/dokploy-manager/src/menu-bar.tsx and extensions/dokploy-manager/src/components/service-logs.tsx Important Files Changed
Prompt To Fix All With AIFix the following 2 code review issues. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 2
extensions/dokploy-manager/src/menu-bar.tsx:37-50
**Manual Preference Type Drift**
This command defines its own `Preferences` shape for `menuBarScope` instead of using the Raycast-generated type. If the command preference changes in `package.json`, this local copy can still typecheck while the command reads the wrong shape at runtime.
### Issue 2 of 2
extensions/dokploy-manager/src/components/service-logs.tsx:9-16
**Manual Preference Type Drift**
This component defines a local `Preferences` interface for `logTail`. Raycast generates this type from the manifest, so a later change to the preference schema can leave this code reading a stale field while TypeScript still accepts it.
Reviews (1): Last reviewed commit: "Add dokploy-manager extension" | Re-trigger Greptile |
| interface Preferences { | ||
| /** Whether the menu bar watches every connected instance or only the active one. */ | ||
| menuBarScope?: "all" | "active"; | ||
| } | ||
|
|
||
| const LIFECYCLE_ACTIONS: ServiceAction[] = ["deploy", "redeploy", "rebuild", "start", "stop", "reload"]; | ||
|
|
||
| /** | ||
| * Service health across every connected Dokploy instance. The icon turns red the moment anything | ||
| * anywhere is in `error`, which is the whole point - you find out without going looking. | ||
| */ | ||
| export default function MenuBar() { | ||
| const { accounts, activeAccount, isLoading: accountsLoading, hasAccounts } = useAccounts(); | ||
| const { menuBarScope = "all" } = getPreferenceValues<Preferences>(); |
There was a problem hiding this comment.
This command defines its own Preferences shape for menuBarScope instead of using the Raycast-generated type. If the command preference changes in package.json, this local copy can still typecheck while the command reads the wrong shape at runtime.
Rule Used: What: Don't manually define Preferences for `get... (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/dokploy-manager/src/menu-bar.tsx
Line: 37-50
Comment:
**Manual Preference Type Drift**
This command defines its own `Preferences` shape for `menuBarScope` instead of using the Raycast-generated type. If the command preference changes in `package.json`, this local copy can still typecheck while the command reads the wrong shape at runtime.
**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/raycast/-/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| interface Preferences { | ||
| logTail?: string; | ||
| } | ||
|
|
||
| const DEFAULT_TAIL = 200; | ||
|
|
||
| function resolveTail(): number { | ||
| const raw = getPreferenceValues<Preferences>().logTail; |
There was a problem hiding this comment.
This component defines a local Preferences interface for logTail. Raycast generates this type from the manifest, so a later change to the preference schema can leave this code reading a stale field while TypeScript still accepts it.
Rule Used: What: Don't manually define Preferences for `get... (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/dokploy-manager/src/components/service-logs.tsx
Line: 9-16
Comment:
**Manual Preference Type Drift**
This component defines a local `Preferences` interface for `logTail`. Raycast generates this type from the manifest, so a later change to the preference schema can leave this code reading a stale field while TypeScript still accepts it.
**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/raycast/-/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Hi @merttopuz: There's already a Dokploy extension in Store: https://www.raycast.com/xmok/dokploy. Is it possible to incorporate your features into that one? Also, see: Extensions Guidelines Best! |
|
Hi, thanks for pointing this out - I hadn't seen xmok's extension in the Store. I'm happy to contribute rather than duplicate. What I built is quite a bit broader in scope than the existing extension: it adds a menu-bar service monitor, multi-account switching, deploy/start/stop/reload actions, build and runtime log viewers, and a set of AI tools. I'd like to fold those into xmok/dokploy if the maintainer is open to it. I'll open an issue on their side to propose it and coordinate. If the extension turns out to be unmaintained, or the maintainer would rather not take a change this large, would it be okay to revisit this PR then? Thanks! |
|
Hi again: I'm sure the author would be open to integrating your features considering it's me 😅. I haven't gone through all of your code but it should be possible to integrate most of the features w/o breaking existing user workflows. Feel free to open a PR or ping me if you'd like to discuss first. Best. |
|
Closing this as per discussion above, and also since it is a duplicate of existing extension |
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder