From 5f0d5ec9f9758962674cfb58cb7343e30d0534da Mon Sep 17 00:00:00 2001 From: Rithvik-padma Date: Mon, 2 Oct 2023 00:42:53 +0530 Subject: [PATCH 1/7] fix: padding issue for the confirm/cancel buttons --- src/app/screens/LNURLPay/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/screens/LNURLPay/index.tsx b/src/app/screens/LNURLPay/index.tsx index bc68de8724..6813d4adc5 100644 --- a/src/app/screens/LNURLPay/index.tsx +++ b/src/app/screens/LNURLPay/index.tsx @@ -523,7 +523,11 @@ function LNURLPay() { )} -
+
Date: Wed, 15 Nov 2023 11:26:27 +0530 Subject: [PATCH 2/7] fix: alignment changes in the container component and lnurl pay screen --- src/app/components/Container.tsx | 2 +- src/app/screens/LNURLPay/index.tsx | 19 ++++++------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/app/components/Container.tsx b/src/app/components/Container.tsx index 013a1c941a..3493f53cce 100644 --- a/src/app/components/Container.tsx +++ b/src/app/components/Container.tsx @@ -31,7 +31,7 @@ function Container({
diff --git a/src/app/screens/LNURLPay/index.tsx b/src/app/screens/LNURLPay/index.tsx index 6813d4adc5..1ef726245b 100644 --- a/src/app/screens/LNURLPay/index.tsx +++ b/src/app/screens/LNURLPay/index.tsx @@ -412,12 +412,9 @@ function LNURLPay() { description={getRecipient()} image={navState.origin?.icon || getImage()} /> -
-
-
+ +
+
<> {formattedMetadata(details.metadata).map( @@ -522,12 +519,8 @@ function LNURLPay() { )}
)} -
-
+
+
- +
From 693b3385c73b308cc709c1b3c50c64cb9ea356ae Mon Sep 17 00:00:00 2001 From: Rithvik-padma Date: Wed, 15 Nov 2023 11:30:39 +0530 Subject: [PATCH 3/7] fix: removing the blinking caret in the more options link --- src/app/screens/LNURLPay/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/screens/LNURLPay/index.tsx b/src/app/screens/LNURLPay/index.tsx index 1ef726245b..ae37edf7c6 100644 --- a/src/app/screens/LNURLPay/index.tsx +++ b/src/app/screens/LNURLPay/index.tsx @@ -477,7 +477,7 @@ function LNURLPay() { )} {(showNameField() || showEmailField()) && ( -
+
{tCommon("actions.more")}{" "} {showMoreFields ? ( From e5eb4eff5600187006d9679e379aa72167faaba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= <100827540+reneaaron@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:07:17 +0100 Subject: [PATCH 4/7] fix: caching getInfo calls (#2864) * fix: caching getInfo calls * fix: add const for cache_key * fix: cache check (is undefined) --- src/extension/background-script/connectors/alby.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/extension/background-script/connectors/alby.ts b/src/extension/background-script/connectors/alby.ts index 38af1df487..91cc045b5a 100644 --- a/src/extension/background-script/connectors/alby.ts +++ b/src/extension/background-script/connectors/alby.ts @@ -42,6 +42,7 @@ export default class Alby implements Connector { private config: Config; private _client: Client | undefined; private _authUser: auth.OAuth2User | undefined; + private _cache = new Map(); constructor(account: Account, config: Config) { this.account = account; @@ -116,16 +117,27 @@ export default class Alby implements Connector { async getInfo(): Promise< GetInfoResponse > { + const cacheKey = "getInfo"; + const cacheValue = this._cache.get(cacheKey) as GetInfoResponse< + WebLNNode & GetAccountInformationResponse + >; + if (cacheValue) { + return cacheValue; + } + try { const info = await this._request((client) => client.accountInformation({}) ); - return { + const returnValue = { data: { ...info, alias: "🐝 getalby.com", }, }; + this._cache.set(cacheKey, returnValue); + + return returnValue; } catch (error) { console.error(error); throw error; From 6fef48f5ac99c5b558dcb5e0ee862067314d88cc Mon Sep 17 00:00:00 2001 From: Rithvik-padma Date: Thu, 16 Nov 2023 17:09:08 +0530 Subject: [PATCH 5/7] fix: result page padding issue fix --- src/app/screens/LNURLPay/index.tsx | 56 +++++++++++++++++------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/src/app/screens/LNURLPay/index.tsx b/src/app/screens/LNURLPay/index.tsx index ae37edf7c6..2672013185 100644 --- a/src/app/screens/LNURLPay/index.tsx +++ b/src/app/screens/LNURLPay/index.tsx @@ -329,31 +329,37 @@ function LNURLPay() { } return ( - -
- - {isMessage && ( -
- {descriptionList.map(([dt, dd]) => ( - <> -
{dt}
-
{dd}
- - ))} -
- )} -
-
-
-
+
+ +
+ + {isMessage && ( +
+ {descriptionList.map(([dt, dd]) => ( + <> +
{dt}
+
{dd}
+ + ))} +
+ )} +
+
+
+
+
); } From 71b00c732bfbe87ea02e2ef249a2add608248ec7 Mon Sep 17 00:00:00 2001 From: Moritz Kaminski Date: Fri, 17 Nov 2023 23:41:34 +0100 Subject: [PATCH 6/7] feat: update store titles & descriptions (#2863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update manifest.json new name and description for the browser stores. * Update manifest.json --------- Co-authored-by: René Aaron --- src/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest.json b/src/manifest.json index 99874b412e..149914681f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -11,7 +11,7 @@ "48": "assets/icons/alby_icon_yellow_48x48.png", "128": "assets/icons/alby_icon_yellow_128x128.png" }, - "description": "Your Bitcoin Lightning wallet and companion for accessing Bitcoin and Nostr apps, payments across the globe and passwordless logins.", + "description": "Your Bitcoin Lightning wallet and companion for accessing Bitcoin and Nostr apps, digital payments and passwordless logins.", "homepage_url": "https://getAlby.com/", "permissions": [ "nativeMessaging", From 4c5e739a211efdee727534ff219c6f310102e21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 14 Nov 2023 23:27:28 +0100 Subject: [PATCH 7/7] fix: add description to transaction modal, layout fixes --- .../TransactionsTable/TransactionModal.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/components/TransactionsTable/TransactionModal.tsx b/src/app/components/TransactionsTable/TransactionModal.tsx index af3c4d7fe0..4a7c0644ac 100644 --- a/src/app/components/TransactionsTable/TransactionModal.tsx +++ b/src/app/components/TransactionsTable/TransactionModal.tsx @@ -102,6 +102,12 @@ export default function TransactionModal({ content={getFormattedSats(transaction.totalFees)} /> )} + {transaction.title && ( + + )} {transaction.publisherLink && transaction.title && ( ( -
+
{children}
); const Dd = ({ children }: { children: React.ReactNode }) => ( -
+
{children}
); @@ -190,7 +196,7 @@ const TransactionDetailRow = ({ title: React.ReactNode | string; content: React.ReactNode | string; }) => ( -
+
{title}
{content}