Merge branch 'master' into contact-gifting-current-user
This commit is contained in:
@@ -187,9 +187,10 @@ export default class DataExportSection extends Vue {
|
||||
const exContact: Contact = R.omit(["contactMethods"], contact);
|
||||
// now add contactMethods as a true array of ContactMethod objects
|
||||
exContact.contactMethods = contact.contactMethods
|
||||
? (typeof contact.contactMethods === 'string' && contact.contactMethods.trim() !== ''
|
||||
? JSON.parse(contact.contactMethods)
|
||||
: [])
|
||||
? typeof contact.contactMethods === "string" &&
|
||||
contact.contactMethods.trim() !== ""
|
||||
? JSON.parse(contact.contactMethods)
|
||||
: []
|
||||
: [];
|
||||
return exContact;
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ Raymer */
|
||||
<div class="flex mb-4">
|
||||
<AmountInput
|
||||
:value="parseFloat(amountInput) || 0"
|
||||
:onUpdateValue="handleAmountUpdate"
|
||||
:on-update-value="handleAmountUpdate"
|
||||
data-testId="inputOfferAmount"
|
||||
/>
|
||||
|
||||
@@ -152,8 +152,6 @@ export default class OfferDialog extends Vue {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
// =================================================
|
||||
// COMPONENT METHODS
|
||||
// =================================================
|
||||
@@ -199,8 +197,6 @@ export default class OfferDialog extends Vue {
|
||||
this.visible = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Handle amount updates from AmountInput component
|
||||
* @param value - New amount value
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// **WORKER-COMPATIBLE CRYPTO POLYFILL**: Must be at the very top
|
||||
// This prevents "crypto is not defined" errors when running in worker context
|
||||
if (typeof window === "undefined" && typeof crypto === "undefined") {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(globalThis as any).crypto = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
getRandomValues: (array: any) => {
|
||||
// Simple fallback for worker context
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
|
||||
@@ -53,6 +53,7 @@ import {
|
||||
DeepLinkRoute,
|
||||
} from "../interfaces/deepLinks";
|
||||
import type { DeepLinkError } from "../interfaces/deepLinks";
|
||||
import { logger } from "../utils/logger";
|
||||
|
||||
// Helper function to extract the first key from a Zod object schema
|
||||
function getFirstKeyFromZodObject(
|
||||
@@ -204,9 +205,8 @@ export class DeepLinkHandler {
|
||||
validatedParams = await schema.parseAsync(params);
|
||||
} catch (error) {
|
||||
// For parameter validation errors, provide specific error feedback
|
||||
logConsoleAndDb(
|
||||
logger.error(
|
||||
`[DeepLink] Invalid parameters for route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with params: ${JSON.stringify(params)} ... and query: ${JSON.stringify(query)}`,
|
||||
true,
|
||||
);
|
||||
await this.router.replace({
|
||||
name: "deep-link-error",
|
||||
@@ -229,9 +229,8 @@ export class DeepLinkHandler {
|
||||
params: validatedParams,
|
||||
});
|
||||
} catch (error) {
|
||||
logConsoleAndDb(
|
||||
logger.error(
|
||||
`[DeepLink] Error routing to route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with validated params: ${JSON.stringify(validatedParams)}`,
|
||||
true,
|
||||
);
|
||||
// For parameter validation errors, provide specific error feedback
|
||||
await this.router.replace({
|
||||
@@ -263,9 +262,8 @@ export class DeepLinkHandler {
|
||||
await this.validateAndRoute(path, sanitizedParams, query);
|
||||
} catch (error) {
|
||||
const deepLinkError = error as DeepLinkError;
|
||||
logConsoleAndDb(
|
||||
logger.error(
|
||||
`[DeepLink] Error (${deepLinkError.code}): ${deepLinkError.details}`,
|
||||
true,
|
||||
);
|
||||
|
||||
throw {
|
||||
|
||||
@@ -92,6 +92,7 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
|
||||
})
|
||||
export default class PlatformServiceMixinTest extends Vue {
|
||||
result: string = "";
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
userZeroTestResult: any = null;
|
||||
activeTest: string = ""; // Track which test is currently active
|
||||
|
||||
@@ -267,6 +268,7 @@ This tests the complete save → retrieve cycle with actual database interaction
|
||||
this.result = `User #0 settings test completed. isRegistered: ${accountSettings.isRegistered}`;
|
||||
} catch (error) {
|
||||
this.result = `Error testing User #0 settings: ${error}`;
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Error testing User #0 settings:", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,6 +133,7 @@ export const PlatformServiceMixin = {
|
||||
* Used for change detection and component updates
|
||||
*/
|
||||
currentActiveDid(): string | null {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return (this as any)._currentActiveDid;
|
||||
},
|
||||
|
||||
@@ -200,7 +201,9 @@ export const PlatformServiceMixin = {
|
||||
* This method should be called when the user switches identities
|
||||
*/
|
||||
async $updateActiveDid(newDid: string | null): Promise<void> {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const oldDid = (this as any)._currentActiveDid;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(this as any)._currentActiveDid = newDid;
|
||||
|
||||
if (newDid !== oldDid) {
|
||||
@@ -291,6 +294,7 @@ export const PlatformServiceMixin = {
|
||||
|
||||
// Convert searchBoxes array to JSON string if present
|
||||
if (settings.searchBoxes !== undefined) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(converted as any).searchBoxes = Array.isArray(settings.searchBoxes)
|
||||
? JSON.stringify(settings.searchBoxes)
|
||||
: String(settings.searchBoxes);
|
||||
@@ -692,6 +696,7 @@ export const PlatformServiceMixin = {
|
||||
typeof method.value === "string";
|
||||
|
||||
if (!isValid && method !== undefined) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
"[ContactNormalization] Invalid contact method:",
|
||||
method,
|
||||
|
||||
Reference in New Issue
Block a user