diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cc9e5b..fff2062 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.40] - 2024.12.20 +### Added +- Only show issuer on certificate if it's not the agent + + ## [0.3.39] - 2024.12.20 - d8819155e2acd2b57fdab523168fa5d1d09e80cc ### Added - Page for a framed claim certificate diff --git a/package-lock.json b/package-lock.json index 04a77f3..3ac1225 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "TimeSafari", - "version": "0.3.40-beta", + "version": "0.3.40", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "TimeSafari", - "version": "0.3.40-beta", + "version": "0.3.40", "dependencies": { "@capacitor/android": "^6.1.2", "@capacitor/cli": "^6.1.2", diff --git a/package.json b/package.json index 4c24ef2..2210f24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "TimeSafari", - "version": "0.3.40-beta", + "version": "0.3.40", "scripts": { "dev": "vite", "serve": "vite preview", diff --git a/src/views/ClaimCertificateView.vue b/src/views/ClaimCertificateView.vue index b0a0383..668cc7c 100644 --- a/src/views/ClaimCertificateView.vue +++ b/src/views/ClaimCertificateView.vue @@ -178,19 +178,26 @@ export default class ClaimCertificateView extends Vue { ctx.fillText(amountText, (CANVAS_WIDTH - amountWidth) / 2, yPos); } - // Draw claim issuer & recipient - if (claimData.issuer) { + // Draw claim issuer + console.log("claimData.issuer", claimData.issuer); + if (claimData.issuer == null + || serverUtil.isHiddenDid(claimData.issuer) + // don't show if issuer claimed for themselves + // (The confirmations are the good stuff anyway, and self-issued certs shouldn't detract from that.) + || claimData.issuer !== claimData.claim.agent?.identifier) { ctx.font = "14px Arial"; let fullIssuer = serverUtil.didInfoForCertificate( claimData.issuer, allContacts, ); - if (fullIssuer.length > 15) { + if (fullIssuer.length > 30) { fullIssuer = fullIssuer.substring(0, 30) + "..."; } const issuerText = "Issued by " + fullIssuer; ctx.fillText(issuerText, CANVAS_WIDTH * 0.3, CANVAS_HEIGHT * 0.6); } + + // Draw number of claim confirmers if (confirmerIds.length > 0) { const confirmerText = "Confirmed by " +