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

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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/app.tsx +3 -11
  3. package/dist/app.css +1 -1
  4. package/dist/app.js +31 -31
  5. package/dist/app.meta.json +1 -1
  6. package/dist/server.js +10 -10
  7. package/dist/server.js.map +3 -3
  8. package/dist/server.meta.json +1 -1
  9. package/features/thread-list/components/FoldRows.tsx +21 -30
  10. package/features/thread-list/components/GroupSection.tsx +7 -45
  11. package/features/thread-list/components/ListHeader.tsx +79 -0
  12. package/features/thread-list/components/ProviderBadge.tsx +0 -1
  13. package/features/thread-list/components/PullRequestProbes.tsx +27 -0
  14. package/features/thread-list/components/SettingsPanel.tsx +20 -34
  15. package/features/thread-list/components/ThreadDetails.tsx +3 -3
  16. package/features/thread-list/components/ThreadList.tsx +117 -83
  17. package/features/thread-list/components/ThreadRowView.tsx +70 -78
  18. package/features/thread-list/components/controller.ts +5 -10
  19. package/features/thread-list/components/glyphs.tsx +26 -13
  20. package/features/thread-list/data/useAutoExpand.ts +1 -1
  21. package/features/thread-list/data/useDefaultBranches.ts +35 -0
  22. package/features/thread-list/data/usePullRequestAnswers.ts +36 -0
  23. package/features/thread-list/data/useSystemFacts.ts +52 -0
  24. package/features/thread-list/icons.ts +1 -0
  25. package/features/thread-list/index.ts +0 -1
  26. package/features/thread-list/model/attention.ts +2 -66
  27. package/features/thread-list/model/branches.ts +27 -0
  28. package/features/thread-list/model/counters.ts +5 -5
  29. package/features/thread-list/model/details.ts +6 -6
  30. package/features/thread-list/model/expansion.ts +5 -5
  31. package/features/thread-list/model/groups.ts +2 -2
  32. package/features/thread-list/model/labels.ts +28 -17
  33. package/features/thread-list/model/menu.ts +1 -0
  34. package/features/thread-list/model/move.ts +1 -1
  35. package/features/thread-list/model/notes.ts +2 -28
  36. package/features/thread-list/model/settings.ts +1 -17
  37. package/features/thread-list/model/settled.ts +122 -0
  38. package/features/thread-list/model/share.ts +1 -7
  39. package/features/thread-list/model/sort.ts +5 -16
  40. package/features/thread-list/model/state.ts +19 -6
  41. package/features/thread-list/model/toggles.ts +35 -24
  42. package/features/thread-list/model/{families.ts → trees.ts} +40 -28
  43. package/features/thread-list/model/view.ts +200 -274
  44. package/features/thread-list/testing/fixtures.ts +41 -12
  45. package/package.json +1 -1
  46. package/server/cli.ts +1 -1
  47. package/server/import.ts +36 -6
  48. package/server/preference-store.ts +2 -1
  49. package/server.ts +1 -1
  50. package/shared/preferences.ts +38 -27
  51. package/skills/thread-glance/SKILL.md +11 -12
  52. package/features/thread-list/data/useAttentionHold.ts +0 -19
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Thread Glance
2
2
 
3
- A sidebar thread list for [bb](https://getbb.app). It keeps everything bb's own list does, and shows at a glance each thread's state, the harness that runs it, and what its child threads are doing, without the child threads taking over the list. A **Needs attention** section at the top of the list holds every family with a thread only you can move forward.
3
+ A sidebar thread list for [bb](https://getbb.app). It keeps everything bb's own list does, and shows at a glance each thread's state, the harness that runs it, and what its child threads are doing, without the child threads taking over the list. A thread tree with a thread only you can move forward stays in its group, drawn even when the group is collapsed, and the list header's need-you filter shows only those trees. Trees with nothing left to do settle into a fold at the end of their group.
4
4
 
5
5
  ```sh
6
6
  bb plugin install git:https://github.com/gperezmz/bb-plugins.git@main --plugin thread-glance
package/app.tsx CHANGED
@@ -1,7 +1,7 @@
1
- // Thread Glance frontend entry: registers the sidebar thread list and the
2
- // footer item that opens its settings.
1
+ // Thread Glance frontend entry: registers the sidebar thread list. Its
2
+ // settings open from the list header.
3
3
  import { definePluginApp } from "@get-bb/plugin-sdk/app";
4
- import { SettingsDisclosure, ThreadList } from "@/features/thread-list";
4
+ import { ThreadList } from "@/features/thread-list";
5
5
 
6
6
  export default definePluginApp((app) => {
7
7
  app.slots.experimental_threadList({
@@ -10,12 +10,4 @@ export default definePluginApp((app) => {
10
10
  description: "Every thread's state, harness and child threads at a glance.",
11
11
  component: ThreadList,
12
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
- });
21
13
  });