MCPcopy Create free account
hub / github.com/PartPilotLab/PartPilot / FilterState

Interface FilterState

app/dashboardPage.tsx:75–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73type Operations = ">" | "<" | "=" | "<=" | ">=";
74
75export interface FilterState {
76 productCode?: string;
77 productTitle?: string;
78 productDescription?: string; //Deep search
79 parentCatalogName?: string;
80 encapStandard?: string;
81 voltage?: { operation: Operations | string | null; value: number | null }; //operation referring to "<" ">" "="
82 resistance?: {
83 operation: Operations | string | null;
84 value: number | null;
85 };
86 power?: { operation: Operations | string | null; value: number | null };
87 current?: { operation: Operations | string | null; value: number | null };
88 tolerance?: string; //Selector
89 frequency?: { operation: Operations | string | null; value: number | null };
90 capacitance?: {
91 operation: Operations | string | null;
92 value: number | null;
93 }; //value is in pF
94 inductance?: {
95 operation: Operations | string | null;
96 value: number | null;
97 }; //value is in uH
98}
99
100export default function DashboardPage({
101 loadedParts,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected