HarborClient plugin that replaces the built-in Collections sidebar with a collections-only tree — folders, requests, and markdown documents. No Environments, Runs, History, Workspaces, Archive, or Trash sections.
This is the “Hello, World” demo for sidebar replacement via
contributes.sidebarPanels with replaces: "collections".
- Replaces the built-in Collections sidebar when loaded
- Reads the library with
hc.host.listLibraryTreeand refreshes ononLibraryChanged - Opens requests and documents through host selection / load APIs
- Host-mediated row context menus (
showEntityContextMenu) - UI built from
@harborclient/sdk/components(SidebarTree,SidebarFolderItem,SidebarRequestItem,SidebarDocumentItem, …)
pnpm install
pnpm buildLoad the project folder in HarborClient via Settings → Plugins → Load unpacked….
Requires a HarborClient build that supports collections sidebar replacement
(engines.harborclient >= 2.6.0) and @harborclient/sdk with the library host
APIs (listLibraryTree, selection bridge, entity context menus).
Do not commit file: paths in package.json. To test against a local
@harborclient/sdk checkout without changing tracked files, use one of:
pnpm linkfrom the published package directory afterpnpm packinpackages/sdk- A gitignored override file (for example
.pnpmfile.cjsor a local-onlypnpm-workspace.yamlentry) that only exists on your machine
pnpm devRebuilds dist/renderer.js and dist/main.js on change. Keep the sidebar
panel open for hot reload.
- Change
id,name, andcontributesinmanifest.json. - Extend the tree under
src/components/. - Add mutations or DnD using the host APIs documented in the SDK
sidebar-replacement-treeexample.