Skip to content

Commit 710622a

Browse files
authored
feat: add filter video length action (#3960)
1 parent b6ec2a0 commit 710622a

File tree

6 files changed

+10
-0
lines changed

6 files changed

+10
-0
lines changed

locales/settings/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"actions.action_card.empty.start": "Start here!",
1818
"actions.action_card.empty.title": "No Actions Yet",
1919
"actions.action_card.enable_readability": "Enable Readability",
20+
"actions.action_card.feed_options.entry_attachments_duration": "Entry Video Length",
2021
"actions.action_card.feed_options.entry_author": "Entry Author",
2122
"actions.action_card.feed_options.entry_content": "Entry Content",
2223
"actions.action_card.feed_options.entry_media_length": "Entry Media Length",

locales/settings/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"actions.action_card.block_rules": "ブロックルール",
1515
"actions.action_card.custom_filters": "カスタムフィルター",
1616
"actions.action_card.enable_readability": "読みやすさを有効化",
17+
"actions.action_card.feed_options.entry_attachments_duration": "エントリー動画の長さ",
1718
"actions.action_card.feed_options.entry_author": "エントリー作成者",
1819
"actions.action_card.feed_options.entry_content": "エントリーコンテンツ",
1920
"actions.action_card.feed_options.entry_media_length": "エントリーメディアの長さ",

locales/settings/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"actions.action_card.block_rules": "阻止规则",
1515
"actions.action_card.custom_filters": "指定条件",
1616
"actions.action_card.enable_readability": "启用阅读模式",
17+
"actions.action_card.feed_options.entry_attachments_duration": "条目视频时长",
1718
"actions.action_card.feed_options.entry_author": "条目作者",
1819
"actions.action_card.feed_options.entry_content": "条目内容",
1920
"actions.action_card.feed_options.entry_media_length": "条目媒体个数",

locales/settings/zh-TW.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"actions.action_card.block_rules": "封鎖規則",
1515
"actions.action_card.custom_filters": "自訂過濾條件",
1616
"actions.action_card.enable_readability": "啟用可讀模式",
17+
"actions.action_card.feed_options.entry_attachments_duration": "條目視頻時長",
1718
"actions.action_card.feed_options.entry_author": "條目作者",
1819
"actions.action_card.feed_options.entry_content": "條目內容",
1920
"actions.action_card.feed_options.entry_media_length": "條目媒體數量",

packages/internal/models/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export type ActionFeedField =
123123
| "entry_url"
124124
| "entry_author"
125125
| "entry_media_length"
126+
| "entry_attachments_duration"
126127

127128
export type MediaModel = Exclude<
128129
ExtractBizResponse<typeof _apiClient.entries.$get>["data"],

packages/internal/store/src/action/constant.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export const filterFieldOptions: Array<{
5656
value: "entry_media_length",
5757
type: "number",
5858
},
59+
{
60+
label: "actions.action_card.feed_options.entry_attachments_duration",
61+
value: "entry_attachments_duration",
62+
type: "number",
63+
},
5964
]
6065

6166
export const filterOperatorOptions: Array<{

0 commit comments

Comments
 (0)