From b8c3517072480ffbd7658f3256ea71c17392dae4 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 3 Apr 2025 12:28:58 +0000 Subject: [PATCH] feat(ui): optimize EntityIcon component and fix event handling - Refactor EntityIcon to use proper Vue template syntax instead of v-html - Add safe event handling with error logging - Cache identicon SVG generation for better performance - Add cursor-pointer class for better UX - Fix circular reference issues in event handling - Add proper TypeScript typing for event parameters - Add ESLint disable comment for v-html usage - Improve error handling and logging This commit addresses UI performance and stability issues in the EntityIcon component, particularly around event handling and SVG generation. The changes should resolve the circular reference errors and improve the overall user experience when interacting with profile icons. WIP: Further testing needed for event propagation and image loading edge cases. --- .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .../buildOutputCleanup/cache.properties | 2 +- android/.gradle/file-system.probe | Bin 8 -> 8 bytes android/app/src/main/assets/public/index.html | 2 +- android/build.gradle | 2 +- package-lock.json | 1038 ++++++++++++++++- package.json | 13 +- src/components/EntityIcon.vue | 76 +- src/interfaces/common.ts | 3 + src/libs/endorserServer.ts | 2 + src/services/PlatformServiceFactory.ts | 31 +- .../DatabaseBackupService.ts | 6 +- src/services/platforms/empty.ts | 20 + src/views/ClaimCertificateView.vue | 45 +- src/views/ClaimReportCertificateView.vue | 96 +- src/views/HomeView.vue | 187 +-- vite.config.web.mts | 111 +- 17 files changed, 1403 insertions(+), 231 deletions(-) rename src/services/platforms/{mobile => capacitor}/DatabaseBackupService.ts (79%) create mode 100644 src/services/platforms/empty.ts diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 6316cbbee7ac24f09bc3eb60cf2995304962381b..011123e5ee04335b9da4e9a10c71e8bcab05c0ac 100644 GIT binary patch literal 17 VcmZQ>duy#wxduy#wx TimeSafari - +