home-hosted 0.4.0 → 0.4.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/AGENTS.md CHANGED
@@ -94,6 +94,11 @@ exists, so the first release has to be published by hand.
94
94
  new UI meets an older payload for a while — a required field there rejects the whole frame and
95
95
  blanks the app. Request bodies and config keep their strict, defaulted shape.
96
96
  - Conventional commits; ESLint via `@antfu/eslint-config`; sparse comments.
97
+ - UI tests live in `uis/stock/test/`: pure modules on node, and a component that is worth
98
+ guarding mounts under `// @vitest-environment happy-dom` (see `number-field.test.ts`). Reach for
99
+ that rather than trusting a component to be thin: `NumberField`'s setter assumed the string a text
100
+ input reports, but Vue casts `<input type="number">` to a *number* first, so `raw.trim()` threw and
101
+ every value typed into a numeric field was silently discarded — no pure-module test could see it.
97
102
  - A destructive action that is one click away confirms in a **popover** (`KillPortButton.vue`),
98
103
  never by arming the same button for a second press: an impatient double click on an arming
99
104
  button fires it. Keep the safe choice first in the popover's tab order.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "home-hosted",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "packageManager": "pnpm@12.5.1",
6
6
  "description": "A self-hosted control panel that keeps your home server processes alive - with a UI you can replace.",
7
7
  "author": "NamesMT <dangquoctrung123@gmail.com>",
@@ -91,9 +91,11 @@
91
91
  "@types/node": "^24.13.3",
92
92
  "@vitejs/plugin-vue": "^6.0.9",
93
93
  "@vitest/coverage-v8": "^5.0.1",
94
+ "@vue/test-utils": "^2.5.1",
94
95
  "clsx": "^2.1.1",
95
96
  "eslint": "^10.11.0",
96
97
  "gifenc": "^1.0.3",
98
+ "happy-dom": "^20.14.5",
97
99
  "lint-staged": "^17.5.1",
98
100
  "lucide-vue-next": "^1.0.0",
99
101
  "playwright": "^1.63.0",