Skip to content
Snippets Groups Projects

Show the correct list of certificates when browsing the web of trust

Merged Carles Barrobés requested to merge wot-show-certifications into develop
3 unresolved threads

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.

image

Now when you click on certifications reçues it shows this:

image

Edited by Carles Barrobés

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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') || '']"
  • Not sure why it was conditional for mobile, but this meant that it wouldn't work on Cesium desktop/web.

  • 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.

  • Please register or sign in to reply
  • Carles Barrobés changed the description

    changed the description

  • added 1 commit

    • 9582d6b4 - Display localised certificate expiry dates

    Compare with previous version

  • Carles Barrobés changed the description

    changed the description

  • mentioned in issue #9 (closed)

  • 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;
  • 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
  • Benoit Lavenier approved this merge request

    approved this merge request

  • Benoit Lavenier mentioned in commit 8b4cb361

    mentioned in commit 8b4cb361

  • merged

  • Carles Barrobés mentioned in merge request !13 (closed)

    mentioned in merge request !13 (closed)

  • Please register or sign in to reply
    Loading