@hayasaka7/haya-pet 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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ All notable changes to Haya Pet are documented here. This project adheres to
|
|
|
7
7
|
> 0.2.0 npm publish; they are listed under 0.2.1, which is the first version that
|
|
8
8
|
> ships them.
|
|
9
9
|
|
|
10
|
+
## [0.2.4]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Removed the non-functional **"Open Settings"** tray item (it had no handler).
|
|
14
|
+
A settings window is deferred until settings outgrow the tray; every current
|
|
15
|
+
setting already has a tray, CLI, or gesture home.
|
|
16
|
+
|
|
10
17
|
## [0.2.3]
|
|
11
18
|
|
|
12
19
|
### Added
|
|
@@ -46,7 +46,11 @@ export function buildTrayMenu(state = {}) {
|
|
|
46
46
|
checked: Boolean(state.attachBubblesToTerminals)
|
|
47
47
|
},
|
|
48
48
|
{ id: "reset_position", label: "Reset Position" },
|
|
49
|
-
|
|
49
|
+
// Parked until a real settings window exists: every current setting already
|
|
50
|
+
// has a home (tray toggles, `haya-pet hooks`, drag/grip gestures), so the
|
|
51
|
+
// item would be a dead button. Re-enable once settings outgrow the tray
|
|
52
|
+
// (e.g. bubble text size, linger duration) and a handler is wired up.
|
|
53
|
+
// { id: "settings", label: "Open Settings" },
|
|
50
54
|
{ id: "separator", type: "separator" },
|
|
51
55
|
{ id: "quit", label: "Quit" }
|
|
52
56
|
];
|
|
@@ -13,9 +13,12 @@ const baseState = {
|
|
|
13
13
|
test("includes the documented recovery controls", () => {
|
|
14
14
|
const menu = buildTrayMenu(baseState);
|
|
15
15
|
const ids = menu.map((item) => item.id);
|
|
16
|
-
for (const id of ["toggle_pet", "display_mode", "sessions", "pets", "attach_bubbles", "reset_position", "
|
|
16
|
+
for (const id of ["toggle_pet", "display_mode", "sessions", "pets", "attach_bubbles", "reset_position", "quit"]) {
|
|
17
17
|
assert.ok(ids.includes(id), `missing ${id}`);
|
|
18
18
|
}
|
|
19
|
+
// "Open Settings" is parked until a settings window exists (every current
|
|
20
|
+
// setting already has a tray/CLI/gesture home) — it must not be shown dead.
|
|
21
|
+
assert.ok(!ids.includes("settings"), "settings item should stay hidden until implemented");
|
|
19
22
|
});
|
|
20
23
|
|
|
21
24
|
test("toggles the pet label based on visibility", () => {
|