Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
Room resources: clicking a package opens its page in Resources
Simon Flack6a39d4e685d8
diff --git a/console/apps/switch-console-desktop/src/renderer/features/switch-rooms/room-resources-panel.tsx b/console/apps/switch-console-desktop/src/renderer/features/switch-rooms/room-resources-panel.tsxindex fb4197e3c..51c906aaa 100644--- a/console/apps/switch-console-desktop/src/renderer/features/switch-rooms/room-resources-panel.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/switch-rooms/room-resources-panel.tsx@@ -205,7 +205,15 @@ const ResourceSection = observer(function ResourceSection({? () => void openExternalUrl(resource.urls[0]!, 'Could not open the link'): kind === 'documents'? () => setReading(resource)- : null+ : // A package has nothing to read here: its page shows what it holds.+ serverId !== null+ ? () =>+ navigate('libraryItem', {+ serverId,+ kind: 'packages',+ itemId: resource.id,+ })+ : null}removeLabel={canUnlink ? `Detach ${resource.name}` : null}busy={busy === resource.id}diff --git a/console/apps/switch-console-desktop/src/renderer/tests/browser/room-resources-panel.test.tsx b/console/apps/switch-console-desktop/src/renderer/tests/browser/room-resources-panel.test.tsxindex 5534eed1b..4d3a4ea2f 100644--- a/console/apps/switch-console-desktop/src/renderer/tests/browser/room-resources-panel.test.tsx+++ b/console/apps/switch-console-desktop/src/renderer/tests/browser/room-resources-panel.test.tsx@@ -275,4 +275,18 @@ describe('the Resources tab', () => {[...dialog.querySelectorAll('button')].find((b) => b.textContent === 'Open in Resources')).toBeUndefined();});++ it('opens a package on its page in Resources when clicked', async () => {+ const el = await renderPanel();+ await act(async () =>+ [...el.querySelectorAll('[aria-label="Packages"] button')]+ .find((b) => b.textContent?.includes('Onboarding'))!+ .click()+ );+ expect(navigate).toHaveBeenCalledWith('libraryItem', {+ serverId: 'srv-1',+ kind: 'packages',+ itemId: 'pkg-1',+ });+ });});