matchesAccountQuery ([id]/connectionsSearchFilter.ts)

OmniRoute · src/app/(dashboard)/dashboard/providers/[id]/connectionsSearchFilter.ts · typescript · MIT
search

* connectionsSearchFilter — #7937: account search across the FULL in-memory connections list (not just the current page). Case-insensitive, plain SUBSTRING match (mirrors the semantics of `src/shared/utils/modelCatalogSearch.ts` — do not reimplement a fuzzy matcher here). Matches

// Source: https://github.com/diegosouzapw/OmniRoute | License: MIT | Copyright 2026 diegosouzapw
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * connectionsSearchFilter — #7937: account search across the FULL in-memory
 * connections list (not just the current page).
 *
 * Case-insensitive, plain SUBSTRING match (mirrors the semantics of
 * `src/shared/utils/modelCatalogSearch.ts` — do not reimplement a fuzzy
 * matcher here). Matches against id, tag, name, email, and
 * providerSpecificData.baseUrl (#12108).
 */
import type { ConnectionRowConnection } from "./components/ConnectionRow";

function normalize(value: string | null | undefined): string {
  return typeof value === "string" ? value.trim().toLowerCase() : "";
}

function getConnectionTag(conn: ConnectionRo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key