From 31def0ba76a5ec708712dbd15ead758a73ca9572 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Tue, 23 Jun 2026 14:14:40 +1000 Subject: [PATCH 1/3] Prototype extension details modal - Add detail popup modal for extension cards with full metadata and gallery - Implement image gallery with thumbnail strip and main image selection - Add modal styling and positioning in global.css - Connect card click handlers to open modal with extension data Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- website/src/pages/agents.astro | 6 +- website/src/pages/extensions.astro | 18 +- website/src/pages/hooks.astro | 6 +- website/src/pages/instructions.astro | 6 +- website/src/pages/plugins.astro | 6 +- website/src/pages/skills.astro | 6 +- website/src/pages/workflows.astro | 6 +- website/src/scripts/modal.ts | 115 +++++- website/src/scripts/pages/agents-render.ts | 102 +++--- website/src/scripts/pages/agents.ts | 83 ++++- website/src/scripts/pages/card-model.ts | 73 ++++ website/src/scripts/pages/card-render.ts | 54 +++ .../src/scripts/pages/extensions-render.ts | 133 +++---- website/src/scripts/pages/extensions.ts | 299 +++++++++++++--- website/src/scripts/pages/hooks-render.ts | 104 +++--- website/src/scripts/pages/hooks.ts | 281 +++++++++------ .../src/scripts/pages/instructions-render.ts | 53 ++- website/src/scripts/pages/instructions.ts | 129 +++++-- website/src/scripts/pages/plugins-render.ts | 46 ++- website/src/scripts/pages/plugins.ts | 173 +++++++-- website/src/scripts/pages/skills-render.ts | 100 +++--- website/src/scripts/pages/skills.ts | 247 ++++++++----- website/src/scripts/pages/workflows-render.ts | 45 ++- website/src/scripts/pages/workflows.ts | 186 +++++++--- website/src/styles/global.css | 338 ++++++++++++++++-- 25 files changed, 1886 insertions(+), 729 deletions(-) create mode 100644 website/src/scripts/pages/card-model.ts create mode 100644 website/src/scripts/pages/card-render.ts diff --git a/website/src/pages/agents.astro b/website/src/pages/agents.astro index 128fc3ddb..c4b315de3 100644 --- a/website/src/pages/agents.astro +++ b/website/src/pages/agents.astro @@ -1,18 +1,18 @@ --- import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; import agentsData from '../../public/data/agents.json'; -import Modal from '../components/Modal.astro'; import ContributeCTA from '../components/ContributeCTA.astro'; import EmbeddedPageData from '../components/EmbeddedPageData.astro'; import PageHeader from '../components/PageHeader.astro'; import BackToTop from '../components/BackToTop.astro'; +import Modal from '../components/Modal.astro'; import { renderAgentsHtml, sortAgents } from '../scripts/pages/agents-render'; const initialItems = sortAgents(agentsData.items, 'title'); --- -
+
@@ -42,8 +42,8 @@ const initialItems = sortAgents(agentsData.items, 'title');
- + - diff --git a/website/src/pages/hooks.astro b/website/src/pages/hooks.astro index 73733433d..e74e5a26b 100644 --- a/website/src/pages/hooks.astro +++ b/website/src/pages/hooks.astro @@ -1,10 +1,10 @@ --- import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; -import Modal from '../components/Modal.astro'; import ContributeCTA from '../components/ContributeCTA.astro'; import PageHeader from '../components/PageHeader.astro'; import EmbeddedPageData from '../components/EmbeddedPageData.astro'; import BackToTop from '../components/BackToTop.astro'; +import Modal from '../components/Modal.astro'; import hooksData from '../../public/data/hooks.json'; import { renderHooksHtml, sortHooks } from '../scripts/pages/hooks-render'; @@ -12,7 +12,7 @@ const initialItems = sortHooks(hooksData.items, 'title'); --- -
+
@@ -47,8 +47,8 @@ const initialItems = sortHooks(hooksData.items, 'title');
- +