Change to use dpdm for circular import scanning (#5788)

Co-authored-by: Anthony Stirling <[email protected]>
This commit is contained in:
James Brunton
2026-02-24 23:05:23 +00:00
committed by GitHub
co-authored by Anthony Stirling
parent 1b3bfaec20
commit eab84a13d0
17 changed files with 200 additions and 2230 deletions
@@ -1,38 +1,17 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { signatureStorageService, type StorageType } from '@app/services/signatureStorageService';
import { useAppConfig } from '@app/contexts/AppConfigContext';
import type {
SavedSignature,
SavedSignaturePayload,
SavedSignatureType,
SignatureScope,
} from '@app/types/signature';
export const MAX_SAVED_SIGNATURES_BACKEND = 20; // Backend limit per user
export const MAX_SAVED_SIGNATURES_LOCALSTORAGE = 10; // LocalStorage limit
export type SavedSignatureType = 'canvas' | 'image' | 'text';
export type SignatureScope = 'personal' | 'shared' | 'localStorage';
export type SavedSignaturePayload =
| {
type: 'canvas';
dataUrl: string;
}
| {
type: 'image';
dataUrl: string;
}
| {
type: 'text';
dataUrl: string;
signerName: string;
fontFamily: string;
fontSize: number;
textColor: string;
};
export type SavedSignature = SavedSignaturePayload & {
id: string;
label: string;
scope: SignatureScope;
createdAt: number;
updatedAt: number;
};
export type { SavedSignature, SavedSignaturePayload, SavedSignatureType, SignatureScope };
export type AddSignatureResult =
| { success: true; signature: SavedSignature }