Skip to content

Commit 380d034

Browse files
committed
wip
1 parent 1f25422 commit 380d034

File tree

12 files changed

+457
-365
lines changed

12 files changed

+457
-365
lines changed

i18n/en.json

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
"add_a_location": "Add a location",
1515
"add_a_name": "Add a name",
1616
"add_a_title": "Add a title",
17+
"add_action": "Add action",
1718
"add_birthday": "Add a birthday",
1819
"add_endpoint": "Add endpoint",
1920
"add_exclusion_pattern": "Add exclusion pattern",
21+
"add_filter": "Add filter",
2022
"add_location": "Add location",
2123
"add_more_users": "Add more users",
2224
"add_partner": "Add partner",
@@ -454,6 +456,7 @@
454456
"album_remove_user": "Remove user?",
455457
"album_remove_user_confirmation": "Are you sure you want to remove {user}?",
456458
"album_search_not_found": "No albums found matching your search",
459+
"album_selected": "Album selected",
457460
"album_share_no_users": "Looks like you have shared this album with all users or you don't have any user to share with.",
458461
"album_summary": "Album summary",
459462
"album_updated": "Album updated",
@@ -475,6 +478,7 @@
475478
"albums_default_sort_order_description": "Initial asset sort order when creating new albums.",
476479
"albums_feature_description": "Collections of assets that can be shared with other users.",
477480
"albums_on_device_count": "Albums on device ({count})",
481+
"albums_selected": "{count, plural, one {# album selected} other {# albums selected}}",
478482
"all": "All",
479483
"all_albums": "All albums",
480484
"all_people": "All people",
@@ -511,10 +515,12 @@
511515
"archived_count": "{count, plural, other {Archived #}}",
512516
"are_these_the_same_person": "Are these the same person?",
513517
"are_you_sure_to_do_this": "Are you sure you want to do this?",
518+
"array_field_not_fully_supported": "Array fields require manual JSON editing",
514519
"asset_action_delete_err_read_only": "Cannot delete read only asset(s), skipping",
515520
"asset_action_share_err_offline": "Cannot fetch offline asset(s), skipping",
516521
"asset_added_to_album": "Added to album",
517522
"asset_adding_to_album": "Adding to album…",
523+
"asset_created": "Asset created",
518524
"asset_description_updated": "Asset description has been updated",
519525
"asset_filename_is_offline": "Asset {filename} is offline",
520526
"asset_has_unassigned_faces": "Asset has unassigned faces",
@@ -697,6 +703,8 @@
697703
"change_password_form_password_mismatch": "Passwords do not match",
698704
"change_password_form_reenter_new_password": "Re-enter New Password",
699705
"change_pin_code": "Change PIN code",
706+
"change_trigger": "Change trigger",
707+
"change_trigger_prompt": "Are you sure you want to change the trigger? This will remove all existing actions and filters.",
700708
"change_your_password": "Change your password",
701709
"changed_visibility_successfully": "Changed visibility successfully",
702710
"charging": "Charging",
@@ -771,6 +779,7 @@
771779
"create_album": "Create album",
772780
"create_album_page_untitled": "Untitled",
773781
"create_api_key": "Create API key",
782+
"create_first_workflow": "Create first workflow",
774783
"create_library": "Create Library",
775784
"create_link": "Create link",
776785
"create_link_to_share": "Create link to share",
@@ -785,6 +794,7 @@
785794
"create_tag": "Create tag",
786795
"create_tag_description": "Create a new tag. For nested tags, please enter the full path of the tag including forward slashes.",
787796
"create_user": "Create user",
797+
"create_workflow": "Create workflow",
788798
"created": "Created",
789799
"created_at": "Created",
790800
"creating_linked_albums": "Creating linked albums...",
@@ -913,16 +923,19 @@
913923
"edit_tag": "Edit tag",
914924
"edit_title": "Edit Title",
915925
"edit_user": "Edit user",
926+
"edit_workflow": "Edit workflow",
916927
"editor": "Editor",
917928
"editor_close_without_save_prompt": "The changes will not be saved",
918929
"editor_close_without_save_title": "Close editor?",
919930
"editor_crop_tool_h2_aspect_ratios": "Aspect ratios",
920931
"editor_crop_tool_h2_rotation": "Rotation",
932+
"editor_mode": "Editor mode",
921933
"email": "Email",
922934
"email_notifications": "Email notifications",
923935
"empty_folder": "This folder is empty",
924936
"empty_trash": "Empty trash",
925937
"empty_trash_confirmation": "Are you sure you want to empty the trash? This will remove all the assets in trash permanently from Immich.\nYou cannot undo this action!",
938+
"disable": "Disable",
926939
"enable": "Enable",
927940
"enable_backup": "Enable Backup",
928941
"enable_biometric_auth_description": "Enter your PIN code to enable biometric authentication",
@@ -1156,6 +1169,7 @@
11561169
"hi_user": "Hi {name} ({email})",
11571170
"hide_all_people": "Hide all people",
11581171
"hide_gallery": "Hide gallery",
1172+
"hide_json": "Hide JSON",
11591173
"hide_named_person": "Hide person {name}",
11601174
"hide_password": "Hide password",
11611175
"hide_person": "Hide person",
@@ -1231,6 +1245,8 @@
12311245
"ios_debug_info_processing_ran_at": "Processing ran {dateTime}",
12321246
"items_count": "{count, plural, one {# item} other {# items}}",
12331247
"jobs": "Jobs",
1248+
"json_editor": "JSON editor",
1249+
"json_error": "JSON error",
12341250
"keep": "Keep",
12351251
"keep_all": "Keep All",
12361252
"keep_this_delete_others": "Keep this, delete others",
@@ -1399,11 +1415,13 @@
13991415
"monthly_title_text_date_format": "MMMM y",
14001416
"more": "More",
14011417
"move": "Move",
1418+
"move_down": "Move down",
14021419
"move_off_locked_folder": "Move out of locked folder",
14031420
"move_to": "Move to",
14041421
"move_to_lock_folder_action_prompt": "{count} added to the locked folder",
14051422
"move_to_locked_folder": "Move to locked folder",
14061423
"move_to_locked_folder_confirmation": "These photos and video will be removed from all albums, and only viewable from the locked folder",
1424+
"move_up": "Move up",
14071425
"moved_to_archive": "Moved {count, plural, one {# asset} other {# assets}} to archive",
14081426
"moved_to_library": "Moved {count, plural, one {# asset} other {# assets}} to library",
14091427
"moved_to_trash": "Moved to trash",
@@ -1413,6 +1431,7 @@
14131431
"my_albums": "My albums",
14141432
"name": "Name",
14151433
"name_or_nickname": "Name or nickname",
1434+
"name_required": "Name is required",
14161435
"navigate": "Navigate",
14171436
"navigate_to_time": "Navigate to Time",
14181437
"network_requirement_photos_upload": "Use cellular data to backup photos",
@@ -1437,6 +1456,7 @@
14371456
"next": "Next",
14381457
"next_memory": "Next memory",
14391458
"no": "No",
1459+
"no_actions_added": "No actions added yet",
14401460
"no_albums_message": "Create an album to organize your photos and videos",
14411461
"no_albums_with_name_yet": "It looks like you do not have any albums with this name yet.",
14421462
"no_albums_yet": "It looks like you do not have any albums yet.",
@@ -1446,11 +1466,13 @@
14461466
"no_cast_devices_found": "No cast devices found",
14471467
"no_checksum_local": "No checksum available - cannot fetch local assets",
14481468
"no_checksum_remote": "No checksum available - cannot fetch remote asset",
1469+
"no_configuration_needed": "No configuration needed",
14491470
"no_devices": "No authorized devices",
14501471
"no_duplicates_found": "No duplicates were found.",
14511472
"no_exif_info_available": "No exif info available",
14521473
"no_explore_results_message": "Upload more photos to explore your collection.",
14531474
"no_favorites_message": "Add favorites to quickly find your best pictures and videos",
1475+
"no_filters_added": "No filters added yet",
14541476
"no_libraries_message": "Create an external library to view your photos and videos",
14551477
"no_local_assets_found": "No local assets found with this checksum",
14561478
"no_location_set": "No location set",
@@ -1464,6 +1486,7 @@
14641486
"no_results_description": "Try a synonym or more general keyword",
14651487
"no_shared_albums_message": "Create an album to share photos and videos with people in your network",
14661488
"no_uploads_in_progress": "No uploads in progress",
1489+
"no_workflows_yet": "No workflows yet",
14671490
"not_allowed": "Not allowed",
14681491
"not_available": "N/A",
14691492
"not_in_any_album": "Not in any album",
@@ -1545,6 +1568,7 @@
15451568
"people": "People",
15461569
"people_edits_count": "Edited {count, plural, one {# person} other {# people}}",
15471570
"people_feature_description": "Browsing photos and videos grouped by people",
1571+
"people_selected": "{count, plural, one {# person selected} other {# people selected}}",
15481572
"people_sidebar_description": "Display a link to People in the sidebar",
15491573
"permanent_deletion_warning": "Permanent deletion warning",
15501574
"permanent_deletion_warning_setting_description": "Show a warning when permanently deleting assets",
@@ -1569,6 +1593,8 @@
15691593
"person_age_years": "{years, plural, other {# years}} old",
15701594
"person_birthdate": "Born on {date}",
15711595
"person_hidden": "{name}{hidden, select, true { (hidden)} other {}}",
1596+
"person_recognized": "Person recognized",
1597+
"person_selected": "Person selected",
15721598
"photo_shared_all_users": "Looks like you shared your photos with all users or you don't have any user to share with.",
15731599
"photos": "Photos",
15741600
"photos_and_videos": "Photos & Videos",
@@ -1821,23 +1847,19 @@
18211847
"select_album": "Select album",
18221848
"select_album_cover": "Select album cover",
18231849
"select_albums": "Select albums",
1824-
"album_selected": "Album selected",
1825-
"albums_selected": "{count, plural, one {# album selected} other {# albums selected}}",
1826-
"select_person": "Select person",
1827-
"select_people": "Select people",
1828-
"person_selected": "Person selected",
1829-
"people_selected": "{count, plural, one {# person selected} other {# people selected}}",
1830-
"select_count": "{count, plural, one {Select #} other {Select #}}",
18311850
"select_all": "Select all",
18321851
"select_all_duplicates": "Select all duplicates",
18331852
"select_all_in": "Select all in {group}",
18341853
"select_avatar_color": "Select avatar color",
1854+
"select_count": "{count, plural, one {Select #} other {Select #}}",
18351855
"select_face": "Select face",
18361856
"select_featured_photo": "Select featured photo",
18371857
"select_from_computer": "Select from computer",
18381858
"select_keep_all": "Select keep all",
18391859
"select_library_owner": "Select library owner",
18401860
"select_new_face": "Select new face",
1861+
"select_people": "Select people",
1862+
"select_person": "Select person",
18411863
"select_person_to_tag": "Select a person to tag",
18421864
"select_photos": "Select photos",
18431865
"select_trash_all": "Select trash all",
@@ -1967,6 +1989,7 @@
19671989
"show_hidden_people": "Show hidden people",
19681990
"show_in_timeline": "Show in timeline",
19691991
"show_in_timeline_setting_description": "Show photos and videos from this user in your timeline",
1992+
"show_json": "Show JSON",
19701993
"show_keyboard_shortcuts": "Show keyboard shortcuts",
19711994
"show_metadata": "Show metadata",
19721995
"show_or_hide_info": "Show or hide info",
@@ -2099,6 +2122,8 @@
20992122
"trash_page_select_assets_btn": "Select assets",
21002123
"trash_page_title": "Trash ({count})",
21012124
"trashed_items_will_be_permanently_deleted_after": "Trashed items will be permanently deleted after {days, plural, one {# day} other {# days}}.",
2125+
"trigger": "Trigger",
2126+
"trigger_type": "Trigger type",
21022127
"troubleshoot": "Troubleshoot",
21032128
"type": "Type",
21042129
"unable_to_change_pin_code": "Unable to change PIN code",
@@ -2129,7 +2154,9 @@
21292154
"unstack": "Un-stack",
21302155
"unstack_action_prompt": "{count} unstacked",
21312156
"unstacked_assets_count": "Un-stacked {count, plural, one {# asset} other {# assets}}",
2157+
"unsupported_field_type": "Unsupported field type",
21322158
"untagged": "Untagged",
2159+
"untitled_workflow": "Untitled workflow",
21332160
"up_next": "Up next",
21342161
"update_location_action_prompt": "Update the location of {count} selected assets with:",
21352162
"updated_at": "Updated",
@@ -2175,6 +2202,7 @@
21752202
"utilities": "Utilities",
21762203
"validate": "Validate",
21772204
"validate_endpoint_error": "Please enter a valid URL",
2205+
"validation_error": "Validation error",
21782206
"variables": "Variables",
21792207
"version": "Version",
21802208
"version_announcement_closing": "Your friend, Alex",
@@ -2205,6 +2233,7 @@
22052233
"viewer_stack_use_as_main_asset": "Use as Main Asset",
22062234
"viewer_unstack": "Un-Stack",
22072235
"visibility_changed": "Visibility changed for {count, plural, one {# person} other {# people}}",
2236+
"visual_builder": "Visual builder",
22082237
"waiting": "Waiting",
22092238
"warning": "Warning",
22102239
"week": "Week",
@@ -2215,6 +2244,7 @@
22152244
"workflow_deleted": "Workflow deleted",
22162245
"workflow_json": "Workflow JSON",
22172246
"workflow_json_help": "Edit the workflow configuration in JSON format. Changes will sync to the visual builder.",
2247+
"workflow_navigation_prompt": "Are you sure you want to leave without saving your changes?",
22182248
"workflow_updated": "Workflow updated",
22192249
"workflows_help_text": "Workflows automate actions on your assets based on triggers and filters.",
22202250
"wrong_pin_code": "Wrong PIN code",
@@ -2224,30 +2254,5 @@
22242254
"you_dont_have_any_shared_links": "You don't have any shared links",
22252255
"your_wifi_name": "Your Wi-Fi name",
22262256
"zoom_image": "Zoom Image",
2227-
"zoom_to_bounds": "Zoom to bounds",
2228-
"add_action": "Add action",
2229-
"add_filter": "Add filter",
2230-
"array_field_not_fully_supported": "Array fields require manual JSON editing",
2231-
"asset_created": "Asset created",
2232-
"create_first_workflow": "Create first workflow",
2233-
"create_workflow": "Create workflow",
2234-
"edit_workflow": "Edit workflow",
2235-
"editor_mode": "Editor mode",
2236-
"hide_json": "Hide JSON",
2237-
"json_editor": "JSON editor",
2238-
"json_error": "JSON error",
2239-
"move_down": "Move down",
2240-
"move_up": "Move up",
2241-
"name_required": "Name is required",
2242-
"no_actions_added": "No actions added yet",
2243-
"no_configuration_needed": "No configuration needed",
2244-
"no_filters_added": "No filters added yet",
2245-
"no_workflows_yet": "No workflows yet",
2246-
"person_recognized": "Person recognized",
2247-
"show_json": "Show JSON",
2248-
"trigger_type": "Trigger type",
2249-
"unsupported_field_type": "Unsupported field type",
2250-
"untitled_workflow": "Untitled workflow",
2251-
"validation_error": "Validation error",
2252-
"visual_builder": "Visual builder"
2257+
"zoom_to_bounds": "Zoom to bounds"
22532258
}

