diff --git a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx
index 88d292522..e6a8d3c67 100644
--- a/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx
+++ b/apps/desktop/src/renderer/src/modules/action/target-action-list.tsx
@@ -129,7 +129,7 @@ export const TargetActionList = ({ index }: { index: number }) => {
},
{
title: t("actions.action_card.silence"),
- icon: ,
+ icon: ,
enabled: !!silence,
onInit: (data) => {
data.result.silence = true
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index e8e2a5737..61fc3e41a 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -137,7 +137,8 @@
"eas-cli": "16.3.1",
"expo-drizzle-studio-plugin": "0.1.2",
"nbump": "2.0.9",
- "postcss": "8.5.3"
+ "postcss": "8.5.3",
+ "sf-symbols-typescript": "2.1.0"
},
"appName": "Folo",
"expo": {
diff --git a/apps/mobile/src/components/ui/grouped/GroupedList.tsx b/apps/mobile/src/components/ui/grouped/GroupedList.tsx
index 099dc417a..e7da097c7 100644
--- a/apps/mobile/src/components/ui/grouped/GroupedList.tsx
+++ b/apps/mobile/src/components/ui/grouped/GroupedList.tsx
@@ -1,10 +1,12 @@
import { cn } from "@follow/utils"
+import { SymbolView } from "expo-symbols"
import type { FC, PropsWithChildren } from "react"
import * as React from "react"
import { Fragment } from "react"
import type { PressableProps, ViewProps } from "react-native"
import { Pressable, StyleSheet, Text, View } from "react-native"
import Animated, { FadeIn, FadeOut } from "react-native-reanimated"
+import type { SFSymbol } from "sf-symbols-typescript"
import { CheckFilledIcon } from "@/src/icons/check_filled"
import { MingcuteRightLine } from "@/src/icons/mingcute_right_line"
@@ -195,12 +197,16 @@ export const GroupedInsetListCell: FC<
label: string
description?: string
children?: React.ReactNode
+ icon?: SFSymbol
} & BaseCellClassNames
-> = ({ label, description, children, leftClassName, rightClassName }) => {
+> = ({ label, description, children, leftClassName, rightClassName, icon }) => {
return (
- {label}
+
+ {!!icon && }
+ {label}
+
{!!description && (
{description}
)}
@@ -271,7 +277,8 @@ export const GroupedInsetListActionCell: FC<{
description?: string
onPress?: () => void
disabled?: boolean
-}> = ({ label, description, onPress, disabled }) => {
+ icon?: SFSymbol
+}> = ({ label, description, onPress, disabled, icon }) => {
const rightIconColor = useColor("tertiaryLabel")
return (
- {label}
+
+ {!!icon && }
+ {label}
+
{!!description && (
{description}
)}
diff --git a/apps/mobile/src/icons/bell_ringing_cute_re.tsx b/apps/mobile/src/icons/bell_ringing_cute_re.tsx
new file mode 100644
index 000000000..2cf23cf22
--- /dev/null
+++ b/apps/mobile/src/icons/bell_ringing_cute_re.tsx
@@ -0,0 +1,24 @@
+import * as React from "react"
+import Svg, { Path } from "react-native-svg"
+
+interface BellRingingCuteReIconProps {
+ width?: number
+ height?: number
+ color?: string
+}
+
+export const BellRingingCuteReIcon = ({
+ width = 24,
+ height = 24,
+ color = "#10161F",
+}: BellRingingCuteReIconProps) => {
+ return (
+
+ )
+}
diff --git a/apps/mobile/src/icons/ghost_cute_re.tsx b/apps/mobile/src/icons/ghost_cute_re.tsx
new file mode 100644
index 000000000..6bb2d459a
--- /dev/null
+++ b/apps/mobile/src/icons/ghost_cute_re.tsx
@@ -0,0 +1,24 @@
+import * as React from "react"
+import Svg, { Path } from "react-native-svg"
+
+interface GhostCuteReIconProps {
+ width?: number
+ height?: number
+ color?: string
+}
+
+export const GhostCuteReIcon = ({
+ width = 24,
+ height = 24,
+ color = "#10161F",
+}: GhostCuteReIconProps) => {
+ return (
+
+ )
+}
diff --git a/apps/mobile/src/icons/quill_pen_cute_re.tsx b/apps/mobile/src/icons/quill_pen_cute_re.tsx
new file mode 100644
index 000000000..aa5b8060c
--- /dev/null
+++ b/apps/mobile/src/icons/quill_pen_cute_re.tsx
@@ -0,0 +1,24 @@
+import * as React from "react"
+import Svg, { Path } from "react-native-svg"
+
+interface QuillPenCuteReIconProps {
+ width?: number
+ height?: number
+ color?: string
+}
+
+export const QuillPenCuteReIcon = ({
+ width = 24,
+ height = 24,
+ color = "#10161F",
+}: QuillPenCuteReIconProps) => {
+ return (
+
+ )
+}
diff --git a/apps/mobile/src/icons/translate_2_ai_cute_re.tsx b/apps/mobile/src/icons/translate_2_ai_cute_re.tsx
new file mode 100644
index 000000000..8df834904
--- /dev/null
+++ b/apps/mobile/src/icons/translate_2_ai_cute_re.tsx
@@ -0,0 +1,24 @@
+import * as React from "react"
+import Svg, { Path } from "react-native-svg"
+
+interface Translate2AiCuteReIconProps {
+ width?: number
+ height?: number
+ color?: string
+}
+
+export const Translate2AiCuteReIcon = ({
+ width = 24,
+ height = 24,
+ color = "#10161F",
+}: Translate2AiCuteReIconProps) => {
+ return (
+
+ )
+}
diff --git a/apps/mobile/src/icons/webhook_cute_re.tsx b/apps/mobile/src/icons/webhook_cute_re.tsx
new file mode 100644
index 000000000..b89b6d1fb
--- /dev/null
+++ b/apps/mobile/src/icons/webhook_cute_re.tsx
@@ -0,0 +1,24 @@
+import * as React from "react"
+import Svg, { Path } from "react-native-svg"
+
+interface WebhookCuteReIconProps {
+ width?: number
+ height?: number
+ color?: string
+}
+
+export const WebhookCuteReIcon = ({
+ width = 24,
+ height = 24,
+ color = "#10161F",
+}: WebhookCuteReIconProps) => {
+ return (
+
+ )
+}
diff --git a/apps/mobile/src/modules/settings/actions/constant.ts b/apps/mobile/src/modules/settings/actions/constant.ts
index e630cb7a4..a3e2f3322 100644
--- a/apps/mobile/src/modules/settings/actions/constant.ts
+++ b/apps/mobile/src/modules/settings/actions/constant.ts
@@ -1,9 +1,10 @@
import type { ParseKeys } from "i18next"
+import type { SFSymbol } from "sf-symbols-typescript"
import type { SupportedLanguages } from "@/src/lib/language"
import type { Navigation } from "@/src/lib/navigation/Navigation"
import { actionActions } from "@/src/store/action/store"
-import type { ActionId, ActionRule } from "@/src/store/action/types"
+import type { ActionId } from "@/src/store/action/types"
import { EditRewriteRulesScreen } from "../routes/EditRewriteRules"
import { EditWebhooksScreen } from "../routes/EditWebhooks"
@@ -104,39 +105,47 @@ export const availableActionList: Array<{
label: Extract, `actions.action_card.${string}`>
onEnable?: (index: number) => void
onNavigate?: (router: Navigation, index: number) => void
- component?: React.FC<{ rule: ActionRule }>
+ icon: SFSymbol
}> = [
{
value: "summary",
label: "actions.action_card.generate_summary",
+ icon: "sparkles",
},
{
value: "translation",
label: "actions.action_card.translate_into",
+ icon: "translate",
},
{
value: "readability",
label: "actions.action_card.enable_readability",
+ icon: "text.document",
},
{
value: "sourceContent",
label: "actions.action_card.source_content",
+ icon: "macwindow",
},
{
value: "newEntryNotification",
label: "actions.action_card.new_entry_notification",
+ icon: "bell.and.waves.left.and.right",
},
{
value: "silence",
label: "actions.action_card.silence",
+ icon: "speaker.slash",
},
{
value: "block",
label: "actions.action_card.block",
+ icon: "xmark.circle",
},
{
value: "rewriteRules",
label: "actions.action_card.rewrite_rules",
+ icon: "pencil.and.outline",
onEnable: (index: number) => {
actionActions.patchRule(index, {
result: {
@@ -156,6 +165,7 @@ export const availableActionList: Array<{
{
value: "webhooks",
label: "actions.action_card.webhooks",
+ icon: "arrow.up.right.square",
onEnable: (index) => {
actionActions.patchRule(index, { result: { webhooks: [""] } })
},
diff --git a/apps/mobile/src/modules/settings/routes/EditRule.tsx b/apps/mobile/src/modules/settings/routes/EditRule.tsx
index 500c9ed05..41c9309da 100644
--- a/apps/mobile/src/modules/settings/routes/EditRule.tsx
+++ b/apps/mobile/src/modules/settings/routes/EditRule.tsx
@@ -255,20 +255,22 @@ const ActionSection: React.FC<{ rule: ActionRule }> = ({ rule }) => {
},
]}
>
- {action.component ? (
-
- ) : action.onNavigate ? (
- action.onNavigate?.(navigation, rule.index)}
- />
- ) : (
-
- )}
+
+ {action.onNavigate ? (
+ action.onNavigate?.(navigation, rule.index)}
+ />
+ ) : (
+
+ )}
+
))}
{notEnabledActions.length > 0 && (
@@ -288,6 +290,11 @@ const ActionSection: React.FC<{ rule: ActionRule }> = ({ rule }) => {
}
}}
>
+
{t(action.label)}
))}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 900de4bd5..b90f634a5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1112,6 +1112,9 @@ importers:
postcss:
specifier: 8.5.3
version: 8.5.3
+ sf-symbols-typescript:
+ specifier: 2.1.0
+ version: 2.1.0
apps/mobile/web-app: {}