From 9486142b2ae81e65b97a5af7af14c1fcec21ea23 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 6 Sep 2023 19:48:47 -0600 Subject: [PATCH 1/2] make the Anonymous icon to be blank, plus some other renaming & task cleanup --- project.task.yaml | 4 ++-- src/components/EntityIcon.vue | 15 ++++++++++++++- src/router/index.ts | 2 +- src/views/ContactGiftingView.vue | 4 ++-- src/views/DiscoverView.vue | 2 +- src/views/HomeView.vue | 2 +- src/views/ProjectViewView.vue | 2 +- 7 files changed, 22 insertions(+), 9 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index d12344292..f30639471 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,8 +1,8 @@ tasks: -- fix "any" warnings + +- mount folder for persistent sqlite DB outside of container - fix missing updateAllFeed in ContactGiftingView page -- check that Anonymous users jdenticon are nulls (not "Anonymous") - 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 - 40 notifications : diff --git a/src/components/EntityIcon.vue b/src/components/EntityIcon.vue index ee69c03f8..c717e3fc6 100644 --- a/src/components/EntityIcon.vue +++ b/src/components/EntityIcon.vue @@ -5,13 +5,26 @@ import { Vue, Component, Prop } from "vue-facing-decorator"; import { toSvg } from "jdenticon"; +const BLANK_CONFIG = { + lightness: { + color: [1.0, 1.0], + grayscale: [1.0, 1.0], + }, + saturation: { + color: 0.0, + grayscale: 0.0, + }, + backColor: "#0000", +}; + @Component export default class EntityIcon extends Vue { @Prop entityId = ""; @Prop iconSize = 0; generateIdenticon() { - const svgString = toSvg(this.entityId, this.iconSize); + const config = this.entityId ? undefined : BLANK_CONFIG; + const svgString = toSvg(this.entityId, this.iconSize, config); return svgString; } } diff --git a/src/router/index.ts b/src/router/index.ts index 0fee1667e..e541d0747 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -189,7 +189,7 @@ const routes: Array = [ name: "contact-gives", component: () => import( - /* webpackChunkName: "statistics" */ "../views/ContactGiftingView.vue" + /* webpackChunkName: "contact-gives" */ "../views/ContactGiftingView.vue" ), }, ]; diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index 943fea977..dbe7db440 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -26,7 +26,7 @@

@@ -108,7 +108,7 @@ interface Notification { @Component({ components: { GiftedDialog, QuickNav, EntityIcon }, }) -export default class HomeView extends Vue { +export default class ContactGiftingView extends Vue { $notify!: (notification: Notification, timeout?: number) => void; activeDid = ""; diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index 689fd2878..24b62e8ce 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -56,7 +56,7 @@ searchAll(); " > - Remote + Anywhere {{ remoteCount }}
  • diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 8c6b679db..c97b75b2d 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -95,7 +95,7 @@
    • From a053c488191a63318dffe75a4d29a3f4917f546a Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 6 Sep 2023 20:06:11 -0600 Subject: [PATCH 2/2] make the Anonymous icon the same everywhere, and tweak more in the task list --- project.task.yaml | 9 ++++----- src/views/ContactGiftingView.vue | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index f30639471..e562137ae 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,8 +1,10 @@ tasks: -- mount folder for persistent sqlite DB outside of container -- fix missing updateAllFeed in ContactGiftingView page +- 08 Scan QR code to import into contacts assignee:matthew + - SEE - https://github.com/gruhn/vue-qrcode-reader + +- in endorser-push-server - mount folder for persistent sqlite DB outside of container - 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 - 40 notifications : @@ -12,9 +14,6 @@ tasks: - 01 fix the Discovery map display to not show on top of bottom icons (and any other UI tweaks on the map flow) assignee-group:ui -- 08 Scan QR code to import into contacts assignee:matthew - - SEE: https://github.com/gruhn/vue-qrcode-reader - - 01 Show pop-up or some message confirming that settings & contacts download has been initiated/finished assignee:matthew assignee-group:ui - 01 Ensure each action sent to the server has a confirmation - eg registration (ie a toast something that dismisses after 5-10s) assignee-group:ui diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index dbe7db440..cd8a9de9d 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -28,7 +28,7 @@ > Anonymous