From 1887d9ba5695aeee6bbd0c9dff860caba490595c Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Wed, 28 Jan 2026 19:51:35 +1100 Subject: [PATCH] feat: add VS Code install buttons to list views - Add VS Code and VS Code Insiders install buttons to agent, prompt, and instruction list items - Use smaller button style for list view - Include VS Code icon for visual identification --- website/public/data/manifest.json | 2 +- website/src/scripts/pages/agents.ts | 13 ++++++++++--- website/src/scripts/pages/instructions.ts | 13 +++++++++++-- website/src/scripts/pages/prompts.ts | 13 +++++++++++-- 4 files changed, 33 insertions(+), 8 deletions(-) diff --git a/website/public/data/manifest.json b/website/public/data/manifest.json index 6ba6bacd..1d190fe2 100644 --- a/website/public/data/manifest.json +++ b/website/public/data/manifest.json @@ -1,5 +1,5 @@ { - "generated": "2026-01-28T08:38:48.985Z", + "generated": "2026-01-28T08:51:25.860Z", "counts": { "agents": 140, "prompts": 134, diff --git a/website/src/scripts/pages/agents.ts b/website/src/scripts/pages/agents.ts index 9423a519..2be8b79e 100644 --- a/website/src/scripts/pages/agents.ts +++ b/website/src/scripts/pages/agents.ts @@ -3,7 +3,7 @@ */ import { createChoices, getChoicesValues, type Choices } from '../choices'; import { FuzzySearch } from '../search'; -import { fetchData, debounce, escapeHtml, getGitHubUrl } from '../utils'; +import { fetchData, debounce, escapeHtml, getGitHubUrl, getVSCodeInstallUrl } from '../utils'; import { setupModal, openFileModal } from '../modal'; interface Agent { @@ -102,8 +102,15 @@ function renderItems(items: Agent[], query = ''): void {
- - View on GitHub + + + VS Code + + + Insiders + + + GitHub
diff --git a/website/src/scripts/pages/instructions.ts b/website/src/scripts/pages/instructions.ts index cd2d864b..50e4df91 100644 --- a/website/src/scripts/pages/instructions.ts +++ b/website/src/scripts/pages/instructions.ts @@ -3,7 +3,7 @@ */ import { createChoices, getChoicesValues, type Choices } from '../choices'; import { FuzzySearch } from '../search'; -import { fetchData, debounce, escapeHtml, getGitHubUrl } from '../utils'; +import { fetchData, debounce, escapeHtml, getGitHubUrl, getVSCodeInstallUrl } from '../utils'; import { setupModal, openFileModal } from '../modal'; interface Instruction { @@ -72,7 +72,16 @@ function renderItems(items: Instruction[], query = ''): void {
- View on GitHub + + + VS Code + + + Insiders + + + GitHub +
`).join(''); diff --git a/website/src/scripts/pages/prompts.ts b/website/src/scripts/pages/prompts.ts index 2cef2b6d..7e6a0e4e 100644 --- a/website/src/scripts/pages/prompts.ts +++ b/website/src/scripts/pages/prompts.ts @@ -3,7 +3,7 @@ */ import { createChoices, getChoicesValues, type Choices } from '../choices'; import { FuzzySearch } from '../search'; -import { fetchData, debounce, escapeHtml, getGitHubUrl } from '../utils'; +import { fetchData, debounce, escapeHtml, getGitHubUrl, getVSCodeInstallUrl } from '../utils'; import { setupModal, openFileModal } from '../modal'; interface Prompt { @@ -67,7 +67,16 @@ function renderItems(items: Prompt[], query = ''): void {
- View on GitHub + + + VS Code + + + Insiders + + + GitHub +
`).join('');