Repository navigation
Add vanishlink extension - #20539
Add vanishlink extension#20539n-seiji wants to merge 3 commits into
Conversation
- [:recycle:]リリース準備でlintとかかかってしまった - [:books:]document整備 - [:recycle:]aiによるレビュー - [:bug:]アクセス時にurlが削除されない - [:sparkles:]preferenceで設定できるように - [:recycle:]リリース準備 - [:sparkles:]editを行えるように - [:books:]画像追加 - [:recycle:]aiが書いたコードをリファクタ - [:art:]見切れる - [:art:]同じメソッド名だとerrorが見づらい - [:sparkles:]表記を細かく - [:recycle:]try catchここではいらないかなと思って削除 - [:bug:]importがうまくできてなかった - [:recycle:]構成を変更 - [:books:]設定変更 - [:art:]アイコン変更 - [:recycle:]無駄なtry catchをなくす - [:recycle:]英語に - [:recycle:] errorを解消 - [:sparkles:]プロダクト名変更 - [:books:] document整備 - [:sparkles:]add commandを追加 - init
|
Congratulations on your new Raycast extension! 🚀 Due to our current reduced availability during summer, the initial review may take up to 10-15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
Greptile Summary
This PR introduces a new extension called "vanishlink" that provides temporary link management functionality. The extension allows users to efficiently manage links that are needed for short periods and automatically deletes unused links after a configurable expiration time (ranging from 1 day to 1 year).
The extension includes three main commands:
- Add from Clipboard (no-view mode): Quickly saves URLs from clipboard with automatic title fetching
- Add Bookmark (view mode): Manual bookmark addition with form interface
- Open (view mode): Search and open saved bookmarks
The implementation uses LocalStorage for bookmark persistence and includes proper TypeScript interfaces (BookmarkItem and BookmarkStorage) for type safety. The core functionality is built around automatic expiration logic that tracks when bookmarks were last accessed and removes them based on user preferences. The extension includes utility functions for URL validation, page title fetching with timeout handling, bookmark retrieval with schema validation, and ID generation using MD5 hashes.
The codebase follows good architectural patterns with separated concerns - utility functions are modularized in the lib directory, and each command has its own file. The extension integrates well with Raycast's API using standard patterns for clipboard access, LocalStorage operations, and user feedback through toast notifications.
Confidence score: 2/5
- This PR requires careful review due to multiple compliance issues that need to be addressed before merging
- Score lowered due to missing required configuration files, incorrect changelog format, and command implementation that doesn't follow Raycast guidelines
- Pay close attention to CHANGELOG.md, missing .prettierrc file, and the add-from-clipboard.ts command implementation
Critical Issues that need to be addressed:
-
CHANGELOG.md Format: The version entry title uses
TBDinstead of the required{PR_MERGE_DATE}template string. It should be:## [1.0.0] - {PR_MERGE_DATE} -
Missing .prettierrc Configuration: The extension is missing a
.prettierrcfile with the required Raycast code style settings. Please add this file with:{ "printWidth": 120, "singleQuote": false } -
Command Error Handling: The
add-from-clipboard.tscommand function is not wrapped in a try-catch block. AlllaunchCommandfunctions should be wrapped in try-catch blocks for proper error handling. -
Command Subtitles: Since there are multiple commands, consider adding
subtitlefields to the commands inpackage.jsonwith the service name (probably thetitlefrompackage.json). -
Missing Metadata Screenshots: This PR is labeled as a new extension but doesn't include a
metadatafolder with screenshots. According to the Raycast Documentation, new extensions with view commands need screenshots in the metadata folder.
Context used:
Context - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWidth: 120' and 'singleQuote: false'. (link)
10 files reviewed, 4 comments
| @@ -0,0 +1,6 @@ | |||
| const { defineConfig } = require("eslint/config"); | |||
There was a problem hiding this comment.
syntax: Incorrect import - eslint/config doesn't export defineConfig. Use import { defineConfig } from '@eslint/js' or remove this import entirely as it's not needed.
| const { defineConfig } = require("eslint/config"); | |
| const raycastConfig = require("@raycast/eslint-config"); | |
| module.exports = [ | |
| ...raycastConfig, | |
| ]; |
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [1.0.0] - TBD |
There was a problem hiding this comment.
syntax: The changelog entry must use '{PR_MERGE_DATE}' instead of 'TBD' as per repository guidelines.
| ## [1.0.0] - TBD | |
| ## [1.0.0] - {PR_MERGE_DATE} |
Context Used: Context - For changelog entries, use a format that includes the version and the merge date, e.g., '## [Version] - {PR_MERGE_DATE}'. (link)
| @@ -0,0 +1,94 @@ | |||
| { | |||
There was a problem hiding this comment.
style: Missing .prettierrc file with required Raycast configuration. Create a .prettierrc file with {"printWidth": 120, "singleQuote": false}
Context Used: Context - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWidth: 120' and 'singleQuote: false'. (link)
| "name": "expiredTime", | ||
| "required": true, | ||
| "default": "2week", | ||
| "title": "Expired Time", |
There was a problem hiding this comment.
style: Use title case 'Expiration Time' instead of 'Expired Time' for consistency
| "title": "Expired Time", | |
| "title": "Expiration Time", |
Context Used: Context - Use the title case for titles in the preferences section of package.json files, e.g., 'Tab Width' instead of 'tabWidth'. (link)
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
Thanks for your contribution 💪
I have now tested your extension, and I have some feedback ready for you:
-
You can use shortcuts from
Keyboard.Shortcut.Commonin as shortcuts to use the same as Raycast does, likeKeyboard.Shortcut.Common.Removeinstead of a custom delete shortcut -
You could all add a Delete All and use a confirmAlert to make sure it’s intended
-
I’m not sure if we should add a preference to let users decide if they want to
popToRoot()after adding a link - I’m not sure how many will add multiple links at once?
- Maybe it’s relevant to show how long time is left, or what do you think? Maybe it’s not a real problem at all
- You could add an action from this view with LaunchCommand so the user can go to the add command directly?
- Could you look into the suggestions from Greptile
I'm looking forward to testing this extension again 🔥
Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.
| @@ -0,0 +1,129 @@ | |||
| # vanishlink | |||
There was a problem hiding this comment.
| # vanishlink | |
| # Vanishlink |
| @@ -0,0 +1,132 @@ | |||
| # vanishlink | |||
There was a problem hiding this comment.
| # vanishlink | |
| # Vanishlink |
| "commands": [ | ||
| { | ||
| "name": "add-from-clipboard", | ||
| "title": "Add from Clipboard", |
There was a problem hiding this comment.
| "title": "Add from Clipboard", | |
| "title": "Add from Clipboard", | |
| "subtitle": "Vanishlink", |
| }, | ||
| { | ||
| "name": "add", | ||
| "title": "Add Bookmark", |
There was a problem hiding this comment.
| "title": "Add Bookmark", | |
| "title": "Add Bookmark", | |
| "subtitle": "Vanishlink", |
| }, | ||
| { | ||
| "name": "open", | ||
| "title": "Open", |
There was a problem hiding this comment.
| "title": "Open", | |
| "title": "Search Links", | |
| "subtitle": "Vanishlink", |
|
I converted this PR into a draft until it's ready for the review, please press the button |
|
@pernielsentikaer |
|
here is new PR |



Description
This is a pull request to add a new extension called "vanishlink."
VanishLink is a Raycast Extension designed to efficiently manage links that you need for short periods. It allows you to easily add and manage links that don't warrant permanent bookmarks but require quick access through shortcuts.
A key feature is that links without access for a specified period are automatically deleted, leaving only the links that have been accessed.
The intended use case is for work-related links that are only needed while actively involved in a project at the company. It allows you to avoid cluttering your bookmarks while still enabling quick access via shortcuts.
Commands
Lean more
Screencast
Add Bookmark Command
Open Command
Sub Command
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder