@gperezmz/bb-plugin-thread-glance 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app.tsx CHANGED
@@ -1,6 +1,7 @@
1
- // Thread Glance frontend entry: registers the sidebar thread list.
1
+ // Thread Glance frontend entry: registers the sidebar thread list and the
2
+ // footer item that opens its settings.
2
3
  import { definePluginApp } from "@get-bb/plugin-sdk/app";
3
- import { ThreadList } from "@/features/thread-list";
4
+ import { SettingsDisclosure, ThreadList } from "@/features/thread-list";
4
5
 
5
6
  export default definePluginApp((app) => {
6
7
  app.slots.experimental_threadList({
@@ -9,4 +10,12 @@ export default definePluginApp((app) => {
9
10
  description: "Every thread's state, harness and child threads at a glance.",
10
11
  component: ThreadList,
11
12
  });
13
+ app.experimental_sidebarFooter.register({
14
+ kind: "disclosure",
15
+ id: "settings",
16
+ label: "Thread Glance",
17
+ // The icon package.json brands the plugin with; bb's gear beside it is bb's settings.
18
+ icon: "ListView",
19
+ component: SettingsDisclosure,
20
+ });
12
21
  });