From 930e3eb1b15eccbc870d057ff1f8c5e9f6462c26 Mon Sep 17 00:00:00 2001 From: mleku Date: Fri, 5 Dec 2025 19:48:34 +0000 Subject: [PATCH] Upgrade dependencies and improve UI handling. Updated "applesauce-core" and "applesauce-signers" to newer versions in lockfile and package.json. Enhanced UI with better button styling and added logic to hide the "policy" tab if not enabled. Included "bun update" in approved commands. --- .claude/settings.local.json | 3 ++- app/web/bun.lock | 8 ++++---- app/web/package.json | 4 ++-- app/web/src/App.svelte | 4 ++++ app/web/src/EventsView.svelte | 26 +++++++++++++++++++++++++- 5 files changed, 37 insertions(+), 8 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 081c9fd..ccbaec8 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -14,7 +14,8 @@ "Bash(go test:*)", "Bash(./scripts/test.sh:*)", "Bash(./scripts/update-embedded-web.sh:*)", - "Bash(bun run build:*)" + "Bash(bun run build:*)", + "Bash(bun update:*)" ], "deny": [], "ask": [] diff --git a/app/web/bun.lock b/app/web/bun.lock index 2e4269a..a5a74ec 100644 --- a/app/web/bun.lock +++ b/app/web/bun.lock @@ -4,8 +4,8 @@ "": { "name": "svelte-app", "dependencies": { - "applesauce-core": "^4.1.0", - "applesauce-signers": "^4.1.0", + "applesauce-core": "^4.4.2", + "applesauce-signers": "^4.2.0", "nostr-tools": "^2.17.0", "sirv-cli": "^2.0.0", }, @@ -79,9 +79,9 @@ "anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="], - "applesauce-core": ["applesauce-core@4.1.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@scure/base": "^1.2.4", "debug": "^4.4.0", "fast-deep-equal": "^3.1.3", "hash-sum": "^2.0.0", "light-bolt11-decoder": "^3.2.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.1" } }, "sha512-vFOHfqWW4DJfvPkMYLYNiy2ozO2IF+ZNwetGqaLuPjgE1Iwu4trZmG3GJUH+lO1Oq1N4e/OQ/EcotJoEBEiW7Q=="], + "applesauce-core": ["applesauce-core@4.4.2", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@scure/base": "^1.2.4", "debug": "^4.4.0", "fast-deep-equal": "^3.1.3", "hash-sum": "^2.0.0", "light-bolt11-decoder": "^3.2.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.1" } }, "sha512-zuZB74Pp28UGM4e8DWbN1atR95xL7ODENvjkaGGnvAjIKvfdgMznU7m9gLxr/Hu+IHOmVbbd4YxwNmKBzCWhHQ=="], - "applesauce-signers": ["applesauce-signers@4.1.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@noble/secp256k1": "^1.7.1", "@scure/base": "^1.2.4", "applesauce-core": "^4.1.0", "debug": "^4.4.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.2" } }, "sha512-S+nTkAt1CAGhalwI7warLTINsxxjBpS3NqbViz6LVy1ZrzEqaNirlalX+rbCjxjRrvIGhYV+rszkxDFhCYbPkg=="], + "applesauce-signers": ["applesauce-signers@4.2.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@noble/secp256k1": "^1.7.1", "@scure/base": "^1.2.4", "applesauce-core": "^4.2.0", "debug": "^4.4.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.2" } }, "sha512-celexNd+aLt6/vhf72XXw2oAk8ohjna+aWEg/Z2liqPwP+kbVjnqq4Z1RXvt79QQbTIQbXYGWqervXWLE8HmHg=="], "array-union": ["array-union@2.1.0", "", {}, "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="], diff --git a/app/web/package.json b/app/web/package.json index d0e596e..b46fe88 100644 --- a/app/web/package.json +++ b/app/web/package.json @@ -20,8 +20,8 @@ "svelte": "^3.55.0" }, "dependencies": { - "applesauce-core": "^4.1.0", - "applesauce-signers": "^4.1.0", + "applesauce-core": "^4.4.2", + "applesauce-signers": "^4.2.0", "nostr-tools": "^2.17.0", "sirv-cli": "^2.0.0" } diff --git a/app/web/src/App.svelte b/app/web/src/App.svelte index b331c9d..1376a2b 100644 --- a/app/web/src/App.svelte +++ b/app/web/src/App.svelte @@ -1663,6 +1663,10 @@ if (tab.id === "sprocket" && !sprocketEnabled) { return false; } + // Hide policy tab if not enabled + if (tab.id === "policy" && !policyEnabled) { + return false; + } // Hide managed ACL tab if not in managed mode if (tab.id === "managed-acl" && aclMode !== "managed") { return false; diff --git a/app/web/src/EventsView.svelte b/app/web/src/EventsView.svelte index 248da74..fcd80fb 100644 --- a/app/web/src/EventsView.svelte +++ b/app/web/src/EventsView.svelte @@ -559,14 +559,22 @@ background: var(--primary); color: var(--text-color); border: none; - padding: 0.5em 1em; + padding: 0.4em 1em; border-radius: 4px; cursor: pointer; font-size: 0.9em; transition: background-color 0.2s; display: flex; align-items: center; + justify-content: center; gap: 0.25em; + box-sizing: border-box; + line-height: 1; + } + + .reload-btn { + width: 2.5em; + padding: 0.4em; } .refresh-btn:hover:not(:disabled), @@ -578,5 +586,21 @@ .reload-btn:disabled { background: var(--secondary); cursor: not-allowed; + padding: 0.4em 1em; + } + + .reload-btn:disabled { + padding: 0.4em; + } + + .reload-btn .spinner { + width: 0.8em; + height: 0.8em; + border: 1.5px solid var(--text-color); + border-top-color: transparent; + border-radius: 50%; + animation: spin 1s linear infinite; + margin: 0; + box-sizing: border-box; }