mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
feat: workflow asset tag trigger/filter/action (#29043)
* feat: workflow asset tag trigger and filter * feat(web): show tag names in workflow editor * fix(web): tag picker in schema config editor * fix: invalid plugin manifest * chore: update workflow method wrapper type * chore: update tag filter method declaration * feat: workflow action to add tags to assets
This commit is contained in:
parent
b82d480552
commit
a939561e70
17 changed files with 175 additions and 8 deletions
|
|
@ -308,6 +308,56 @@
|
|||
},
|
||||
"uiHints": ["Filter"]
|
||||
},
|
||||
{
|
||||
"name": "assetAddTags",
|
||||
"title": "Add Tags",
|
||||
"description": "Add tags to an asset",
|
||||
"types": ["AssetV1"],
|
||||
"hostFunctions": true,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tags": {
|
||||
"title": "Tags",
|
||||
"description": "Tags to add to the asset",
|
||||
"type": "string",
|
||||
"array": true,
|
||||
"uiHint": {
|
||||
"type": "TagId"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["tags"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "assetTagFilter",
|
||||
"title": "Filter by tags",
|
||||
"description": "Filter assets by which tags they have",
|
||||
"types": ["AssetV1"],
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tags": {
|
||||
"title": "Tags",
|
||||
"description": "Which tags the asset must have",
|
||||
"type": "string",
|
||||
"array": true,
|
||||
"uiHint": {
|
||||
"type": "TagId"
|
||||
}
|
||||
},
|
||||
"matching": {
|
||||
"title": "Matching",
|
||||
"description": "Whether assets must have all, any, or none of the listed tags",
|
||||
"type": "string",
|
||||
"enum": ["all", "any", "none"]
|
||||
}
|
||||
},
|
||||
"required": ["tags", "matching"]
|
||||
},
|
||||
"uiHints": ["Filter"]
|
||||
},
|
||||
{
|
||||
"name": "assetExifFilter",
|
||||
"title": "Filter by EXIF metadata",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue