The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(desktop): browse catalogs as cards with a saved list option
brooklyn!4e9d3c713a3e
diff --git a/apps/desktop/src/app/skills/catalog-browser.test.tsx b/apps/desktop/src/app/skills/catalog-browser.test.tsxnew file mode 100644index 00000000000..674d9c6501e--- /dev/null+++ b/apps/desktop/src/app/skills/catalog-browser.test.tsx@@ -0,0 +1,144 @@+import { QueryClientProvider } from '@tanstack/react-query'+import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react'+import { useState } from 'react'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++import { queryClient } from '@/lib/query-client'++import { PageSearchShell } from '../page-search-shell'++import { CatalogBrowser } from './catalog-browser'+import { type CatalogKind, parseCatalog } from './catalog-data'+import { $catalogCardView } from './store'++beforeEach(() => {+ $catalogCardView.set(true)+})++afterEach(() => {+ cleanup()+ queryClient.clear()+ $catalogCardView.set(true)+})++function setup(kind: CatalogKind) {+ const entries = parseCatalog(kind, ['alpha', 'beta'].map(name => ({+ name,+ identifier: `official/${name}`,+ installIdentifier: `official/${name}`,+ source: 'official',+ tier: 'official',+ category: 'research',+ description: `${name} research workflow`,+ repo: `https://github.com/example/${name}`,+ sourceUrl: `https://github.com/example/${name}`,+ docsUrl: `https://example.com/${name}`+ })))++ queryClient.setQueryData(['public-catalog', kind], entries)+ const onInstall = vi.fn()++ function Harness() {+ const [query, setQuery] = useState('')++ return (+ <QueryClientProvider client={queryClient}>+ <PageSearchShell onSearchChange={setQuery} searchPlaceholder="Search catalog" searchValue={query}>+ <CatalogBrowser+ isInstalled={entry => entry.name === 'beta'}+ kind={kind}+ onInstall={onInstall}+ onQueryChange={setQuery}+ query={query}+ />+ </PageSearchShell>+ </QueryClientProvider>+ )+ }++ return { entries, onInstall, ...render(<Harness />) }+}++describe.each(['skills', 'plugins'] as const)('%s catalog layouts', kind => {+ it('defaults to cards with icon-only layout controls and whole-card hover', () => {+ const { container } = setup(kind)+ const cards = screen.getAllByRole('article')+ const cardView = screen.getByRole('button', { name: 'Card view', pressed: true })++ expect(cards).toHaveLength(2)+ expect(cardView.textContent).toBe('')+ expect(cardView.querySelector('.codicon-extensions')).not.toBeNull()+ expect(screen.getByRole('button', { name: 'List view' }).querySelector('.codicon-list-unordered')).not.toBeNull()+ expect(cards[0].classList.contains('row-hover')).toBe(true)+ expect(within(cards[0]).getByRole('button', { name: 'alpha' }).classList.contains('row-hover')).toBe(false)+ expect(container.querySelector('[data-catalog-list]')).toBeNull()+ expect(within(cards[1]).getByRole<HTMLButtonElement>('button', { name: 'Installed' }).disabled).toBe(true)+ })++ it('offers installation directly on a card without opening its details', () => {+ const { entries, onInstall } = setup(kind)+ const card = screen.getAllByRole('article')[0]++ fireEvent.click(within(card).getByRole('button', { name: 'Install' }))++ expect(onInstall).toHaveBeenCalledExactlyOnceWith(entries[0])+ expect(screen.queryByRole('dialog')).toBeNull()+ })++ it('opens the shared detail dialog with source links and the same install target', async () => {+ const { entries, onInstall } = setup(kind)+ fireEvent.click(screen.getByRole('button', { name: 'alpha' }))+ const dialog = screen.getByRole('dialog', { name: 'alpha' })++ expect(within(dialog).getByRole('heading', { name: 'alpha' })).toBeTruthy()+ expect(within(dialog).getByRole('link', { name: 'Repository' }).getAttribute('href')).toBe(entries[0].sourceUrl)+ expect(within(dialog).getByRole('link', { name: 'Documentation' }).getAttribute('href')).toBe(entries[0].docsUrl)+ fireEvent.click(within(dialog).getByRole('button', { name: 'Install' }))+ expect(onInstall).toHaveBeenCalledExactlyOnceWith(entries[0])++ if (kind === 'plugins') {+ // Release the inspector before the existing plugin installation dialog opens.+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull())+ } else {+ fireEvent.click(within(dialog).getByRole('button', { name: 'Close' }))+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull())+ }+ })++ it('preserves the parent search and filter when switching to list and back', async () => {+ const { container } = setup(kind)+ const search = screen.getByRole<HTMLInputElement>('textbox', { name: 'Search catalog' })+ fireEvent.change(search, { target: { value: 'alpha' } })+ await waitFor(() => expect(screen.getAllByRole('article')).toHaveLength(1))+ fireEvent.click(screen.getByRole('combobox', { name: 'Category' }))+ fireEvent.click(screen.getByRole('option', { name: 'Research' }))+ fireEvent.click(screen.getByRole('button', { name: 'List view' }))++ expect(container.querySelector(`[data-catalog-list="${kind}"]`)).not.toBeNull()+ expect(screen.queryByRole('article')).toBeNull()+ expect(screen.getByRole('heading', { name: 'alpha' })).toBeTruthy()+ expect(screen.getByRole('combobox', { name: 'Category' }).textContent).toContain('Research')+ expect(screen.getByRole('textbox', { name: 'Search catalog' })).toBe(search)+ expect(search.value).toBe('alpha')+ expect(screen.getByRole('status').textContent).toBe('1 result')++ fireEvent.click(screen.getByRole('button', { name: 'Card view' }))+ expect(screen.getAllByRole('article')).toHaveLength(1)+ expect(screen.getByRole('textbox', { name: 'Search catalog' })).toBe(search)+ expect(screen.getByRole('combobox', { name: 'Category' }).textContent).toContain('Research')+ expect(screen.queryByRole('dialog')).toBeNull()+ })+})++it('shares the saved layout choice when moving between Skills and Plugins', () => {+ setup('skills')+ fireEvent.click(screen.getByRole('button', { name: 'List view' }))+ expect($catalogCardView.get()).toBe(false)+ cleanup()++ const { container } = setup('plugins')+ expect(screen.getByRole('button', { name: 'List view', pressed: true })).toBeTruthy()+ expect(container.querySelector('[data-catalog-list="plugins"]')).not.toBeNull()+ fireEvent.click(screen.getByRole('button', { name: 'Card view' }))+ expect($catalogCardView.get()).toBe(true)+})diff --git a/apps/desktop/src/app/skills/catalog-browser.tsx b/apps/desktop/src/app/skills/catalog-browser.tsxindex a1220b70339..d67b7da1199 100644--- a/apps/desktop/src/app/skills/catalog-browser.tsx+++ b/apps/desktop/src/app/skills/catalog-browser.tsx@@ -1,12 +1,15 @@-import { memo, type ReactNode, useDeferredValue, useEffect, useMemo, useState } from 'react'+import { useStore } from '@nanostores/react'+import { memo, type ReactNode, useDeferredValue, useEffect, useMemo, useRef, useState } from 'react'import { PageLoader } from '@/components/page-loader'import { ActionStatus } from '@/components/ui/action-status'import { Badge } from '@/components/ui/badge'import { Button } from '@/components/ui/button'-import { Codicon } from '@/components/ui/codicon'+import { Codicon, codiconIcon } from '@/components/ui/codicon'+import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog'import { ErrorState } from '@/components/ui/error-state'import { RowButton } from '@/components/ui/row-button'+import { SegmentedControl } from '@/components/ui/segmented-control'import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'import { useI18n } from '@/i18n'import { ExternalLink } from '@/lib/external-link'@@ -18,6 +21,7 @@ import { prettyName } from '../settings/helpers'import type { CapabilityView } from './capability-tabs'import { type CatalogEntry, type CatalogKind, useCatalog } from './catalog-data'+import { $catalogCardView } from './store'interface CatalogBrowserProps {kind: CatalogKind@@ -32,6 +36,8 @@ interface CatalogBrowserProps {}const PAGE_SIZE = 60+const ListViewIcon = codiconIcon('list-unordered')+const CardViewIcon = codiconIcon('extensions')export const CatalogBrowser = memo(function CatalogBrowser({kind,@@ -46,18 +52,22 @@ export const CatalogBrowser = memo(function CatalogBrowser({}: CatalogBrowserProps) {const { t } = useI18n()const c = t.catalog+ const cardView = useStore($catalogCardView)const { data, isPending, error, refetch } = useCatalog(kind, view === 'browse')const deferredQuery = useDeferredValue(query.trim().toLowerCase())const [source, setSource] = useState('all')const [category, setCategory] = useState('all')const [selectedId, setSelectedId] = useState<string | null>(null)const [detailOpen, setDetailOpen] = useState(false)+ const selectedCardRef = useRef<HTMLButtonElement | null>(null)const [limit, setLimit] = useState(PAGE_SIZE)const entries = useMemo(() => {return view === 'installed' ? (installedEntries ?? []) : (data ?? [])}, [data, installedEntries, view])+const sources = useMemo(() => [...new Set(entries.map(entry => entry.source))], [entries])+const categories = useMemo(() => {const values = new Map<string, string>()@@ -75,6 +85,7 @@ export const CatalogBrowser = memo(function CatalogBrowser({(category === 'all' || entry.category === category) &&(!deferredQuery || entry.search.includes(deferredQuery))), [entries, source, category, deferredQuery])+const selected = filtered.find(entry => entry.id === selectedId) ?? filtered[0]const installedDetail = selected ? renderInstalledDetail?.(selected) : null@@ -83,6 +94,7 @@ export const CatalogBrowser = memo(function CatalogBrowser({setSelectedId(null)setDetailOpen(false)}+useEffect(() => {setLimit(PAGE_SIZE)setSelectedId(null)@@ -101,7 +113,13 @@ export const CatalogBrowser = memo(function CatalogBrowser({const installing = isInstalling?.(entry) ?? falsereturn (- <Button disabled={installed || installing || (kind === 'skills' && !entry.installIdentifier)} onClick={() => onInstall(entry)} size="sm" variant={installed ? 'secondary' : 'default'}>+ <Button disabled={installed || installing || (kind === 'skills' && !entry.installIdentifier)} onClick={() => {+ if (kind === 'plugins') {+ setDetailOpen(false)+ }++ onInstall(entry)+ }} size="sm" variant={installed ? 'secondary' : 'default'}><ActionStatusbusy={t.skills.hub.installing}done={c.installed}@@ -123,6 +141,43 @@ export const CatalogBrowser = memo(function CatalogBrowser({[c.pinned, selected.sha ? <code title={selected.sha}>{selected.sha.slice(0, 8)}</code> : '']] as [string, ReactNode][] : []+ const DetailTitle = view === 'browse' && cardView ? DialogTitle : 'h3'++ const details = selected ? (+ <>+ <header className="space-y-3">+ <div className="flex items-start gap-3">+ <Codicon className="mt-1 shrink-0 text-(--ui-text-tertiary)" name={kind === 'plugins' ? 'extensions' : 'book'} size="1.5rem" />+ <div className="min-w-0">+ <DetailTitle className="break-words text-lg font-semibold tracking-tight">{selected.name}</DetailTitle>+ <p className="mt-1 text-xs text-(--ui-text-tertiary)">{selected.author || prettyName(selected.source)}</p>+ </div>+ </div>+ <div className="flex flex-wrap items-center gap-2">+ {installButton(selected)}+ <Badge variant="muted">{prettyName(selected.source)}</Badge>+ {selected.stars !== null && <span className="text-xs text-(--ui-text-tertiary)">☆ {selected.stars.toLocaleString()}</span>}+ </div>+ </header>+ <section className="space-y-2">+ <h4 className="text-xs font-medium">{c.about}</h4>+ <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{selected.description}</p>+ {selected.overview && selected.overview !== selected.description && <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-tertiary)">{selected.overview}</p>}+ </section>+ <dl className="space-y-2 text-[length:var(--conversation-caption-font-size)]">+ {metadata.filter(([, value]) => Boolean(value)).map(([label, value]) => <div className="grid grid-cols-[6rem_minmax(0,1fr)] gap-3" key={label}><dt className="text-(--ui-text-tertiary)">{label}</dt><dd className="m-0 break-words">{value}</dd></div>)}+ </dl>+ {[[c.tools, selected.tools], [c.hooks, selected.hooks], [c.requires, selected.requirements]].map(([label, values]) => (values as string[]).length > 0 && (+ <section className="space-y-2" key={label as string}><h4 className="text-xs font-medium">{label as string}</h4><div className="flex flex-wrap gap-1">{(values as string[]).map(value => <ToolChip key={value}>{value}</ToolChip>)}</div></section>+ ))}+ <div className="flex flex-wrap gap-3 text-xs">+ {selected.sourceUrl && <ExternalLink href={selected.sourceUrl}>{c.repository}</ExternalLink>}+ {selected.docsUrl && <ExternalLink href={selected.docsUrl}>{c.documentation}</ExternalLink>}+ </div>+ <p className="text-[0.65rem] leading-relaxed text-(--ui-text-quaternary)">{c.installHint}</p>+ </>+ ) : null+return (<div className="flex h-full min-h-0 min-w-0 flex-col" data-catalog={kind}>{view === 'browse' && <div className="flex shrink-0 flex-wrap items-center gap-x-4 gap-y-2 px-3 py-2">@@ -146,6 +201,16 @@ export const CatalogBrowser = memo(function CatalogBrowser({</Select></div></div>+ <SegmentedControl+ className="ml-auto shrink-0"+ iconOnly+ onChange={layout => {+ setDetailOpen(false)+ $catalogCardView.set(layout === 'cards')+ }}+ options={[{ id: 'list', label: c.listView, icon: ListViewIcon }, { id: 'cards', label: c.cardView, icon: CardViewIcon }]}+ value={cardView ? 'cards' : 'list'}+ /></div>}<div className="min-h-0 flex-1">{isPending && view === 'browse' && !entries.length ? <PageLoader label={t.skills.loading} /> : error && !entries.length ? (@@ -156,8 +221,59 @@ export const CatalogBrowser = memo(function CatalogBrowser({</div>) : !selected ? (<PanelEmpty action={<Button onClick={clearFilters} size="sm" variant="secondary">{c.clearFilters}</Button>} description={c.tryAnother} icon="search" title={c.noResults} />+ ) : view === 'browse' && cardView ? (+ <>+ <div className="flex h-full min-h-0 flex-col px-3 pb-3" data-catalog-cards={kind}>+ <ListStrip left={<ListStripLabel>{c.results(filtered.length)}</ListStripLabel>} />+ <div className="min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]" key={`${source}:${category}:${deferredQuery}`}>+ <div className="grid grid-cols-[repeat(auto-fill,minmax(min(100%,17rem),1fr))] gap-3 py-2">+ {filtered.slice(0, limit).map(entry => (+ <article className="row-hover flex min-w-0 flex-col overflow-hidden rounded-lg border border-(--ui-stroke-tertiary) bg-(--ui-chat-bubble-background)" data-catalog-card key={entry.id}>+ <RowButton+ aria-haspopup="dialog"+ aria-label={entry.name}+ className="flex min-w-0 flex-1 cursor-pointer flex-col gap-3 p-4 text-left focus-visible:outline-2 focus-visible:outline-primary focus-visible:-outline-offset-2"+ onClick={event => {+ selectedCardRef.current = event.currentTarget+ setSelectedId(entry.id)+ setDetailOpen(true)+ }}+ >+ <span className="flex w-full items-center gap-2 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">+ <Codicon name={kind === 'plugins' ? 'extensions' : 'book'} size="1.25rem" />+ <span className="min-w-0 flex-1 truncate">{prettyName(entry.source)}</span>+ {entry.stars !== null && <span className="shrink-0">☆ {entry.stars.toLocaleString()}</span>}+ </span>+ <span className="line-clamp-2 break-words text-[length:var(--conversation-text-font-size)] font-semibold leading-snug">{entry.name}</span>+ <span className="line-clamp-3 text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{entry.description}</span>+ <span className="mt-auto w-full truncate pt-1 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">{entry.author || prettyName(entry.source)}</span>+ </RowButton>+ <div className="flex flex-wrap items-center justify-between gap-2 px-4 pb-4">+ <Badge variant="muted">{prettyName(entry.categoryLabel)}</Badge>+ {installButton(entry)}+ </div>+ </article>+ ))}+ </div>+ {filtered.length > limit && <Button onClick={() => setLimit(value => value + PAGE_SIZE)} size="sm" variant="text">{c.more}</Button>}+ </div>+ </div>+ <Dialog onOpenChange={setDetailOpen} open={detailOpen}>+ <DialogContent+ aria-describedby={undefined}+ bodyClassName="gap-5"+ className="max-w-2xl"+ onCloseAutoFocus={event => {+ event.preventDefault()+ selectedCardRef.current?.focus()+ }}+ >+ {details}+ </DialogContent>+ </Dialog>+ </>) : (- <div className={cn('h-full min-h-0', detailOpen ? '[&_aside]:max-sm:hidden' : '[&_main]:max-sm:hidden')}>+ <div className={cn('h-full min-h-0', detailOpen ? '[&_aside]:max-sm:hidden' : '[&_main]:max-sm:hidden')} data-catalog-list={kind}><MasterDetail resizeId="capabilities-split" split="wide"><ListColumn header={<ListStrip left={<ListStripLabel>{c.results(filtered.length)}</ListStripLabel>} />} key={`${source}:${category}:${deferredQuery}`}>{filtered.slice(0, limit).map(entry => (@@ -185,38 +301,7 @@ export const CatalogBrowser = memo(function CatalogBrowser({</ListColumn><DetailColumn footer={c.snapshotHint}><div className="sm:hidden"><Button onClick={() => setDetailOpen(false)} size="sm" variant="text"><Codicon name="arrow-left" />{c.back}</Button></div>- {installedDetail || <>- <header className="space-y-3">- <div className="flex items-start gap-3">- <Codicon className="mt-1 shrink-0 text-(--ui-text-tertiary)" name={kind === 'plugins' ? 'extensions' : 'book'} size="1.5rem" />- <div className="min-w-0">- <h3 className="break-words text-lg font-semibold tracking-tight">{selected.name}</h3>- <p className="mt-1 text-xs text-(--ui-text-tertiary)">{selected.author || prettyName(selected.source)}</p>- </div>- </div>- <div className="flex flex-wrap items-center gap-2">- {installButton(selected)}- <Badge variant="muted">{prettyName(selected.source)}</Badge>- {selected.stars !== null && <span className="text-xs text-(--ui-text-tertiary)">☆ {selected.stars.toLocaleString()}</span>}- </div>- </header>- <section className="space-y-2">- <h4 className="text-xs font-medium">{c.about}</h4>- <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{selected.description}</p>- {selected.overview && selected.overview !== selected.description && <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-tertiary)">{selected.overview}</p>}- </section>- <dl className="space-y-2 text-[length:var(--conversation-caption-font-size)]">- {metadata.filter(([, value]) => Boolean(value)).map(([label, value]) => <div className="grid grid-cols-[6rem_minmax(0,1fr)] gap-3" key={label}><dt className="text-(--ui-text-tertiary)">{label}</dt><dd className="m-0 break-words">{value}</dd></div>)}- </dl>- {[[c.tools, selected.tools], [c.hooks, selected.hooks], [c.requires, selected.requirements]].map(([label, values]) => (values as string[]).length > 0 && (- <section className="space-y-2" key={label as string}><h4 className="text-xs font-medium">{label as string}</h4><div className="flex flex-wrap gap-1">{(values as string[]).map(value => <ToolChip key={value}>{value}</ToolChip>)}</div></section>- ))}- <div className="flex flex-wrap gap-3 text-xs">- {selected.sourceUrl && <ExternalLink href={selected.sourceUrl}>{c.repository}</ExternalLink>}- {selected.docsUrl && <ExternalLink href={selected.docsUrl}>{c.documentation}</ExternalLink>}- </div>- <p className="text-[0.65rem] leading-relaxed text-(--ui-text-quaternary)">{c.installHint}</p>- </>}+ {installedDetail || details}</DetailColumn></MasterDetail></div>diff --git a/apps/desktop/src/app/skills/index.test.tsx b/apps/desktop/src/app/skills/index.test.tsxindex e1e9b609232..a99f14dd13a 100644--- a/apps/desktop/src/app/skills/index.test.tsx+++ b/apps/desktop/src/app/skills/index.test.tsx@@ -11,6 +11,7 @@ import type * as HubActions from '@/store/hub-actions'import { parseCatalog } from './catalog-data'import { SkillCatalog } from './skill-catalog'+import { $catalogCardView } from './store'const getSkills = vi.fn()const getToolsets = vi.fn()@@ -98,6 +99,8 @@ async function renderSkills() {}beforeEach(() => {+ // Scope/install cases exercise the retained list layout; cards have dedicated coverage.+ $catalogCardView.set(false)getSkills.mockResolvedValue([])getToolsets.mockResolvedValue([toolset()])setToolsetEnabled.mockResolvedValue({ ok: true, name: 'web', enabled: false })diff --git a/apps/desktop/src/app/skills/plugins-tab.test.tsx b/apps/desktop/src/app/skills/plugins-tab.test.tsxindex 861b119457e..739f5aa225d 100644--- a/apps/desktop/src/app/skills/plugins-tab.test.tsx+++ b/apps/desktop/src/app/skills/plugins-tab.test.tsx@@ -13,6 +13,7 @@ import { PageSearchShell } from '../page-search-shell'import { CapabilityTabs } from './capability-tabs'import { parseCatalog } from './catalog-data'import { PluginActions, PluginsTab } from './plugins-tab'+import { $catalogCardView } from './store'const requestGateway = vi.fn(async () => ({ plugins: $agentPlugins.get() }))@@ -77,6 +78,7 @@ describe('PluginsTab', () => {$pluginRecords.set({})$agentPlugins.set([])$agentPluginsStatus.set('ready')+ $catalogCardView.set(false)closePluginInstallRequest()requestGateway.mockReset()requestGateway.mockImplementation(async () => ({ plugins: $agentPlugins.get() }))@@ -289,6 +291,7 @@ describe('PluginsTab catalog UX', () => {beforeEach(() => {$agentPlugins.set([])$agentPluginsStatus.set('ready')+ $catalogCardView.set(false)closePluginInstallRequest()requestGateway.mockReset()requestGateway.mockImplementation(async () => ({ plugins: $agentPlugins.get() }))diff --git a/apps/desktop/src/app/skills/store.ts b/apps/desktop/src/app/skills/store.tsindex 2105a5d45b7..7be2e7baa39 100644--- a/apps/desktop/src/app/skills/store.ts+++ b/apps/desktop/src/app/skills/store.ts@@ -4,3 +4,6 @@ import { Codecs, persistentAtom } from '@/lib/persisted'// remembers most/least-used across navigations and restarts.export const $skillsSortDesc = persistentAtom('hermes.desktop.capabilities.skillsSortDesc', true, Codecs.bool)export const $toolsetsSortDesc = persistentAtom('hermes.desktop.capabilities.toolsetsSortDesc', true, Codecs.bool)++// One browsing layout across Skills and Plugins; Installed keeps its own list.+export const $catalogCardView = persistentAtom('hermes.desktop.capabilities.catalogCardView', true, Codecs.bool)diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 3b87cebe1c9..a72fa91e8f8 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -2,6 +2,8 @@ import { defineLocale } from './define-locale'export const ar = defineLocale({catalog: {+ listView: 'عرض القائمة',+ cardView: 'عرض البطاقات',installTitle: (name: string) => `تثبيت «${name}»؟`,installDescription: 'ستتوفر هذه المهارة في الجلسات الجديدة. ثبّت من المصادر التي تثق بها فقط.',installTo: 'التثبيت في',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 3355a86daa5..0936e4a16a8 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -4,6 +4,8 @@ import type { Translations } from './types'export const en: Translations = {catalog: {+ listView: 'List view',+ cardView: 'Card view',installTitle: (name: string) => `Install “${name}”?`,installDescription: 'This skill will be available in new sessions. Only install sources you trust.',installTo: 'Install to',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 2d37af2dd9b..2c3a325b80d 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -4,6 +4,8 @@ import { defineLocale } from './define-locale'export const ja = defineLocale({catalog: {+ listView: 'リスト表示',+ cardView: 'カード表示',installTitle: (name: string) => `「${name}」をインストールしますか?`,installDescription: 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',installTo: 'インストール先',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex d98d23ffe7f..ae2b42447cd 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -25,6 +25,8 @@ const RU_NOUN = (count: number | string, one: string, few: string, many: string)export const ru = defineLocale({catalog: {+ listView: 'Список',+ cardView: 'Карточки',installTitle: (name: string) => `Установить «${name}»?`,installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',installTo: 'Установить в',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 7117efe2941..be00e213166 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -60,6 +60,8 @@ interface AuxTaskCopy {export interface Translations {catalog: {+ listView: string+ cardView: stringinstallTitle: (name: string) => stringinstallDescription: stringinstallTo: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 4397e5bc4ab..663c44ff0bf 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -4,6 +4,8 @@ import { defineLocale } from './define-locale'export const zhHant = defineLocale({catalog: {+ listView: '清單檢視',+ cardView: '卡片檢視',installTitle: (name: string) => `安裝「${name}」?`,installDescription: '此技能將於新的工作階段中可用。請僅安裝可信來源的內容。',installTo: '安裝至',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 76239a2b336..ce03838a678 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -4,6 +4,8 @@ import { defineLocale } from './define-locale'export const zh = defineLocale({catalog: {+ listView: '列表视图',+ cardView: '卡片视图',installTitle: (name: string) => `安装“${name}”?`,installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',installTo: '安装到',diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex d8fb89beeb2..2da396f7b2c 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -214,7 +214,7 @@ When you have two or more [profiles](./profiles.md), the config-backed settingsThe app also surfaces the broader Hermes management surface so you don't have to drop to a terminal:-- **Skills** — open **Capabilities → Skills** to manage [skills](./features/skills.md). **Installed** shows the selected profile's actual skills and enable/disable state. **Browse** searches the same full published catalog as the public Skills Hub, with native list and detail views.+- **Skills** — open **Capabilities → Skills** to manage [skills](./features/skills.md). **Installed** shows the selected profile's actual skills and enable/disable state. **Browse** searches the same full published catalog as the public Skills Hub, with cards by default and an optional list/detail view.- **Plugins** — **Capabilities → Plugins** uses the same **Installed / Browse** layout. Installed combines actual app-level desktop plugins with agent plugins from the selected profile; Browse shows the public [Plugin Catalog](./features/plugin-catalog.md). Search stays at the top, and the tab switch and actions share one row on both pages.- **Memory graph (Star Map)** — type `/journey` (aliases `/learning`, `/memory-graph`) in chat to open an interactive constellation of learned skills and memories over time, with a playback scrubber. Nodes can be edited or deleted right from the panel (skills are archived, memories removed). See [Learning Journey](./features/memory.md#learning-journey-journey).- **Cron** — view and manage [scheduled jobs](../reference/cli-commands.md#hermes-cron).@@ -222,6 +222,10 @@ The app also surfaces the broader Hermes management surface so you don't have to- **Messaging** — set up gateway channels. Telegram has a **Quick setup** card: click **Create with QR**, scan the code (or open the link) in Telegram, and Hermes creates the bot, detects your user ID for the allowlist, saves the credentials, and restarts the gateway for you. Any credential save, clear, or enable toggle keeps a **Restart now** banner on the page until the gateway has actually restarted; if a restart fails, the banner stays so you can retry or restart manually.- **Agents** and **Command Center** — orchestration surfaces for multi-agent work.+Use the list and card icons at the right of the Browse filters to change layouts.+The choice is remembered across Skills and Plugins. Search and filters stay in+place; click a card to open its details or use its Install button directly.+#### Where Browse gets its dataThese are native Desktop views, **not embedded website pages**. Desktop anddiff --git a/website/docs/user-guide/features/plugin-catalog.md b/website/docs/user-guide/features/plugin-catalog.mdindex a6187bb188a..4322886bce2 100644--- a/website/docs/user-guide/features/plugin-catalog.md+++ b/website/docs/user-guide/features/plugin-catalog.md@@ -24,6 +24,9 @@ view. It is not an embedded website. **Installed** is a separate tab backedby the app's desktop-plugin registry and the selected profile's agent-pluginstate, rather than catalog metadata. Skills uses the same **Installed / Browse**layout; search stays at the top and the tab switch and actions share one row.+Browse defaults to cards. The list and card icons beside the filters switch+layouts, preserving search and filters and remembering the choice across both+catalogs.The catalog complements — it does not replace — the existing[plugin system](plugins.md). Anything you can install from the catalog is adiff --git a/website/docs/user-guide/features/plugins.md b/website/docs/user-guide/features/plugins.mdindex 72ed6f0661e..f78eb980486 100644--- a/website/docs/user-guide/features/plugins.md+++ b/website/docs/user-guide/features/plugins.md@@ -384,7 +384,10 @@ registry and the selected profile's actual agent-plugin state, combining bothhalves in one row where appropriate. It is not a list of catalog entriesassumed to be installed. **Browse** is a native catalog view, not an embeddedwebsite; it uses the same **Installed / Browse** tabs as Skills, with search-at the top and the tab switch and actions on one row.+at the top and the tab switch and actions on one row. Browse defaults to cards,+with list and card icons at the right of the filters. The layout choice is shared+with Skills and remembered. Click a card to read its details; Install opens the+existing review-then-install dialog.Desktop and the public [Plugin Catalog](/plugins) consume the same CDNsnapshot, [`/docs/api/plugins.json`](https://hermes-agent.nousresearch.com/docs/api/plugins.json).diff --git a/website/docs/user-guide/features/skills.md b/website/docs/user-guide/features/skills.mdindex 59253a7178e..ec07b8ec24d 100644--- a/website/docs/user-guide/features/skills.md+++ b/website/docs/user-guide/features/skills.md@@ -23,7 +23,10 @@ Open **Capabilities → Skills** and switch between **Installed** and **Browse**Search stays at the top; the tab switch and actions share one row.**Installed** reads the selected profile's actual skills and enabled state;it is not inferred from the public catalog. **Browse** is a native catalog UI,-not an embedded website or a second, smaller catalog.+not an embedded website or a second, smaller catalog. Cards are the default;+the list and card icons at the right of the filters switch layouts without+clearing search or filters. The choice is remembered across Skills and Plugins.+Click a card for details or use its Install button directly.Desktop and the public [Skills Hub](/skills) read the same published CDNsnapshot: [`/docs/api/skills.json`](https://hermes-agent.nousresearch.com/docs/api/skills.json).