From 710622a907461d46ac1f17474e9ebabe528fe6a2 Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Thu, 19 Jun 2025 23:54:16 +0800 Subject: [PATCH] feat: add filter video length action (#3960) --- locales/settings/en.json | 1 + locales/settings/ja.json | 1 + locales/settings/zh-CN.json | 1 + locales/settings/zh-TW.json | 1 + packages/internal/models/src/types.ts | 1 + packages/internal/store/src/action/constant.ts | 5 +++++ 6 files changed, 10 insertions(+) diff --git a/locales/settings/en.json b/locales/settings/en.json index 67548d45e..cf1ed1911 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -17,6 +17,7 @@ "actions.action_card.empty.start": "Start here!", "actions.action_card.empty.title": "No Actions Yet", "actions.action_card.enable_readability": "Enable Readability", + "actions.action_card.feed_options.entry_attachments_duration": "Entry Video Length", "actions.action_card.feed_options.entry_author": "Entry Author", "actions.action_card.feed_options.entry_content": "Entry Content", "actions.action_card.feed_options.entry_media_length": "Entry Media Length", diff --git a/locales/settings/ja.json b/locales/settings/ja.json index dc1185df7..8cc8879ba 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -14,6 +14,7 @@ "actions.action_card.block_rules": "ブロックルール", "actions.action_card.custom_filters": "カスタムフィルター", "actions.action_card.enable_readability": "読みやすさを有効化", + "actions.action_card.feed_options.entry_attachments_duration": "エントリー動画の長さ", "actions.action_card.feed_options.entry_author": "エントリー作成者", "actions.action_card.feed_options.entry_content": "エントリーコンテンツ", "actions.action_card.feed_options.entry_media_length": "エントリーメディアの長さ", diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 84fff820f..d5c73c37a 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -14,6 +14,7 @@ "actions.action_card.block_rules": "阻止规则", "actions.action_card.custom_filters": "指定条件", "actions.action_card.enable_readability": "启用阅读模式", + "actions.action_card.feed_options.entry_attachments_duration": "条目视频时长", "actions.action_card.feed_options.entry_author": "条目作者", "actions.action_card.feed_options.entry_content": "条目内容", "actions.action_card.feed_options.entry_media_length": "条目媒体个数", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index a55dab070..89e8bb111 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -14,6 +14,7 @@ "actions.action_card.block_rules": "封鎖規則", "actions.action_card.custom_filters": "自訂過濾條件", "actions.action_card.enable_readability": "啟用可讀模式", + "actions.action_card.feed_options.entry_attachments_duration": "條目視頻時長", "actions.action_card.feed_options.entry_author": "條目作者", "actions.action_card.feed_options.entry_content": "條目內容", "actions.action_card.feed_options.entry_media_length": "條目媒體數量", diff --git a/packages/internal/models/src/types.ts b/packages/internal/models/src/types.ts index b528d3616..dfa6c8871 100644 --- a/packages/internal/models/src/types.ts +++ b/packages/internal/models/src/types.ts @@ -123,6 +123,7 @@ export type ActionFeedField = | "entry_url" | "entry_author" | "entry_media_length" + | "entry_attachments_duration" export type MediaModel = Exclude< ExtractBizResponse["data"], diff --git a/packages/internal/store/src/action/constant.ts b/packages/internal/store/src/action/constant.ts index b66c1d624..1c5bde6e6 100644 --- a/packages/internal/store/src/action/constant.ts +++ b/packages/internal/store/src/action/constant.ts @@ -56,6 +56,11 @@ export const filterFieldOptions: Array<{ value: "entry_media_length", type: "number", }, + { + label: "actions.action_card.feed_options.entry_attachments_duration", + value: "entry_attachments_duration", + type: "number", + }, ] export const filterOperatorOptions: Array<{