- {condition.flatMap((orConditions, orConditionIdx) => {
- return orConditions.map((condition, conditionIdx) => {
- const actionConditionIndex = {
- ruleIndex: index,
- groupIndex: orConditionIdx,
- conditionIndex: conditionIdx,
- }
+
+ {condition.map((orConditions, orConditionIdx) => {
+ return (
+
+
+
+ {orConditions.map((condition, conditionIdx) => {
+ const actionConditionIndex = {
+ ruleIndex: index,
+ groupIndex: orConditionIdx,
+ conditionIndex: conditionIdx,
+ }
- const change = (key: string, value: string | number) => {
- actionActions.pathCondition(actionConditionIndex, {
- [key]: value,
- })
- }
- const type =
- filterFieldOptions.find((option) => option.value === condition.field)?.type ||
- "text"
- return (
-
- {conditionIdx === 0 && orConditionIdx !== 0 && (
-
-
- {t("actions.action_card.or")}
-
-
- )}
-
-
-
{t("actions.action_card.field")}
+ const change = (key: string, value: string | number) => {
+ actionActions.pathCondition(actionConditionIndex, {
+ [key]: value,
+ })
+ }
+ const type =
+ filterFieldOptions.find((option) => option.value === condition.field)?.type ||
+ "text"
+ return (
+
+
+
+
{
...option,
label: t(option.label),
}))}
- triggerClassName="max-sm:w-fit h-8"
+ triggerClassName="h-8"
/>
-
-
- {t("actions.action_card.operator")}
change("operator", value)}
/>
-
-
- {t("actions.action_card.value")}
change("value", value)}
disabled={disabled}
/>
-
-
-
-
-
-
- {conditionIdx !== orConditions.length - 1 && (
-
-
-
+ {conditionIdx !== orConditions.length - 1 && (
+
+
{t("actions.action_card.and")}
-
-
-
- )}
-
- )
- })
- })}
-
-
+ )}
+
+ )
+ })}
+
+
+ {orConditionIdx !== condition.length - 1 && (
+
+
+
+ {t("actions.action_card.or")}
+
+
+ )}
+
+ )
+ })}
@@ -204,7 +188,7 @@ const OperationSelect = ({
value={value}
onValueChange={(value) => onValueChange?.(value as ActionOperation)}
items={options}
- triggerClassName="h-8 max-sm:w-fit"
+ triggerClassName="h-8"
/>
)
}
@@ -220,8 +204,6 @@ const ValueInput = ({
onChange: (value: string | number) => void
disabled?: boolean
}) => {
- const { t } = useTranslation()
-
switch (type) {
case "view": {
return (
@@ -230,7 +212,7 @@ const ValueInput = ({
onValueChange={(value) => onChange(value)}
value={value as string | undefined}
>
-
+
)
@@ -245,23 +227,30 @@ const ValueInput = ({
onValueChange={(value) => onChange(value)}
value={value as string | undefined}
>
-
+
-
-
- {t("words.starred")}
-
-
+ Collected
+ Read
)
}
+ case "number": {
+ return (
+
onChange(e.target.value)}
+ />
+ )
+ }
default: {
return (
onChange(e.target.value)}
/>
@@ -270,20 +259,8 @@ const ValueInput = ({
}
}
-const CommonSelectTrigger = ({ className }: { className?: string }) => (
-
+const CommonSelectTrigger = () => (
+
)
-
-const GridHeader = () => {
- const { t } = useTranslation("settings")
- return (
-
-
{t("actions.action_card.field")}
-
{t("actions.action_card.operator")}
-
{t("actions.action_card.value")}
-
-
- )
-}
diff --git a/apps/desktop/layer/renderer/src/modules/settings/tabs/feeds.tsx b/apps/desktop/layer/renderer/src/modules/settings/tabs/feeds.tsx
index d3a09d430..f17278ca0 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/tabs/feeds.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/tabs/feeds.tsx
@@ -247,7 +247,7 @@ const SubscriptionFeedsSection = () => {
onClick={() => handleSort("date")}
type="button"
>
- Date
+ Subscribed Date
{sortField === "date" && (
{sortDirection === "asc" ? "↑" : "↓"}
)}
@@ -295,21 +295,6 @@ const SubscriptionFeedsSection = () => {
className="sticky bottom-4 flex justify-center"
>
- {/*
-
-
-
-
-
-
-
- */}
@@ -495,12 +480,12 @@ const FeedListItem = memo(
+
{views[subscription.view]!.icon}
{tCommon(views[subscription.view]!.name)}
{!!subscription.createdAt && (
-
+
)}
diff --git a/packages/internal/store/src/action/constant.ts b/packages/internal/store/src/action/constant.ts
index e5ba99f07..b66c1d624 100644
--- a/packages/internal/store/src/action/constant.ts
+++ b/packages/internal/store/src/action/constant.ts
@@ -107,6 +107,8 @@ export type ActionAction = {
icon: SFSymbol
iconClassname: string
settingsPath?: string
+
+ prefixElement?: React.ReactNode
}
export const availableActionMap: Record
= {
@@ -115,14 +117,12 @@ export const availableActionMap: Record = {
label: "actions.action_card.generate_summary",
icon: "sparkles",
iconClassname: "i-mgc-ai-cute-re",
- settingsPath: "general",
},
translation: {
value: "translation",
label: "actions.action_card.translate_into",
icon: "translate",
iconClassname: "i-mgc-translate-2-ai-cute-re",
- settingsPath: "general",
},
readability: {
value: "readability",