mobile/openapi/lib/model/workflow_update_dto.dart

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

open-api/immich-openapi-specs.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22985,9 +22985,6 @@
2298522985
]
2298622986
}
2298722987
},
22988-
"required": [
22989-
"triggerType"
22990-
],
2299122988
"type": "object"
2299222989
}
2299322990
}

open-api/typescript-sdk/src/fetch-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ export type WorkflowUpdateDto = {
17631763
enabled?: boolean;
17641764
filters?: WorkflowFilterItemDto[];
17651765
name?: string;
1766-
triggerType: PluginTriggerType;
1766+
triggerType?: PluginTriggerType;
17671767
};
17681768
/**
17691769
* List all activities

server/src/dtos/workflow.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export class WorkflowCreateDto {
4848
}
4949

5050
export class WorkflowUpdateDto {
51-
@ValidateEnum({ enum: PluginTriggerType, name: 'PluginTriggerType' })
52-
triggerType!: PluginTriggerType;
51+
@ValidateEnum({ enum: PluginTriggerType, name: 'PluginTriggerType', optional: true })
52+
triggerType?: PluginTriggerType;
5353

5454
@IsString()
5555
@IsNotEmpty()

server/src/services/workflow.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class WorkflowService extends BaseService {
5656
}
5757

5858
const workflow = await this.findOrFail(id);
59-
const trigger = this.getTriggerOrFail(workflow.triggerType);
59+
const trigger = this.getTriggerOrFail(dto.triggerType ?? workflow.triggerType);
6060

6161
const { filters, actions, ...workflowUpdate } = dto;
6262
const filterInserts = filters && (await this.validateAndMapFilters(filters, trigger.context));

0 commit comments

Comments
 (0)