Repository navigation
Update deployhq extension - #22151
Conversation
- Add last deployed in accessories. - Initial commit
|
Thank you for your contribution! 🎉 🔔 @MelvinBrem you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
|
Thanks for your contribution @olafvanmidden @MelvinBrem do you want to check this? |
|
@pernielsentikaer Looks good to me 👍 |
There was a problem hiding this comment.
Greptile Overview
Summary
This PR adds a helpful enhancement to display the last deployment date for each DeployHQ project in the search results list. The implementation uses the accessories prop in List.Item to show formatted dates or "Never Deployed" for projects that haven't been deployed yet.
Key changes:
- Added
last_deployed_atdate formatting usingtoLocaleDateString()in list accessories - Updated CHANGELOG with new feature description
- Added contributor to package.json
Issue found:
- The TypeScript interface defines
last_deployed_atasstring, but the runtime code checks for falsy values, suggesting it should be typed asstring | nullto properly represent projects that have never been deployed
Confidence Score: 4/5
- This PR is safe to merge with one minor type definition fix
- The implementation is straightforward and adds a useful feature. The code properly handles null/undefined values at runtime with a truthy check. However, there's a type mismatch in the interface definition that should be corrected to accurately reflect that
last_deployed_atcan be null. This is a minor issue that doesn't affect runtime behavior but should be fixed for type safety. - The interface definition in
extensions/deployhq/src/lib/interfaces.tsneeds a type update to marklast_deployed_atas nullable
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/deployhq/src/searchProjects.tsx | 4/5 | Added last deployment date display in list accessories - implementation looks good with proper null handling |
| extensions/deployhq/src/lib/interfaces.ts | 3/5 | TypeScript interface doesn't mark last_deployed_at as optional despite runtime checks suggesting it can be null/undefined |
Additional Comments (1)
-
extensions/deployhq/src/lib/interfaces.ts, line 25 (link)syntax: The type should be
string | nullsince the code insearchProjects.tsx:56checks if this value is truthy, implying it can be null for projects that have never been deployed
3 files reviewed, 1 comment
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
Description
Added display of the last deployed date for each project in the search results list. If a project has never been deployed, shows “Never Deployed”. Dates are formatted with toLocaleDateString().
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder