feat: enhance GenericVerifiableCredential interface with explicit optional properties

- Add name, description, and agent as optional properties to GenericVerifiableCredential
- Improve type safety and IntelliSense for common claim properties
- Maintain backward compatibility with existing code
- Reduce need for type assertions when accessing claim properties
This commit is contained in:
Matthew Raymer
2025-06-23 10:30:08 +00:00
parent e2fab0a3ac
commit 2b0e60dfc2
48 changed files with 141 additions and 205 deletions

View File

@@ -58,12 +58,15 @@ import { Router } from "vue-router";
import QuickNav from "../components/QuickNav.vue";
import TopMessage from "../components/TopMessage.vue";
import { db } from "../db/index";
import { Log } from "../db/tables/logs";
import { logger } from "../utils/logger";
import { PlatformServiceFactory } from "../services/PlatformServiceFactory";
import * as databaseUtil from "../db/databaseUtil";
interface Log {
date: string;
message: string;
}
@Component({
components: {
QuickNav,
@@ -74,8 +77,8 @@ export default class LogView extends Vue {
$router!: Router;
loading = true;
logs: Log[] = [];
error: string | null = null;
logs: Log[] = [];
memoryLogs: string[] = [];
async mounted() {
@@ -87,7 +90,6 @@ export default class LogView extends Vue {
this.error = null; // Clear any previous errors
this.memoryLogs = databaseUtil.memoryLogs;
const allLogs: Log[] = [];
const platformService = PlatformServiceFactory.getInstance();
const queryResult = await platformService.dbQuery(
"SELECT * FROM logs ORDER BY date DESC",