Show the correct list of certificates when browsing the web of trust
This does two things:
- ensures we route to the correct certification list when clicking on the corresponding section of the WoT detail page (when on web, and probably desktop)
- shows the public key of certifiers and expiraton date of certificates, in a similar format as Cesium v1
Before these changes, it would always route to the "issued certifications" page.
Now when you click on certifications reçues it shows this:
Merge request reports
Activity
requested review from @blavenie
assigned to @txels
88 88 </ion-item> 89 89 90 90 <!-- Received cert count --> 91 <ion-item 92 detail 93 [routerLink]="['/wot', 'cert', account.address, account.meta?.uid || '', (this.mobile && 'received') || '']" Hmmm I realised that Cesium v1 shows a single page for both received and issued certifications, side by side. I suggest that we implement that as a further improvement, if we want to go that route (it will require additional layout and programming work), but for simplicity start with this working version.
mentioned in issue #9 (closed)
- src/app/shared/pipes/block-timestamp.pipe.ts 0 → 100644
1 import { Pipe, PipeTransform } from '@angular/core'; 2 import { Moment } from 'moment'; 3 import { DateUtils, fromDateISOString } from '@app/shared/dates'; 4 5 @Pipe({ 6 name: 'blockTime', 7 }) 8 export class BlockTimePipe implements PipeTransform { 9 constructor() {} 10 11 transform(blockNumber: number): Moment { 12 if (!blockNumber) return null; 13 14 // TODO: get from network service 15 const blockDate = fromDateISOString('2023-11-29T21:39:00.00Z'); 16 const blockDuration = 6; @blavenie do you reckon it's reasonable to get these from the network service, by adding it as a dependency injected here, or would it feel wrong in terms of layers and dependencies?
81 81 symbol: 'GD', 82 82 ss58Format: 42, 83 83 genesis: '0xa565a0ccbab8e5f29f0c8a901a3a062d17360a4d4f5319d03a1580fba4cbf3f6', 84 startTime: '2017-07-08T00:00:00.00Z', // TODO 84 startTime: '2023-11-29T21:39:00.00Z', // TODO This is the timestamp of block 1 on the indexed data, chosen based on this comment: #9 (comment 40913)
mentioned in commit 8b4cb361
mentioned in merge request !13 (closed)