Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

feat(config): add advancedSearch schema for field-specific search filters

aspen04c5bc74c5d3
diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json
index 766ff150..8a08a3cc 100644
--- a/src/utils/ConfigSchema.json
+++ b/src/utils/ConfigSchema.json
@@ -410,6 +410,34 @@
}
}
},
+ "advancedSearch": {
+ "title": "Advanced Search",
+ "type": "object",
+ "description": "Enable filtering search by specific fields",
+ "additionalProperties": false,
+ "properties": {
+ "enabled": {
+ "title": "Advanced Search Enabled",
+ "type": "boolean",
+ "default": false,
+ "description": "If true, only selected fields will be searched"
+ },
+ "fields": {
+ "title": "Advanced Search Fields",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "title": { "type": "boolean", "default": false },
+ "description": { "type": "boolean", "default": false },
+ "provider": { "type": "boolean", "default": false },
+ "url": { "type": "boolean", "default": false },
+ "tags": { "type": "boolean", "default": false },
+ "domain": { "type": "boolean", "default": false }
+ },
+ "description": "Which fields to include in advanced search filtering"
+ }
+ }
+ },
"enableFontAwesome": {
"title": "Enable Font-Awesome?",
"type": "boolean",