From 88cc71b7d393fe8f76ee7ce180cc43b09f04439f Mon Sep 17 00:00:00 2001 From: mikael-lovqvists-claude-agent Date: Sun, 22 Mar 2026 15:35:04 +0000 Subject: [PATCH] future-plans: custom saved search views with JS expressions Co-Authored-By: Claude Sonnet 4.6 --- future-plans.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/future-plans.md b/future-plans.md index 3555cb4..1e60756 100644 --- a/future-plans.md +++ b/future-plans.md @@ -148,6 +148,20 @@ This would allow: - Unit conversion on query (e.g. `temp > 200K` matching a stored `-73°C`) - Catching unit mismatches at entry time +## Search & views + +### Custom search views +Saved searches defined as JS expressions (similar to the template system), evaluated +against each component to produce a filtered and optionally transformed list. Example +use cases: +- "all components with a non-empty `todo` field" +- "all SMD resistors with no datasheet attached" +- "all components missing a `package` field" + +Views would be named, saved, and accessible from the nav or a dedicated views +section. The expression receives the full component object and returns truthy to +include it. Could later be extended to also control sort order and displayed columns. + ## PDF / files ### Auto-select file after upload in file picker