forked from jsnbuchanan/crowd-funder-for-time-pwa
Merge branch 'build-improvement' of ssh://173.199.124.46:222/trent_larson/crowd-funder-for-time-pwa into build-improvement
This commit is contained in:
@@ -159,25 +159,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
/* TODO: Human Testing Required - PlatformServiceMixin Migration */
|
|
||||||
// Priority: High | Migrated: 2025-07-06 | Author: Matthew Raymer
|
|
||||||
//
|
|
||||||
// TESTING NEEDED: Component migrated from legacy logConsoleAndDb to PlatformServiceMixin
|
|
||||||
// but requires human validation due to meeting component accessibility limitations.
|
|
||||||
//
|
|
||||||
// Test Scenarios Required:
|
|
||||||
// 1. Load members list with valid meeting password
|
|
||||||
// 2. Test member admission toggle (organizer role)
|
|
||||||
// 3. Test adding member as contact
|
|
||||||
// 4. Test error scenarios: network failure, invalid password, server errors
|
|
||||||
// 5. Verify error logging appears in console and database
|
|
||||||
// 6. Cross-platform testing: web, mobile, desktop
|
|
||||||
//
|
|
||||||
// Reference: docs/migration-testing/migration-checklist-MembersList.md
|
|
||||||
// Migration Details: Replaced 3 logConsoleAndDb() calls with this.$logAndConsole()
|
|
||||||
// Validation: Passes lint checks and TypeScript compilation
|
|
||||||
// Navigation: Contacts → Chair Icon → Start/Join Meeting → Members List
|
|
||||||
|
|
||||||
import { Component, Vue, Prop, Emit } from "vue-facing-decorator";
|
import { Component, Vue, Prop, Emit } from "vue-facing-decorator";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export enum AppString {
|
|||||||
|
|
||||||
PROD_PARTNER_API_SERVER = "https://partner-api.endorser.ch",
|
PROD_PARTNER_API_SERVER = "https://partner-api.endorser.ch",
|
||||||
TEST_PARTNER_API_SERVER = "https://test-partner-api.endorser.ch",
|
TEST_PARTNER_API_SERVER = "https://test-partner-api.endorser.ch",
|
||||||
LOCAL_PARTNER_API_SERVER = "http://127.0.0.1:3002",
|
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
|
||||||
|
LOCAL_PARTNER_API_SERVER = "http://127.0.0.1:3000",
|
||||||
|
|
||||||
PROD_PUSH_SERVER = "https://timesafari.app",
|
PROD_PUSH_SERVER = "https://timesafari.app",
|
||||||
TEST1_PUSH_SERVER = "https://test.timesafari.app",
|
TEST1_PUSH_SERVER = "https://test.timesafari.app",
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
// similar to VerifiableCredentialSubject... maybe rename this
|
// similar to VerifiableCredentialSubject... maybe rename this
|
||||||
export interface GenericVerifiableCredential {
|
export interface GenericVerifiableCredential {
|
||||||
"@context"?: string;
|
"@context"?: string;
|
||||||
"@type": string;
|
"@type"?: string;
|
||||||
name?: string;
|
|
||||||
description?: string;
|
|
||||||
agent?: string | { identifier: string };
|
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +44,7 @@ export interface KeyMetaWithPrivate extends KeyMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface QuantitativeValue extends GenericVerifiableCredential {
|
export interface QuantitativeValue extends GenericVerifiableCredential {
|
||||||
"@type": "QuantitativeValue";
|
"@type"?: "QuantitativeValue";
|
||||||
"@context"?: string;
|
"@context"?: string;
|
||||||
amountOfThisGood: number;
|
amountOfThisGood: number;
|
||||||
unitCode: string;
|
unitCode: string;
|
||||||
@@ -97,8 +94,7 @@ export interface ClaimObject {
|
|||||||
|
|
||||||
export interface VerifiableCredentialClaim {
|
export interface VerifiableCredentialClaim {
|
||||||
"@context"?: string;
|
"@context"?: string;
|
||||||
"@type": string;
|
"@type"?: string;
|
||||||
type: string[];
|
|
||||||
credentialSubject: ClaimObject;
|
credentialSubject: ClaimObject;
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -697,7 +697,6 @@ export function hydrateGive(
|
|||||||
|
|
||||||
if (amount && !isNaN(amount)) {
|
if (amount && !isNaN(amount)) {
|
||||||
const quantitativeValue: QuantitativeValue = {
|
const quantitativeValue: QuantitativeValue = {
|
||||||
"@type": "QuantitativeValue",
|
|
||||||
amountOfThisGood: amount,
|
amountOfThisGood: amount,
|
||||||
unitCode: unitCode || "HUR",
|
unitCode: unitCode || "HUR",
|
||||||
};
|
};
|
||||||
@@ -1342,7 +1341,6 @@ export async function createEndorserJwtVcFromClaim(
|
|||||||
vc: {
|
vc: {
|
||||||
"@context": "https://www.w3.org/2018/credentials/v1",
|
"@context": "https://www.w3.org/2018/credentials/v1",
|
||||||
"@type": "VerifiableCredential",
|
"@type": "VerifiableCredential",
|
||||||
type: ["VerifiableCredential"],
|
|
||||||
credentialSubject: claim,
|
credentialSubject: claim,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -1380,7 +1378,6 @@ export async function createInviteJwt(
|
|||||||
vc: {
|
vc: {
|
||||||
"@context": "https://www.w3.org/2018/credentials/v1",
|
"@context": "https://www.w3.org/2018/credentials/v1",
|
||||||
"@type": "VerifiableCredential",
|
"@type": "VerifiableCredential",
|
||||||
type: ["VerifiableCredential"],
|
|
||||||
credentialSubject: vcClaim as unknown as ClaimObject, // Type assertion needed due to object being string
|
credentialSubject: vcClaim as unknown as ClaimObject, // Type assertion needed due to object being string
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -253,22 +253,6 @@ import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
|
|||||||
*
|
*
|
||||||
* @component
|
* @component
|
||||||
*/
|
*/
|
||||||
// TODO: Testing Required - Database Operations + Logging Migration to PlatformServiceMixin
|
|
||||||
// Priority: Medium | Migrated: 2025-07-06 | Author: Matthew Raymer
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// TESTING NEEDED: Contact import functionality
|
|
||||||
// 1. Test contact import via URL: /contact-import?contacts=[{"did":"did:example:123","name":"Alice"}]
|
|
||||||
// 2. Test JWT import via URL path: /contact-import/[JWT_TOKEN]
|
|
||||||
// 3. Test manual JWT input via textarea
|
|
||||||
// 4. Test duplicate contact detection and field comparison
|
|
||||||
// 5. Test error scenarios: invalid JWT, malformed data, network issues
|
|
||||||
// 6. Verify error logging appears correctly
|
|
||||||
//
|
|
||||||
// Test URLs:
|
|
||||||
// /contact-import (manual input)
|
|
||||||
// /contact-import?contacts=[{"did":"did:test:123","name":"Test User"}]
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: { EntityIcon, OfferDialog, QuickNav },
|
components: { EntityIcon, OfferDialog, QuickNav },
|
||||||
mixins: [PlatformServiceMixin],
|
mixins: [PlatformServiceMixin],
|
||||||
|
|||||||
Reference in New Issue
Block a user