From 34806b514b173ae31882a7723982b8067d9ac9d4 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 21 Aug 2023 06:05:08 -0600 Subject: [PATCH 1/4] log bug with "Share Your Info" button --- project.task.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/project.task.yaml b/project.task.yaml index 763acca..74fcca2 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,5 +1,6 @@ tasks: +- When you're not registered, the "Share Your Info" button on "Your Identity" page doesn't work. - .2 bug - on contacts view, click on "to" & "from" and nothing happens - 01 add a location for a project via map pin : - add with a "location" field containing this: { "geo":{ "@type":"GeoCoordinates", "latitude":40.883944, "longitude":-111.884787 } } From 5804f692b71b46aab26b64d9546052ddcbebb9b8 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 21 Aug 2023 07:29:26 -0600 Subject: [PATCH 2/4] update to new alerting -- old alerts were broken --- src/router/index.ts | 3 +-- src/views/ContactQRScanShowView.vue | 23 +++++------------------ 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7ce59c4..2921573 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -192,8 +192,7 @@ const router = createRouter({ const errorHandler = (error, to, from) => { // Handle the error here - console.error(error, to, from); - console.log("XXXXX"); + console.error("Caught in top level error handler:", error, to, from); // You can also perform additional actions, such as displaying an error message or redirecting the user to a specific page }; diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue index 08a6b91..c932a49 100644 --- a/src/views/ContactQRScanShowView.vue +++ b/src/views/ContactQRScanShowView.vue @@ -17,10 +17,6 @@ :dotsOptions="{ type: 'square' }" class="flex justify-center" /> - @@ -32,18 +28,15 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings"; import * as R from "ramda"; import { SimpleSigner } from "@/libs/crypto"; import * as didJwt from "did-jwt"; -import AlertMessage from "@/components/AlertMessage"; import QuickNav from "@/components/QuickNav"; +import { Account } from "@/db/tables/accounts"; // eslint-disable-next-line @typescript-eslint/no-var-requires const Buffer = require("buffer/").Buffer; -alertTitle = ""; -alertMessage = ""; @Component({ components: { QRCodeVue3, - AlertMessage, QuickNav, }, }) @@ -55,7 +48,10 @@ export default class ContactQRScanShow extends Vue { public async getIdentity(activeDid) { await accountsDB.open(); const accounts = await accountsDB.accounts.toArray(); - const account = R.find((acc) => acc.did === activeDid, accounts); + const account: Account | undefined = R.find( + (acc) => acc.did === activeDid, + accounts, + ); const identity = JSON.parse(account?.identity || "null"); if (!identity) { @@ -66,15 +62,6 @@ export default class ContactQRScanShow extends Vue { return identity; } - public async getHeaders(identity) { - const token = await accessToken(identity); - const headers = { - "Content-Type": "application/json", - Authorization: "Bearer " + token, - }; - return headers; - } - async created() { await db.open(); const settings = await db.settings.get(MASTER_SETTINGS_KEY); From 81a6d73f2f513f51589c1b230e2c5e6d8f8a5c4e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 21 Aug 2023 07:31:28 -0600 Subject: [PATCH 3/4] update task for alert fixes --- project.task.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.task.yaml b/project.task.yaml index 74fcca2..54ae41d 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,6 +1,6 @@ tasks: -- When you're not registered, the "Share Your Info" button on "Your Identity" page doesn't work. +- test alerts on all pages -- or refactor to new "notify" (since AlertMessage refactoring may require a change, et. ContactQRScanShowView) - .2 bug - on contacts view, click on "to" & "from" and nothing happens - 01 add a location for a project via map pin : - add with a "location" field containing this: { "geo":{ "@type":"GeoCoordinates", "latitude":40.883944, "longitude":-111.884787 } } From 97274a701dd02011d590e4a52a8330fe0d81a332 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 21 Aug 2023 08:42:18 -0600 Subject: [PATCH 4/4] update derivation verbiage --- src/views/StartView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/StartView.vue b/src/views/StartView.vue index c3144d6..6c1a0ca 100644 --- a/src/views/StartView.vue +++ b/src/views/StartView.vue @@ -29,7 +29,7 @@ @click="onClickDerive()" class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mt-2" > - Derive from Existing Account + Derive New Address from Seed Imported Previously