From a90eafbf18c64745680e8c2b51907d515db1a855 Mon Sep 17 00:00:00 2001 From: woikos Date: Tue, 6 Jan 2026 18:00:48 +0100 Subject: [PATCH] Release v1.2.1 - Add quick-add mint list to Cashu wallet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add suggested mints list (Minibits, Coinos, 21Mint, Macadamia, Stablenut) - Show quick-add menu on empty Cashu page with + icon and descriptions - Add collapsible "Quick Add" disclosure when mints exist - Hide already-added mints from the list - Closes #6 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- package-lock.json | 4 +- package.json | 2 +- .../home/wallet/wallet.component.html | 77 ++++++++ .../home/wallet/wallet.component.scss | 179 ++++++++++++++++++ .../home/wallet/wallet.component.ts | 38 ++++ .../home/wallet/wallet.component.html | 77 ++++++++ .../home/wallet/wallet.component.scss | 170 +++++++++++++++++ .../home/wallet/wallet.component.ts | 38 ++++ 8 files changed, 582 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ac66597..244cda9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plebeian-signer", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plebeian-signer", - "version": "1.2.0", + "version": "1.2.1", "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", diff --git a/package.json b/package.json index f6bea44..0cdec12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plebeian-signer", - "version": "1.2.0", + "version": "1.2.1", "custom": { "chrome": { "version": "v1.1.6" diff --git a/projects/chrome/src/app/components/home/wallet/wallet.component.html b/projects/chrome/src/app/components/home/wallet/wallet.component.html index 5c581ef..4cd93dc 100644 --- a/projects/chrome/src/app/components/home/wallet/wallet.component.html +++ b/projects/chrome/src/app/components/home/wallet/wallet.component.html @@ -122,6 +122,31 @@ + + +
+
Quick Add a Mint
+
+ @for (mint of suggestedMints; track mint.url) { + @if (!isMintAlreadyAdded(mint.url)) { + + } + } +
+ @if (mintError) { +
{{ mintError }}
+ } +
} @@ -134,6 +159,33 @@ } + + + @if (hasUnavailableMints()) { +
+ Quick Add +
+ @for (mint of suggestedMints; track mint.url) { + @if (!isMintAlreadyAdded(mint.url)) { + + } + } +
+ @if (mintError) { +
{{ mintError }}
+ } +
+ } } + } + + + +
+ or enter manually +
+
m.mintUrl === mintUrl); + } + + hasUnavailableMints(): boolean { + return this.suggestedMints.some(m => !this.isMintAlreadyAdded(m.url)); + } + + async quickAddMint(mint: { name: string; url: string }) { + this.addingMint = true; + this.mintError = ''; + + try { + await this.cashuService.addMint(mint.name, mint.url); + } catch (error) { + this.mintError = + error instanceof Error ? error.message : 'Failed to add mint'; + } finally { + this.addingMint = false; + } + } + async deleteMint() { if (!this.selectedMintId) return; diff --git a/projects/firefox/src/app/components/home/wallet/wallet.component.html b/projects/firefox/src/app/components/home/wallet/wallet.component.html index 5c581ef..4cd93dc 100644 --- a/projects/firefox/src/app/components/home/wallet/wallet.component.html +++ b/projects/firefox/src/app/components/home/wallet/wallet.component.html @@ -122,6 +122,31 @@ + + +
+
Quick Add a Mint
+
+ @for (mint of suggestedMints; track mint.url) { + @if (!isMintAlreadyAdded(mint.url)) { + + } + } +
+ @if (mintError) { +
{{ mintError }}
+ } +
} @@ -134,6 +159,33 @@ } + + + @if (hasUnavailableMints()) { +
+ Quick Add +
+ @for (mint of suggestedMints; track mint.url) { + @if (!isMintAlreadyAdded(mint.url)) { + + } + } +
+ @if (mintError) { +
{{ mintError }}
+ } +
+ } } + } + + + +
+ or enter manually +
+
m.mintUrl === mintUrl); + } + + hasUnavailableMints(): boolean { + return this.suggestedMints.some(m => !this.isMintAlreadyAdded(m.url)); + } + + async quickAddMint(mint: { name: string; url: string }) { + this.addingMint = true; + this.mintError = ''; + + try { + await this.cashuService.addMint(mint.name, mint.url); + } catch (error) { + this.mintError = + error instanceof Error ? error.message : 'Failed to add mint'; + } finally { + this.addingMint = false; + } + } + async deleteMint() { if (!this.selectedMintId) return;