From 3eedbff6e6d4844614917c8f108f5a13480a5555 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 26 Dec 2025 12:21:37 +0000 Subject: [PATCH] fix(storage): correct column priority types and setup pre-push hook - Fix Storage.tsx using number priorities instead of string literals - Move husky configuration to repository root for proper git hook support - Add package.json/lock.json to root (un-ignore in .gitignore) - Configure pre-push hook to run type-check before push --- .gitignore | 3 +- {frontend-modern/.husky => .husky}/pre-push | 0 frontend-modern/package-lock.json | 17 ---------- frontend-modern/package.json | 6 ++-- .../src/components/Storage/Storage.tsx | 12 +++---- package-lock.json | 32 +++++++++++++++++++ package.json | 29 +++++++++++++++++ 7 files changed, 70 insertions(+), 29 deletions(-) rename {frontend-modern/.husky => .husky}/pre-push (100%) mode change 100644 => 100755 create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 8d6facac0..f1926fcda 100644 --- a/.gitignore +++ b/.gitignore @@ -103,8 +103,7 @@ testing-tools/* manual-test*.md verify-*.md test-*.md -package.json -package-lock.json + *.test.js *.test.md screenshots/ diff --git a/frontend-modern/.husky/pre-push b/.husky/pre-push old mode 100644 new mode 100755 similarity index 100% rename from frontend-modern/.husky/pre-push rename to .husky/pre-push diff --git a/frontend-modern/package-lock.json b/frontend-modern/package-lock.json index d2139f3c6..e4e4d31dc 100644 --- a/frontend-modern/package-lock.json +++ b/frontend-modern/package-lock.json @@ -27,7 +27,6 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-solid": "^0.14.0", - "husky": "^9.1.7", "jsdom": "^24.1.0", "postcss": "^8.4.0", "prettier": "^3.3.0", @@ -3761,22 +3760,6 @@ "node": ">= 14" } }, - "node_modules/husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", - "dev": true, - "license": "MIT", - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", diff --git a/frontend-modern/package.json b/frontend-modern/package.json index 52df41dd0..b48ffc703 100644 --- a/frontend-modern/package.json +++ b/frontend-modern/package.json @@ -25,8 +25,7 @@ "lint": "eslint \"src/**/*.{ts,tsx}\"", "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix", "format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"", - "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\"", - "prepare": "husky" + "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\"" }, "dependencies": { "@solidjs/router": "^0.10.10", @@ -47,7 +46,6 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-solid": "^0.14.0", - "husky": "^9.1.7", "jsdom": "^24.1.0", "postcss": "^8.4.0", "prettier": "^3.3.0", @@ -57,4 +55,4 @@ "vite-plugin-solid": "^2.8.0", "vitest": "^3.2.4" } -} +} \ No newline at end of file diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx index 963e7b009..710b0ab26 100644 --- a/frontend-modern/src/components/Storage/Storage.tsx +++ b/frontend-modern/src/components/Storage/Storage.tsx @@ -65,12 +65,12 @@ const Storage: Component = () => { // Column definitions for storage table const STORAGE_COLUMNS: ColumnDef[] = [ - { id: 'type', label: 'Type', priority: 3, toggleable: true }, - { id: 'content', label: 'Content', priority: 4, toggleable: true }, - { id: 'status', label: 'Status', priority: 2, toggleable: true }, - { id: 'shared', label: 'Shared', priority: 5, toggleable: true }, - { id: 'free', label: 'Free', priority: 4, toggleable: true }, - { id: 'total', label: 'Total', priority: 3, toggleable: true }, + { id: 'type', label: 'Type', priority: 'secondary', toggleable: true }, + { id: 'content', label: 'Content', priority: 'supplementary', toggleable: true }, + { id: 'status', label: 'Status', priority: 'primary', toggleable: true }, + { id: 'shared', label: 'Shared', priority: 'detailed', toggleable: true }, + { id: 'free', label: 'Free', priority: 'supplementary', toggleable: true }, + { id: 'total', label: 'Total', priority: 'secondary', toggleable: true }, ]; // Column visibility management diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..a349b515c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,32 @@ +{ + "name": "pulse", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pulse", + "version": "1.0.0", + "license": "ISC", + "devDependencies": { + "husky": "^9.1.7" + } + }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..da4b6dcff --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "pulse", + "version": "1.0.0", + "description": "
\"Pulse

Pulse

Real-time monitoring for Proxmox, Docker, and Kubernetes infrastructure.

", + "main": "index.js", + "directories": { + "doc": "docs", + "test": "tests" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/rcourtman/Pulse.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "type": "commonjs", + "bugs": { + "url": "https://github.com/rcourtman/Pulse/issues" + }, + "homepage": "https://github.com/rcourtman/Pulse#readme", + "devDependencies": { + "husky": "^9.1.7" + } +}