verification ui: display publicKey if no verification domain, update CHANGES

This commit is contained in:
Ilya Kreymer
2022-10-04 16:54:43 -07:00
parent f1df02ea3c
commit ff746d8107
2 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
## CHANGES
v1.7.0
- UI: Support showing WACZ verification stats on info tab, showing hashes verified, observer domain (or creation software), and certificate fingerprint, and WACZ package digest
- UI: Support showing WACZ verification stats on info tab, showing hashes verified, observer domain, (or public key and creation software), and certificate fingerprint, and WACZ package digest
- Embed UI: Add `replay-with-info` embed mode which provides an information dropdown above replay, including verification info and link to download.
- Embed UI: Add `hideOffscreen` attribute to enable hiding embed when offscreen (previously always enabled).
- Embeds: add `newWindowBase" for configuring base replay for loading pages in new windows (default: https://replayweb.page/ or current page with deep links)
@@ -11,7 +11,7 @@ v1.7.0
- Fidelity/Embeds: Redirect new windows from links / `window.open` to existing replay frame (only possible w/o 'sandbox').
- Embeds: Add 'requireSubdomainIframe' embed attribute to only allow embed if loaded from a cross-origin / subdomain iframe.
- UI: improved formatting on 404 not found page.
- Loading: Fix IPFS loading, use auto-js-ipfs to load from gateway or existing local instance (don't run local node for now)
- Loading: Fix IPFS loading, use auto-js-ipfs to load from an IPFS gateway or existing local instance (don't run local node for now)
- Dependencies: update to wabac.js 2.13.0 to support verification, latest wombat (3.3.9)
v1.6.5
+13 -3
View File
@@ -163,6 +163,13 @@ export class RWPEmbedReceipt extends LitElement
font-family: monospace;
}
.embed-info-drop .show-key {
text-overflow: ellipsis;
overflow: hidden;
whitespace: nowrap;
font-family: monospace;
}
.embed-globe {
margin: 0.25rem;
padding: 7px;
@@ -177,7 +184,7 @@ export class RWPEmbedReceipt extends LitElement
}
render() {
let {numValid, numInvalid, domain, certFingerprint, datapackageHash, software} = this.collInfo.verify || {};
let {numValid, numInvalid, domain, certFingerprint, datapackageHash, publicKey, software} = this.collInfo.verify || {};
numValid = numValid || 0;
numInvalid = numInvalid || 0;
@@ -215,11 +222,14 @@ export class RWPEmbedReceipt extends LitElement
${domain ? html`
<h3 class="mt-2">Observed By:</h3>
<p>${domain}</p>
${certFingerprintUrl ?
html`<p><a target="_blank" href="${certFingerprintUrl}">View Certificate</a></p>` : ""}
${certFingerprintUrl ? html`
<p><a target="_blank" href="${certFingerprintUrl}">View Certificate</a></p>` : ""}
` : software ? html`
<h3 class="mt-2">Created With:</h3>
<p>${software}</p>` : ""}
${!domain && publicKey ? html`
<h3 class="mt-2">Observer Public Key:</h3>
<p class="show-key">${publicKey}</p>` : ``}
<h3 class="mt-2">Validation:</h3>
${numValid > 0 || numInvalid > 0 ? html`
<p>${numValid} hashes verified${numInvalid ? html`, ${numInvalid} invalid` : ""}</p>` : html`