Skip to content

Update deployhq extension - #22151

Merged
raycastbot merged 3 commits into
raycast:mainfrom
olafvanmidden:ext/deployhq
Oct 14, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
olafvanmidden:ext/deployhq

Conversation

@olafvanmidden

@olafvanmidden olafvanmidden commented Oct 13, 2025 •

Copy link
Copy Markdown
Contributor

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

ScreenCapture

Checklist

- Add last deployed in accessories.
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: deployhq Issues related to the deployhq extension platform: macOS platform: Windows labels Oct 13, 2025
@raycastbot

raycastbot commented Oct 13, 2025 •

Copy link
Copy Markdown
Collaborator

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.

@olafvanmidden
olafvanmidden marked this pull request as ready for review October 13, 2025 14:45
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Thanks for your contribution @olafvanmidden

@MelvinBrem do you want to check this?

@MelvinBrem

Copy link
Copy Markdown
Contributor

@pernielsentikaer Looks good to me 👍

@greptile-apps greptile-apps Bot 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.

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_at date formatting using toLocaleDateString() in list accessories
  • Updated CHANGELOG with new feature description
  • Added contributor to package.json

Issue found:

  • The TypeScript interface defines last_deployed_at as string, but the runtime code checks for falsy values, suggesting it should be typed as string | null to 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_at can 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.ts needs a type update to mark last_deployed_at as 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)

  1. extensions/deployhq/src/lib/interfaces.ts, line 25 (link)

    syntax: The type should be string | null since the code in searchProjects.tsx:56 checks if this value is truthy, implying it can be null for projects that have never been deployed

3 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@pernielsentikaer pernielsentikaer 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 0f83c14 into raycast:main Oct 14, 2025