@pi-unipi/footer 2.1.3 → 2.2.1
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/package.json +2 -2
- package/src/tui/settings-tui.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/footer",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Persistent status bar for Unipi — subscribes to UNIPI_EVENTS and renders key stats from all unipi packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@pi-unipi/core": "2.
|
|
35
|
+
"@pi-unipi/core": "2.2.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@earendil-works/pi-coding-agent": "^0.80.0",
|
package/src/tui/settings-tui.ts
CHANGED
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
|
|
13
|
-
import { SettingsList, type SettingItem, type SettingsListTheme } from "@earendil-works/pi-tui";
|
|
13
|
+
import { matchesKey, SettingsList, type SettingItem, type SettingsListTheme } from "@earendil-works/pi-tui";
|
|
14
14
|
import { loadFooterSettings, saveFooterSettings } from "../config.js";
|
|
15
15
|
import { PRESET_NAMES } from "../presets.js";
|
|
16
16
|
import { setIconStyle } from "../rendering/icons.js";
|
|
17
17
|
import type { FooterGroup, FooterSettings, SeparatorStyle, IconStyle } from "../types.js";
|
|
18
|
+
import { boxInnerWidth } from "@pi-unipi/core";
|
|
18
19
|
|
|
19
20
|
// ─── Section types ─────────────────────────────────────────────────────
|
|
20
21
|
|
|
@@ -150,7 +151,7 @@ class FooterSettingsOverlay {
|
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
// Escape — back from drill-down, or close at root
|
|
153
|
-
if (data
|
|
154
|
+
if (matchesKey(data, "escape")) {
|
|
154
155
|
if (this.section === "segments" && this.selectedGroupId) {
|
|
155
156
|
this.backToGroups();
|
|
156
157
|
} else {
|
|
@@ -457,7 +458,7 @@ class FooterSettingsOverlay {
|
|
|
457
458
|
// ─── Render ────────────────────────────────────────────────────────
|
|
458
459
|
|
|
459
460
|
render(width: number): string[] {
|
|
460
|
-
const innerWidth =
|
|
461
|
+
const innerWidth = boxInnerWidth(width);
|
|
461
462
|
const lines: string[] = [];
|
|
462
463
|
|
|
463
464
|
// Header
|