Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .server-changes/env-variables-search-by-environment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
area: webapp
type: improvement
---

Extended the search filter on the environment variables page to match on environment type (production, staging, development, preview) and branch name, not just variable name and value.
2 changes: 1 addition & 1 deletion apps/webapp/app/hooks/useFuzzyFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function useFuzzyFilter<T extends Object>({
keys,
}: {
items: T[];
keys: Extract<keyof T, string>[];
keys: string[];
}) {
const [filterText, setFilterText] = useState("");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default function Page() {
const { filterText, setFilterText, filteredItems } =
useFuzzyFilter<EnvironmentVariableWithSetValues>({
items: environmentVariables,
keys: ["key", "value"],
keys: ["key", "value", "environment.type", "environment.branchName"],
});

// Add isFirst and isLast to each environment variable
Expand Down
Loading