Skip to content

[Sink] windows support + shortcuts + modernize - #22850

Merged
raycastbot merged 3 commits into
raycast:mainfrom
xmok:ext/raycast-sink
Nov 12, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
xmok:ext/raycast-sink

Conversation

@xmok

@xmok xmok commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Description

  • Added Windows Support
  • Added action to go to "Create Link" command when there are no links
  • Added option to omit slug when creating link
  • Added keyboard shortcuts to most actions
  • Removed node-fetch

Screencast

N/A as no functionality changes

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: raycast-sink Issues related to the raycast-sink extension platform: macOS platform: Windows labels Nov 12, 2025
@raycastbot

ghost commented Nov 12, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @foru17 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.

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

@greptile-apps

ghost commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR modernizes the Raycast Sink extension with Windows support, improved user experience, and dependency upgrades. Key changes include adding Windows platform compatibility, implementing keyboard shortcuts across actions (copy, delete, refresh, edit), allowing users to omit custom slugs when creating links, and adding a "Create Link" action to the empty state. The codebase has been modernized by migrating from .eslintrc.json to eslint.config.js flat config, upgrading dependencies (@raycast/api from v1.84.3to v1.103.6, @raycast/utils from v1.17.0 to v2.2.2), removing the node-fetch dependency in favor of Raycast's built-in HTTP utilities, and replacing manual useEffect patterns with usePromise hooks. The README has been visually enhanced with a centered header image and improved formatting.

Important Files Changed

Filename Score Overview
extensions/raycast-sink/src/hooks/useConfig.ts 1/5 Critical type error: removed Preferences import but still references it, will break compilation
extensions/raycast-sink/src/hooks/useTranslation.ts 1/5 Critical logic error: compares language to itself instead of current state, breaking language switching
extensions/raycast-sink/CHANGELOG.md 4/5 Added proper changelog entry with template string but contains typos in "Enhancments" and date format
extensions/raycast-sink/package.json 4/5 Substantial modernization with dependency upgrades and Windows support, but large version jumps need attention
extensions/raycast-sink/README.md 5/5 Visual improvements with header image and better formatting, no functional changes
extensions/raycast-sink/eslint.config.js 5/5 Modern ESLint flat config migration using Raycast's standard configuration
extensions/raycast-sink/src/utils/url.ts 5/5 Simple modernization removing unused error parameter from catch block
extensions/raycast-sink/src/createLink.tsx 5/5 Makes slug optional in form validation and API requests for better UX
extensions/raycast-sink/tsconfig.json 5/5 Modernized TypeScript config upgrading to ES2023 and adding raycast-env.d.ts
extensions/raycast-sink/src/components/LinkDetail.tsx 5/5 Modernized with usePromise hook and added keyboard shortcuts with destructive styling
extensions/raycast-sink/src/listLink.tsx 5/5 Added Create Link action to empty state for better user flow
extensions/raycast-sink/src/components/LinkItem.tsx 5/5 Added keyboard shortcuts and destructive styling for better UX

Confidence score: 1/5

  • This PR contains critical compilation and runtime errors that will prevent it from working correctly
  • Score reflects two major issues: missing type imports in useConfig.ts and broken language switching logic in useTranslation.ts that will cause immediate failures
  • Pay close attention to src/hooks/useConfig.ts and src/hooks/useTranslation.ts which have breaking changes that need immediate fixes

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.

Additional Comments (2)

  1. extensions/raycast-sink/CHANGELOG.md, line 41 (link)

    syntax: Extra '0' in the date

  2. extensions/raycast-sink/src/hooks/useTranslation.ts, line 17 (link)

    logic: This condition language !== language will always befalse, breaking language switching logic. Should compare against the current language state variable.

13 files reviewed, 5 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/raycast-sink/package.json Resolved
Comment thread extensions/raycast-sink/CHANGELOG.md Resolved
@pernielsentikaer pernielsentikaer self-assigned this Nov 12, 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 4e55cf4 into raycast:main Nov 12, 2025
@github-actions

ghost commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 12, 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/raycast-sink branch November 14, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: raycast-sink Issues related to the raycast-sink extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants