Skip to content

Commit 0320350

Browse files
committed
fix(webapp): env variables search now matches on environment type
Extended the search filter on the environment variables page to also match on environment type (production, staging, development, preview) and branch name, not just variable name and value. https://claude.ai/code/session_01HsDEMADbz1HQmZ4MDD753r
1 parent 0e63f83 commit 0320350

File tree

2 files changed

+2
-2
lines changed
  • apps/webapp/app

2 files changed

+2
-2
lines changed

apps/webapp/app/hooks/useFuzzyFilter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function useFuzzyFilter<T extends Object>({
2828
keys,
2929
}: {
3030
items: T[];
31-
keys: Extract<keyof T, string>[];
31+
keys: string[];
3232
}) {
3333
const [filterText, setFilterText] = useState("");
3434

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export default function Page() {
256256
const { filterText, setFilterText, filteredItems } =
257257
useFuzzyFilter<EnvironmentVariableWithSetValues>({
258258
items: environmentVariables,
259-
keys: ["key", "value"],
259+
keys: ["key", "value", "environment.type", "environment.branchName"],
260260
});
261261

262262
// Add isFirst and isLast to each environment variable

0 commit comments

Comments
 (0)