pi-odd-worktree 3.9.1 → 3.9.2
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/lib/modules.js +5 -0
- package/package.json +1 -1
- package/tools/modules-wiring.test.js +5 -0
package/lib/modules.js
CHANGED
|
@@ -90,6 +90,11 @@ function moduleRowsProvider({ api, notify }) {
|
|
|
90
90
|
return {
|
|
91
91
|
id: PROVIDER_ID,
|
|
92
92
|
category: CATEGORY,
|
|
93
|
+
// The `Tools` page sits right after the host's `Sections` page and before `Keymaps`. The bridge
|
|
94
|
+
// derives its page list from the order of the rows once, while it builds the menu, so this has to
|
|
95
|
+
// be the provider's request: a page appended without it lands last, after `Profiles`. A bridge
|
|
96
|
+
// that predates `categoryPlacement` ignores the field and the page opens at the end again.
|
|
97
|
+
categoryPlacement: { after: 'Sections' },
|
|
93
98
|
rows() {
|
|
94
99
|
const rows = [];
|
|
95
100
|
for (const { key, setting } of MODULES) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-odd-worktree",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"description": "Pi package for odd-worktree: the Git worktree tools a Pi session uses (create and list the checkouts the agent works in), the /warp worktree panel, the /odd ODD viewer, and the /issues GitHub issue reader. Needs only Pi and git: no companion app, no extra service.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -72,6 +72,11 @@ describe('the Tools page', () => {
|
|
|
72
72
|
tools[0].rows({}).map((row) => `${row.choice.setting} ${row.choice.value}`),
|
|
73
73
|
['Codegraph+ Off', 'Codegraph+ On', 'Worktrees+ Off', 'Worktrees+ On'],
|
|
74
74
|
);
|
|
75
|
+
assert.deepEqual(
|
|
76
|
+
tools[0].categoryPlacement,
|
|
77
|
+
{ after: 'Sections' },
|
|
78
|
+
'the page is placed by the bridge, right after the host Sections page',
|
|
79
|
+
);
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
82
|
});
|