- {/* Control buttons */}
-
- {/* Skip Back 10s */}
-
+ {/* Inner glow layer */}
+
- {/* Play/Pause Button */}
-
-
- {/* Skip Forward 10s */}
-
-
-
- {/* Progress Bar Container */}
-
-
-
+ {/* Control buttons and progress bar */}
+
+ {/* Control buttons */}
+
+ {/* Skip Back 10s */}
+
+
+ {/* Play/Pause Button */}
+
+
+ {/* Skip Forward 10s */}
+
+
+
+ {/* Progress Bar Container */}
+
+ {displayHasValidDuration ? (
+
{
+ if (isCurrentAudio) {
+ setIsDragging(true)
+ setDragValue(displayCurrentTime)
+ }
+ }}
+ onValueChange={handleSliderValueChange}
+ onValueCommit={handleSliderValueCommit}
+ >
+
+
+
+
+
+
+ ) : (
+
+ )}
+
+
+ {/* Time Display and Download */}
+
+
+ {currentTimeDisplay}
+ /
+ {durationDisplay}
-
-
- {/* Time Display and Download */}
-
-
- {currentTimeDisplay}
- /
- {durationDisplay}
-
+ {/* Divider */}
+
- {/* Download Button */}
-
+ {/* Download Button */}
+
+
From f207cc328d687e4ce5b4e45a786042fbde8fde3b Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Wed, 19 Nov 2025 21:54:29 +0800
Subject: [PATCH 12/31] feat: secure image proxy in plan
---
.../src/components/ui/media/Media.tsx | 2 +-
.../layer/renderer/src/lib/img-proxy.ts | 16 ++++++++++++-
.../entry-column/Items/media-gallery.tsx | 2 +-
.../renderer/src/modules/feed/feed-icon.tsx | 3 ++-
apps/mobile/src/components/ui/image/utils.ts | 3 ++-
apps/mobile/src/lib/img-proxy.ts | 23 +++++++++++++++++++
locales/settings/en.json | 1 +
locales/settings/ja.json | 1 +
locales/settings/zh-CN.json | 1 +
locales/settings/zh-TW.json | 1 +
packages/internal/utils/src/img-proxy.ts | 22 ++++++++++++++++--
11 files changed, 68 insertions(+), 7 deletions(-)
create mode 100644 apps/mobile/src/lib/img-proxy.ts
diff --git a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
index c2f54629d..d93c8cfdd 100644
--- a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
+++ b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
@@ -1,5 +1,4 @@
import { nextFrame } from "@follow/utils/dom"
-import { getImageProxyUrl } from "@follow/utils/img-proxy"
import { cn } from "@follow/utils/utils"
import { ErrorBoundary } from "@sentry/react"
import { useForceUpdate } from "motion/react"
@@ -9,6 +8,7 @@ import { memo, use, useEffect, useMemo, useRef, useState } from "react"
import { Blurhash, BlurhashCanvas } from "react-blurhash"
import { useEventCallback } from "usehooks-ts"
+import { getImageProxyUrl } from "~/lib/img-proxy"
import { saveImageDimensionsToDb } from "~/store/image/db"
import { useMediaContainerWidth, usePreviewMedia } from "./hooks"
diff --git a/apps/desktop/layer/renderer/src/lib/img-proxy.ts b/apps/desktop/layer/renderer/src/lib/img-proxy.ts
index b186c51d0..195f657d7 100644
--- a/apps/desktop/layer/renderer/src/lib/img-proxy.ts
+++ b/apps/desktop/layer/renderer/src/lib/img-proxy.ts
@@ -1,9 +1,23 @@
import { WEB_BUILD } from "@follow/shared/constants"
-import { replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils } from "@follow/utils/img-proxy"
+import { role as getUserRole } from "@follow/store/user/getters"
+import {
+ getImageProxyUrl as getImageProxyUrlUtils,
+ replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils,
+} from "@follow/utils/img-proxy"
export const replaceImgUrlIfNeed = (url?: string) => {
return replaceImgUrlIfNeedUtils({
url,
inBrowser: WEB_BUILD,
+ userRole: getUserRole(),
+ })
+}
+
+export const getImageProxyUrl = (
+ params: Omit
[0], "userRole">,
+) => {
+ return getImageProxyUrlUtils({
+ ...params,
+ userRole: getUserRole(),
})
}
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
index a72b1a77b..319952462 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
@@ -1,10 +1,10 @@
import { useEntry } from "@follow/store/entry/hooks"
-import { getImageProxyUrl } from "@follow/utils/img-proxy"
import { cn } from "@follow/utils/utils"
import { useMemo } from "react"
import { usePreviewMedia } from "~/components/ui/media/hooks"
import { Media } from "~/components/ui/media/Media"
+import { getImageProxyUrl } from "~/lib/img-proxy"
import { jotaiStore } from "~/lib/jotai"
import { socialMediaContentWidthAtom } from "../atoms/social-media-content-width"
diff --git a/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx b/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
index fd62bc16b..d865bea80 100644
--- a/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
+++ b/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
@@ -2,13 +2,14 @@
import { PlatformIcon } from "@follow/components/ui/platform-icon/index.jsx"
import type { FeedModel } from "@follow/store/feed/types"
import { getBackgroundGradient } from "@follow/utils/color"
-import { getImageProxyUrl } from "@follow/utils/img-proxy"
import { cn, getUrlIcon } from "@follow/utils/utils"
import * as AvatarPrimitive from "@radix-ui/react-avatar"
import { m } from "motion/react"
import type { ReactNode } from "react"
import { useMemo } from "react"
+import { getImageProxyUrl } from "~/lib/img-proxy"
+
const { Avatar, AvatarFallback, AvatarImage } = AvatarPrimitive
// Size-responsive border radius utility function
diff --git a/apps/mobile/src/components/ui/image/utils.ts b/apps/mobile/src/components/ui/image/utils.ts
index 1f10bb744..4631a7da1 100644
--- a/apps/mobile/src/components/ui/image/utils.ts
+++ b/apps/mobile/src/components/ui/image/utils.ts
@@ -1,5 +1,5 @@
import { createBuildSafeHeaders } from "@follow/utils/headers"
-import { getImageProxyUrl, IMAGE_PROXY_URL } from "@follow/utils/img-proxy"
+import { IMAGE_PROXY_URL } from "@follow/utils/img-proxy"
import ImageEditor from "@react-native-community/image-editor"
import * as FileSystem from "expo-file-system"
import type { ImageProps, ImageSource } from "expo-image"
@@ -8,6 +8,7 @@ import * as Sharing from "expo-sharing"
import { useCallback } from "react"
import { Image } from "react-native"
+import { getImageProxyUrl } from "@/src/lib/img-proxy"
import { isAndroid, isNative } from "@/src/lib/platform"
import { proxyEnv } from "@/src/lib/proxy-env"
import { toast } from "@/src/lib/toast"
diff --git a/apps/mobile/src/lib/img-proxy.ts b/apps/mobile/src/lib/img-proxy.ts
new file mode 100644
index 000000000..3f97566ba
--- /dev/null
+++ b/apps/mobile/src/lib/img-proxy.ts
@@ -0,0 +1,23 @@
+import { role as getUserRole } from "@follow/store/user/getters"
+import {
+ getImageProxyUrl as getImageProxyUrlUtils,
+ replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils,
+} from "@follow/utils/img-proxy"
+
+export const getImageProxyUrl = (
+ params: Omit[0], "userRole">,
+) => {
+ return getImageProxyUrlUtils({
+ ...params,
+ userRole: getUserRole(),
+ })
+}
+
+export const replaceImgUrlIfNeed = (
+ params: Omit[0], "userRole">,
+) => {
+ return replaceImgUrlIfNeedUtils({
+ ...params,
+ userRole: getUserRole(),
+ })
+}
diff --git a/locales/settings/en.json b/locales/settings/en.json
index e502bea10..68a5546d2 100644
--- a/locales/settings/en.json
+++ b/locales/settings/en.json
@@ -583,6 +583,7 @@
"plan.features.MAX_SUBSCRIPTIONS": "Feed Subscriptions",
"plan.features.PRIORITY_SUPPORT": "Priority Support",
"plan.features.PRIVATE_SUBSCRIPTION": "Private Subscriptions",
+ "plan.features.SECURE_IMAGE_PROXY": "Secure Image Proxy",
"privacy.privacy": "Privacy",
"privacy.terms": "Terms",
"profile.avatar.cropInstructions": "Drag the crop area to adjust your avatar",
diff --git a/locales/settings/ja.json b/locales/settings/ja.json
index e3f8d6050..869653624 100644
--- a/locales/settings/ja.json
+++ b/locales/settings/ja.json
@@ -578,6 +578,7 @@
"plan.features.MAX_SUBSCRIPTIONS": "フィードサブスクリプション",
"plan.features.PRIORITY_SUPPORT": "優先サポート",
"plan.features.PRIVATE_SUBSCRIPTION": "プライベートサブスクリプション",
+ "plan.features.SECURE_IMAGE_PROXY": "セキュア画像プロキシ",
"privacy.privacy": "プライバシー",
"privacy.terms": "利用規約",
"profile.avatar.cropInstructions": "ドラッグしてトリミングエリアを調整します",
diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json
index 10f3f2d54..c5dab244a 100644
--- a/locales/settings/zh-CN.json
+++ b/locales/settings/zh-CN.json
@@ -577,6 +577,7 @@
"plan.features.MAX_SUBSCRIPTIONS": "订阅源数量",
"plan.features.PRIORITY_SUPPORT": "优先支持",
"plan.features.PRIVATE_SUBSCRIPTION": "私有订阅",
+ "plan.features.SECURE_IMAGE_PROXY": "安全图片代理",
"privacy.privacy": "隐私政策",
"privacy.terms": "服务条款",
"profile.avatar.cropInstructions": "拖动裁剪区域以调整头像",
diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json
index 2e24b705c..42be8ae47 100644
--- a/locales/settings/zh-TW.json
+++ b/locales/settings/zh-TW.json
@@ -583,6 +583,7 @@
"plan.features.MAX_SUBSCRIPTIONS": "訂閱源數量",
"plan.features.PRIORITY_SUPPORT": "優先支援",
"plan.features.PRIVATE_SUBSCRIPTION": "私有訂閱",
+ "plan.features.SECURE_IMAGE_PROXY": "安全圖片代理",
"privacy.privacy": "隱私政策",
"privacy.terms": "服務條款",
"profile.avatar.cropInstructions": "拖曳裁切區域以調整你的頭像",
diff --git a/packages/internal/utils/src/img-proxy.ts b/packages/internal/utils/src/img-proxy.ts
index 62494173d..ac4c1fb0e 100644
--- a/packages/internal/utils/src/img-proxy.ts
+++ b/packages/internal/utils/src/img-proxy.ts
@@ -1,5 +1,10 @@
export const IMAGE_PROXY_URL = "https://webp.follow.is"
+const canUseImageProxy = (userRole?: string | null): boolean => {
+ if (!userRole) return false
+ return userRole === "plus" || userRole === "pro"
+}
+
export const imageRefererMatches = [
{
url: /^https:\/\/\w+\.sinaimg\.cn/,
@@ -40,15 +45,28 @@ export const getImageProxyUrl = ({
url,
width,
height,
+ userRole,
}: {
url: string
width?: number
height?: number
+ userRole?: string | null
}) => {
+ if (!canUseImageProxy(userRole)) {
+ return url
+ }
return `${IMAGE_PROXY_URL}?url=${encodeURIComponent(url)}&width=${width ? Math.round(width) : ""}&height=${height ? Math.round(height) : ""}`
}
-export const replaceImgUrlIfNeed = ({ url, inBrowser }: { url?: string; inBrowser?: boolean }) => {
+export const replaceImgUrlIfNeed = ({
+ url,
+ inBrowser,
+ userRole,
+}: {
+ url?: string
+ inBrowser?: boolean
+ userRole?: string | null
+}) => {
if (!url) return url
for (const rule of webpCloudPublicServicesMatches) {
@@ -59,7 +77,7 @@ export const replaceImgUrlIfNeed = ({ url, inBrowser }: { url?: string; inBrowse
for (const rule of imageRefererMatches) {
if ((inBrowser || rule.force) && rule.url.test(url)) {
- return getImageProxyUrl({ url, width: 0, height: 0 })
+ return getImageProxyUrl({ url, width: 0, height: 0, userRole })
}
}
return url
From 043b5a02c4d374e313503605912cde042f351310 Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Wed, 19 Nov 2025 22:01:07 +0800
Subject: [PATCH 13/31] fix: mark as read on top for list context menu
---
.../renderer/src/hooks/biz/useFeedActions.tsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/apps/desktop/layer/renderer/src/hooks/biz/useFeedActions.tsx b/apps/desktop/layer/renderer/src/hooks/biz/useFeedActions.tsx
index 6ea997819..7aeb473b8 100644
--- a/apps/desktop/layer/renderer/src/hooks/biz/useFeedActions.tsx
+++ b/apps/desktop/layer/renderer/src/hooks/biz/useFeedActions.tsx
@@ -331,6 +331,15 @@ export const useListActions = ({ listId, view }: { listId: string; view?: FeedVi
if (!list) return []
const items: MenuItemInput[] = [
+ new MenuItemText({
+ label: t("sidebar.feed_actions.mark_all_as_read"),
+ shortcut: shortcuts[COMMAND_ID.subscription.markAllAsRead],
+ click: () => {
+ unreadSyncService.markFeedAsRead(list.feedIds)
+ },
+ requiresLogin: true,
+ }),
+ MenuItemSeparator.default,
new MenuItemText({
label: t("sidebar.feed_actions.edit"),
shortcut: "E",
@@ -349,15 +358,6 @@ export const useListActions = ({ listId, view }: { listId: string; view?: FeedVi
requiresLogin: true,
}),
MenuItemSeparator.default,
- new MenuItemText({
- label: t("sidebar.feed_actions.mark_all_as_read"),
- shortcut: shortcuts[COMMAND_ID.subscription.markAllAsRead],
- click: () => {
- unreadSyncService.markFeedAsRead(list.feedIds)
- },
- requiresLogin: true,
- }),
- MenuItemSeparator.default,
...(list.ownerUserId === whoami()?.id
? [
new MenuItemText({
From 26c842751af733fef79048781854620c07c27bbf Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Wed, 19 Nov 2025 20:07:15 +0800
Subject: [PATCH 14/31] feat: add AI timeline sorting feature with customizable
prompt settings
---
.../modules/entry-column/atoms/ai-timeline.ts | 3 +
.../entry-column/hooks/useEntriesByView.ts | 8 +
.../entry-column/layouts/EntryListHeader.tsx | 78 ++++++++--
.../settings/modal/SettingModalContent.tsx | 2 +-
.../renderer/src/modules/settings/tabs/ai.tsx | 8 +
.../tabs/ai/TimelinePromptSection.tsx | 143 ++++++++++++++++++
locales/ai/en.json | 4 +
locales/ai/zh-CN.json | 4 +
locales/app/en.json | 2 +
locales/app/ja.json | 2 +
locales/app/zh-CN.json | 2 +
locales/app/zh-TW.json | 2 +
.../internal/shared/src/settings/defaults.ts | 1 +
.../internal/shared/src/settings/interface.ts | 1 +
.../internal/store/src/modules/entry/hooks.ts | 3 +
.../internal/store/src/modules/entry/store.ts | 3 +
.../internal/store/src/modules/entry/types.ts | 1 +
17 files changed, 251 insertions(+), 16 deletions(-)
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-column/atoms/ai-timeline.ts
create mode 100644 apps/desktop/layer/renderer/src/modules/settings/tabs/ai/TimelinePromptSection.tsx
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/atoms/ai-timeline.ts b/apps/desktop/layer/renderer/src/modules/entry-column/atoms/ai-timeline.ts
new file mode 100644
index 000000000..36b0a017c
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/atoms/ai-timeline.ts
@@ -0,0 +1,3 @@
+import { atom } from "jotai"
+
+export const aiTimelineEnabledAtom = atom(false)
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/hooks/useEntriesByView.ts b/apps/desktop/layer/renderer/src/modules/entry-column/hooks/useEntriesByView.ts
index 3dea405c1..6e2e82852 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/hooks/useEntriesByView.ts
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/hooks/useEntriesByView.ts
@@ -18,14 +18,17 @@ import { nextFrame } from "@follow/utils"
import { isBizId } from "@follow/utils/utils"
import { useMutation } from "@tanstack/react-query"
import { debounce } from "es-toolkit/compat"
+import { useAtomValue } from "jotai"
import { useCallback, useEffect, useMemo, useState } from "react"
import { useGeneralSettingKey } from "~/atoms/settings/general"
import { ROUTE_FEED_PENDING } from "~/constants/app"
+import { useFeature } from "~/hooks/biz/useFeature"
import { useRouteParams } from "~/hooks/biz/useRouteParams"
import { useAuthQuery } from "~/hooks/common"
import { entries } from "~/queries/entries"
+import { aiTimelineEnabledAtom } from "../atoms/ai-timeline"
import { useIsPreviewFeed } from "./useIsPreviewFeed"
const useRemoteEntries = (): UseEntriesReturn => {
@@ -36,6 +39,8 @@ const useRemoteEntries = (): UseEntriesReturn => {
const hidePrivateSubscriptionsInTimeline = useGeneralSettingKey(
"hidePrivateSubscriptionsInTimeline",
)
+ const aiTimelineEnabled = useAtomValue(aiTimelineEnabledAtom)
+ const aiEnabled = useFeature("ai")
const folderIds = useFolderFeedsByFeedId({
feedId,
@@ -53,6 +58,7 @@ const useRemoteEntries = (): UseEntriesReturn => {
hidePrivateSubscriptionsInTimeline: true,
}),
...(view === FeedViewType.All && { limit: 40 }),
+ ...(aiTimelineEnabled && aiEnabled && { aiSort: true }),
}
if (feedId && listId && isBizId(feedId)) {
@@ -69,6 +75,8 @@ const useRemoteEntries = (): UseEntriesReturn => {
isPreview,
view,
hidePrivateSubscriptionsInTimeline,
+ aiTimelineEnabled,
+ aiEnabled,
])
const query = useEntriesQuery(entriesOptions)
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
index 47261d43a..2c904a4aa 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
@@ -10,13 +10,15 @@ import { useFeedById } from "@follow/store/feed/hooks"
import { useIsLoggedIn, useWhoami } from "@follow/store/user/hooks"
import { stopPropagation } from "@follow/utils/dom"
import { clsx, cn, isBizId } from "@follow/utils/utils"
-import { useAtomValue } from "jotai"
+import { useAtom, useAtomValue } from "jotai"
import type { FC } from "react"
import { useCallback } from "react"
import { useTranslation } from "react-i18next"
import { useNavigate } from "react-router"
+import { toast } from "sonner"
import { previewBackPath } from "~/atoms/preview"
+import { useAISettingKey } from "~/atoms/settings/ai"
import { useGeneralSettingKey } from "~/atoms/settings/general"
import { useSubscriptionColumnShow } from "~/atoms/sidebar"
import { ROUTE_ENTRY_PENDING } from "~/constants"
@@ -30,9 +32,12 @@ import { useRunCommandFn } from "~/modules/command/hooks/use-command"
import { useCommandShortcut } from "~/modules/command/hooks/use-command-binding"
import { EntryHeader } from "~/modules/entry-content/components/entry-header"
import { FeedIcon } from "~/modules/feed/feed-icon"
+import { useSettingModal } from "~/modules/settings/modal/useSettingModal"
+import { AI_SETTING_SECTION_IDS } from "~/modules/settings/tabs/ai"
import { useRefreshFeedMutation } from "~/queries/feed"
import { useFeedHeaderIcon, useFeedHeaderTitle } from "~/store/feed/hooks"
+import { aiTimelineEnabledAtom } from "../atoms/ai-timeline"
import { MarkAllReadButton } from "../components/mark-all-button"
import { useIsPreviewFeed } from "../hooks/useIsPreviewFeed"
import { useEntryRootState } from "../store/EntryColumnContext"
@@ -48,7 +53,10 @@ export const EntryListHeader: FC<{
const { t } = useTranslation()
const unreadOnly = useGeneralSettingKey("unreadOnly")
+ const [aiTimelineEnabled, setAiTimelineEnabled] = useAtom(aiTimelineEnabledAtom)
const aiEnabled = useFeature("ai")
+ const aiTimelinePrompt = useAISettingKey("aiTimelinePrompt")
+ const showSettings = useSettingModal()
const { feedId, entryId, view, isCollection } = routerParams
const isPreview = useIsPreviewFeed()
@@ -102,6 +110,45 @@ export const EntryListHeader: FC<{
}, [sendAIShortcut])
const showEntryHeader = isWideMode && !!entryId && entryId !== ROUTE_ENTRY_PENDING
const showTimelineSummaryButton = isWideMode && aiEnabled
+ const showAiTimelineToggle = aiEnabled
+
+ const handleAiTimelineButtonClick = useCallback(() => {
+ const hasTimelinePrompt = !!aiTimelinePrompt?.trim()
+
+ if (!aiTimelineEnabled && !hasTimelinePrompt) {
+ toast.info(t("entry_list_header.ai_timeline_prompt_required"))
+ showSettings({ tab: "ai", section: AI_SETTING_SECTION_IDS.timelinePrompt })
+ return
+ }
+
+ setAiTimelineEnabled((prev) => !prev)
+ }, [aiTimelineEnabled, aiTimelinePrompt, setAiTimelineEnabled, showSettings, t])
+
+ const renderAiTimelineButton = () => {
+ if (!showAiTimelineToggle) return null
+ return (
+
+ {aiTimelineEnabled ? (
+
+ ) : (
+
+ )}
+
+ )
+ }
+
+ const renderTimelineSummaryButton = () => {
+ if (!showTimelineSummaryButton) return null
+ return (
+
+
+
+ )
+ }
return (
- {isWideMode && (showEntryHeader || showTimelineSummaryButton) && (
- <>
- {showEntryHeader &&
}
- {showTimelineSummaryButton && (
-
-
-
- )}
-
- >
- )}
+ {isWideMode &&
+ (showEntryHeader || showTimelineSummaryButton || showAiTimelineToggle) && (
+ <>
+ {showEntryHeader &&
}
+ {(showAiTimelineToggle || showTimelineSummaryButton) && (
+
+ {renderAiTimelineButton()}
+ {renderTimelineSummaryButton()}
+
+ )}
+
+ >
+ )}
+
+ {!isWideMode && renderAiTimelineButton()}
{view === FeedViewType.Pictures && }
diff --git a/apps/desktop/layer/renderer/src/modules/settings/modal/SettingModalContent.tsx b/apps/desktop/layer/renderer/src/modules/settings/modal/SettingModalContent.tsx
index 70c23e1eb..b12f6e2a8 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/modal/SettingModalContent.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/modal/SettingModalContent.tsx
@@ -137,7 +137,7 @@ const Content: FC<{
const elementTop = element.offsetTop
const scrollerTop = scroller.scrollTop
- const delta = elementTop - scrollerTop
+ const delta = elementTop - scrollerTop - 20
scroller.scrollTo({
top: delta,
diff --git a/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
index 894dbad3a..f90916b7c 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
@@ -12,6 +12,7 @@ import { PanelStyleSection } from "./ai/PanelStyleSection"
import { PersonalizePromptSection } from "./ai/PersonalizePromptSection"
import { AIShortcutsSection } from "./ai/shortcuts/AIShortcutsSection"
import { TaskSchedulingSection } from "./ai/tasks"
+import { TimelinePromptSection } from "./ai/TimelinePromptSection"
import { UsageAnalysisSection } from "./ai/usage"
const SettingBuilder = createSettingBuilder(useAISettingValue)
@@ -20,6 +21,7 @@ const defineSettingItem = createDefineSettingItem("ai", useAISettingValue, setAI
export const AI_SETTING_SECTION_IDS = {
shortcuts: "settings-ai-shortcuts",
tasks: "settings-ai-tasks",
+ timelinePrompt: "settings-ai-timeline-prompt",
} as const
export const SettingAI = () => {
@@ -50,6 +52,12 @@ export const SettingAI = () => {
},
PersonalizePromptSection,
+ {
+ type: "title",
+ value: t("timeline_prompt.title"),
+ id: AI_SETTING_SECTION_IDS.timelinePrompt,
+ },
+ TimelinePromptSection,
{
type: "title",
diff --git a/apps/desktop/layer/renderer/src/modules/settings/tabs/ai/TimelinePromptSection.tsx b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai/TimelinePromptSection.tsx
new file mode 100644
index 000000000..27af07d3c
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai/TimelinePromptSection.tsx
@@ -0,0 +1,143 @@
+import { Spring } from "@follow/components/constants/spring.js"
+import { Button } from "@follow/components/ui/button/index.js"
+import { TextArea } from "@follow/components/ui/input/index.js"
+import { AnimatePresence } from "motion/react"
+import { useEffect, useRef, useState } from "react"
+import { useTranslation } from "react-i18next"
+import { toast } from "sonner"
+
+import { setAISetting, useAISettingValue } from "~/atoms/settings/ai"
+import { m } from "~/components/common/Motion"
+
+import { SettingDescription } from "../../control"
+import { SettingModalContentPortal } from "../../modal/layout"
+
+export const TimelinePromptSection = () => {
+ const { t } = useTranslation("ai")
+ const aiSettings = useAISettingValue()
+ const promptRef = useRef("")
+ const [isSaving, setIsSaving] = useState(false)
+ const [currentLength, setCurrentLength] = useState(0)
+ const [hasChanges, setHasChanges] = useState(false)
+ const [promptValue, setPromptValue] = useState(aiSettings.aiTimelinePrompt)
+
+ const MAX_CHARACTERS = 500
+ const isOverLimit = currentLength > MAX_CHARACTERS
+
+ useEffect(() => {
+ promptRef.current = aiSettings.aiTimelinePrompt
+ setPromptValue(aiSettings.aiTimelinePrompt)
+ setCurrentLength(aiSettings.aiTimelinePrompt.length)
+ setHasChanges(false)
+ }, [aiSettings.aiTimelinePrompt])
+
+ const handleEditorChange = (value: string) => {
+ promptRef.current = value
+ setPromptValue(value)
+ setCurrentLength(value.length)
+ setHasChanges(value !== aiSettings.aiTimelinePrompt)
+ }
+
+ const handleSave = async () => {
+ if (isOverLimit) {
+ toast.error(`Prompt must be ${MAX_CHARACTERS} characters or less`)
+ return
+ }
+
+ if (!promptRef.current) return
+
+ setIsSaving(true)
+ try {
+ setAISetting("aiTimelinePrompt", promptRef.current)
+ toast.success(t("timeline_prompt.saved"))
+ setHasChanges(false)
+ } finally {
+ setIsSaving(false)
+ }
+ }
+
+ return (
+
+
+
+
+ {t("timeline_prompt.prompt.help")}
+ {isOverLimit && (
+
+ Prompt exceeds {MAX_CHARACTERS} character limit
+
+ )}
+
+
+
+
+ {hasChanges && (
+
+
+
+
+
+
+
+ Unsaved changes
+
+
+
+
+
+
+ )}
+
+
+ )
+}
diff --git a/locales/ai/en.json b/locales/ai/en.json
index 27e5f548a..5fe8196f6 100644
--- a/locales/ai/en.json
+++ b/locales/ai/en.json
@@ -323,6 +323,10 @@
"tasks.validation.title_required": "Title is required",
"tasks.view_in_settings": "View scheduled tasks",
"timeline.summary.title_template": "{{- datetime}} timeline summary",
+ "timeline_prompt.prompt.help": "Used when AI sorts your timeline. Mention the topics or sources you prefer along with anything you dislike.",
+ "timeline_prompt.prompt.placeholder": "Describe what you want the AI timeline to prioritize or avoid...",
+ "timeline_prompt.saved": "Timeline sorting preferences saved successfully",
+ "timeline_prompt.title": "Timeline Sorting Prompt",
"timeline_summary.empty": "Timeline summary will appear here shortly.",
"timeline_summary.error": "Unable to generate timeline summary right now.",
"timeline_summary.generating": "Summarizing your timeline...",
diff --git a/locales/ai/zh-CN.json b/locales/ai/zh-CN.json
index 7fb93235c..a3cb01e27 100644
--- a/locales/ai/zh-CN.json
+++ b/locales/ai/zh-CN.json
@@ -316,6 +316,10 @@
"tasks.validation.title_required": "标题为必填项",
"tasks.view_in_settings": "在设置中查看已计划任务",
"timeline.summary.title_template": "{{- datetime}} 时间线总结",
+ "timeline_prompt.prompt.help": "这些信息会被用于 AI 时间线排序,写出你喜欢的主题、来源及希望降权的内容。",
+ "timeline_prompt.prompt.placeholder": "描述下你希望 AI 时间线优先展示或避开的内容……",
+ "timeline_prompt.saved": "时间线排序偏好已保存",
+ "timeline_prompt.title": "AI 时间线排序提示",
"timeline_summary.empty": "时间线总结即将呈现。",
"timeline_summary.error": "暂时无法生成时间线总结。",
"timeline_summary.generating": "正在生成时间线总结...",
diff --git a/locales/app/en.json b/locales/app/en.json
index 8017af6dd..85527ed37 100644
--- a/locales/app/en.json
+++ b/locales/app/en.json
@@ -176,6 +176,8 @@
"entry_content.report_issue": "Report issue",
"entry_content.web_app_notice": "Maybe web app doesn't support this content type. But you can download the desktop app.",
"entry_list.zero_unread": "Zero Unread",
+ "entry_list_header.ai_timeline": "AI timeline",
+ "entry_list_header.ai_timeline_prompt_required": "Set your AI timeline sorting prompt first",
"entry_list_header.grid": "Grid",
"entry_list_header.image_only": "Image Only",
"entry_list_header.items": "items",
diff --git a/locales/app/ja.json b/locales/app/ja.json
index 0f0a8479a..02f36bf27 100644
--- a/locales/app/ja.json
+++ b/locales/app/ja.json
@@ -175,6 +175,8 @@
"entry_content.report_issue": "問題を報告",
"entry_content.web_app_notice": "このコンテンツタイプはウェブアプリではサポートされていないかもしれません。デスクトップアプリをダウンロードしてください。",
"entry_list.zero_unread": "未読ゼロ",
+ "entry_list_header.ai_timeline": "AIタイムライン",
+ "entry_list_header.ai_timeline_prompt_required": "AIタイムラインの並び替えプロンプトを先に設定してください",
"entry_list_header.grid": "グリッド",
"entry_list_header.image_only": "イメージのみ",
"entry_list_header.items": "項目",
diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json
index 1e861e7f2..7438fa3d4 100644
--- a/locales/app/zh-CN.json
+++ b/locales/app/zh-CN.json
@@ -175,6 +175,8 @@
"entry_content.report_issue": "反馈问题",
"entry_content.web_app_notice": "网页版不支持展示此类型,请下载客户端查看。",
"entry_list.zero_unread": "全部已读",
+ "entry_list_header.ai_timeline": "AI 时间线",
+ "entry_list_header.ai_timeline_prompt_required": "请先设置 AI 时间线排序提示",
"entry_list_header.grid": "网格布局",
"entry_list_header.image_only": "仅图片",
"entry_list_header.items": "内容",
diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json
index a9fa5f3c0..392003496 100644
--- a/locales/app/zh-TW.json
+++ b/locales/app/zh-TW.json
@@ -173,6 +173,8 @@
"entry_content.report_issue": "報告問題",
"entry_content.web_app_notice": "Web 應用程式不支援此類型內容。您可以下載桌面應用程式。",
"entry_list.zero_unread": "全部已讀",
+ "entry_list_header.ai_timeline": "AI 時間線",
+ "entry_list_header.ai_timeline_prompt_required": "請先設定 AI 時間線排序提示",
"entry_list_header.grid": "格線佈局",
"entry_list_header.image_only": "僅圖片",
"entry_list_header.items": "內容",
diff --git a/packages/internal/shared/src/settings/defaults.ts b/packages/internal/shared/src/settings/defaults.ts
index eac7cf28e..2e8aaa009 100644
--- a/packages/internal/shared/src/settings/defaults.ts
+++ b/packages/internal/shared/src/settings/defaults.ts
@@ -161,6 +161,7 @@ export const defaultIntegrationSettings: IntegrationSettings = {
export const defaultAISettings: AISettings = {
personalizePrompt: "",
+ aiTimelinePrompt: "",
shortcuts: [],
// MCP Services
diff --git a/packages/internal/shared/src/settings/interface.ts b/packages/internal/shared/src/settings/interface.ts
index 047ebadf1..683dde904 100644
--- a/packages/internal/shared/src/settings/interface.ts
+++ b/packages/internal/shared/src/settings/interface.ts
@@ -216,6 +216,7 @@ export interface MCPService {
export interface AISettings {
personalizePrompt: string
+ aiTimelinePrompt: string
shortcuts: AIShortcut[]
// MCP Services (stored locally, actual connections managed via server API)
diff --git a/packages/internal/store/src/modules/entry/hooks.ts b/packages/internal/store/src/modules/entry/hooks.ts
index 2c48ea1f3..3f7d3c440 100644
--- a/packages/internal/store/src/modules/entry/hooks.ts
+++ b/packages/internal/store/src/modules/entry/hooks.ts
@@ -63,6 +63,7 @@ export const useEntriesQuery = (
isCollection,
unreadOnly,
hidePrivateSubscriptionsInTimeline,
+ aiSort,
} = props || {}
const fetchUnread = unreadOnly
@@ -82,6 +83,7 @@ export const useEntriesQuery = (
isCollection,
unreadOnly,
hidePrivateSubscriptionsInTimeline,
+ aiSort,
],
[
feedId,
@@ -93,6 +95,7 @@ export const useEntriesQuery = (
isCollection,
unreadOnly,
hidePrivateSubscriptionsInTimeline,
+ aiSort,
],
)
diff --git a/packages/internal/store/src/modules/entry/store.ts b/packages/internal/store/src/modules/entry/store.ts
index fd6d6f4e2..975b5a168 100644
--- a/packages/internal/store/src/modules/entry/store.ts
+++ b/packages/internal/store/src/modules/entry/store.ts
@@ -474,6 +474,7 @@ class EntrySyncServices {
isCollection,
feedIdList,
excludePrivate,
+ aiSort,
} = props
const params = getEntriesParams({
feedId,
@@ -490,6 +491,7 @@ class EntrySyncServices {
limit,
isCollection,
inboxId: params.inboxId,
+ ...(aiSort && { aiSort }),
...params,
})
: await api().entries.list({
@@ -498,6 +500,7 @@ class EntrySyncServices {
limit,
isCollection,
excludePrivate,
+ ...(aiSort && { aiSort }),
...params,
})
diff --git a/packages/internal/store/src/modules/entry/types.ts b/packages/internal/store/src/modules/entry/types.ts
index 2a97cf6cb..810baf0f3 100644
--- a/packages/internal/store/src/modules/entry/types.ts
+++ b/packages/internal/store/src/modules/entry/types.ts
@@ -13,6 +13,7 @@ export type FetchEntriesProps = {
pageParam?: string
isCollection?: boolean
excludePrivate?: boolean
+ aiSort?: boolean
}
export type FetchEntriesPropsSettings = {
From 6a64f53de6bf8bc96a0dcd1655529f14397b0ef1 Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Wed, 19 Nov 2025 21:36:09 +0800
Subject: [PATCH 15/31] feat: implement AI timeline loading overlay with
animations and localization support
---
.../AITimelineLoadingOverlay.css | 212 ++++++++++++++++++
.../AITimelineLoadingOverlay.tsx | 40 ++++
.../src/modules/entry-column/index.tsx | 13 +-
locales/app/en.json | 1 +
locales/app/ja.json | 1 +
locales/app/zh-CN.json | 1 +
locales/app/zh-TW.json | 1 +
7 files changed, 268 insertions(+), 1 deletion(-)
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.tsx
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
new file mode 100644
index 000000000..78a409737
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
@@ -0,0 +1,212 @@
+.ai-timeline-loading {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ overflow: hidden;
+ border-radius: inherit;
+}
+
+.ai-timeline-loading__backdrop {
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 135deg,
+ rgba(255, 255, 255, 0.02),
+ rgba(255, 92, 0, 0.08),
+ rgba(0, 0, 0, 0.1)
+ );
+ opacity: 0.75;
+ animation: aiTimelineGlassPulse 2.6s ease-in-out infinite;
+}
+
+.ai-timeline-loading__glow {
+ position: absolute;
+ inset: 10% 8% 16% 8%;
+ border-radius: 48px;
+ background: radial-gradient(
+ circle at 70% 25%,
+ rgba(255, 92, 0, 0.35),
+ rgba(255, 140, 0, 0.15),
+ transparent 65%
+ );
+ filter: blur(42px);
+ opacity: 0.8;
+ animation: aiTimelineGlow 3.4s ease-in-out infinite;
+}
+
+.ai-timeline-loading__beam {
+ position: absolute;
+ top: -5%;
+ bottom: -5%;
+ width: 32%;
+ border-radius: 999px;
+ background: linear-gradient(
+ 120deg,
+ rgba(255, 255, 255, 0.2),
+ rgba(255, 92, 0, 0.15),
+ rgba(255, 92, 0, 0)
+ );
+ filter: blur(18px);
+ opacity: 0;
+ animation: aiTimelineBeam 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
+}
+
+.ai-timeline-loading__beam--left {
+ left: -15%;
+ animation-delay: 0s;
+}
+
+.ai-timeline-loading__beam--right {
+ right: -15%;
+ animation-delay: -1.2s;
+}
+
+.ai-timeline-loading__sparkles {
+ position: absolute;
+ inset: 0;
+ filter: blur(0.5px);
+}
+
+.ai-timeline-loading__sparkles span {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.45);
+ box-shadow:
+ 0 0 18px rgba(255, 92, 0, 0.4),
+ 0 0 8px rgba(255, 255, 255, 0.3);
+ opacity: 0;
+ animation: aiTimelineSparkle 3s ease-in-out infinite;
+}
+
+.ai-timeline-loading__sparkles span:nth-child(1) {
+ top: 25%;
+ left: 32%;
+ animation-delay: 0s;
+}
+
+.ai-timeline-loading__sparkles span:nth-child(2) {
+ top: 55%;
+ left: 62%;
+ animation-delay: -0.9s;
+}
+
+.ai-timeline-loading__sparkles span:nth-child(3) {
+ top: 38%;
+ left: 78%;
+ animation-delay: -1.8s;
+}
+
+.ai-timeline-loading__badge {
+ position: absolute;
+ right: 1.25rem;
+ bottom: 1.5rem;
+ padding: 0.5rem 1rem;
+ border-radius: 999px;
+ background: linear-gradient(
+ 120deg,
+ rgba(16, 16, 16, 0.85),
+ rgba(32, 24, 20, 0.85),
+ rgba(255, 92, 0, 0.25)
+ );
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ box-shadow:
+ 0 15px 40px rgba(0, 0, 0, 0.35),
+ inset 0 1px 1px rgba(255, 255, 255, 0.15);
+ backdrop-filter: blur(12px) saturate(140%);
+ -webkit-backdrop-filter: blur(12px) saturate(140%);
+ animation: aiTimelineBadgePulse 2.2s ease-in-out infinite;
+}
+
+.ai-timeline-loading__badge::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ background: linear-gradient(
+ 120deg,
+ rgba(255, 255, 255, 0.05),
+ rgba(255, 92, 0, 0.35),
+ rgba(255, 255, 255, 0.05)
+ );
+ opacity: 0.35;
+ pointer-events: none;
+}
+
+.ai-timeline-loading__badge span {
+ color: rgba(255, 255, 255, 0.9);
+ text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
+}
+
+@keyframes aiTimelineGlassPulse {
+ 0%,
+ 100% {
+ opacity: 0.65;
+ }
+ 50% {
+ opacity: 0.85;
+ }
+}
+
+@keyframes aiTimelineGlow {
+ 0%,
+ 100% {
+ transform: scale(0.95);
+ opacity: 0.6;
+ }
+ 50% {
+ transform: scale(1.05);
+ opacity: 0.85;
+ }
+}
+
+@keyframes aiTimelineBeam {
+ 0% {
+ opacity: 0;
+ transform: translateX(-35%) scaleX(0.8);
+ }
+ 40% {
+ opacity: 0.4;
+ }
+ 70% {
+ opacity: 0.65;
+ transform: translateX(20%) scaleX(1.05);
+ }
+ 100% {
+ opacity: 0;
+ transform: translateX(30%) scaleX(1.2);
+ }
+}
+
+@keyframes aiTimelineSparkle {
+ 0%,
+ 100% {
+ opacity: 0;
+ transform: scale(0.4) translate3d(0, 0, 0);
+ }
+ 35% {
+ opacity: 0.85;
+ transform: scale(1) translate3d(4px, -6px, 0);
+ }
+ 65% {
+ opacity: 0.35;
+ transform: scale(0.6) translate3d(-4px, 6px, 0);
+ }
+}
+
+@keyframes aiTimelineBadgePulse {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ box-shadow:
+ 0 15px 40px rgba(0, 0, 0, 0.35),
+ inset 0 1px 1px rgba(255, 255, 255, 0.15);
+ }
+ 50% {
+ transform: translateY(-3px);
+ box-shadow:
+ 0 20px 45px rgba(0, 0, 0, 0.4),
+ inset 0 1px 1px rgba(255, 255, 255, 0.25);
+ }
+}
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.tsx
new file mode 100644
index 000000000..1e89b0955
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.tsx
@@ -0,0 +1,40 @@
+import "./AITimelineLoadingOverlay.css"
+
+import { Spring } from "@follow/components/constants/spring.js"
+import { AnimatePresence, m } from "motion/react"
+import type { FC } from "react"
+
+type Props = {
+ visible: boolean
+ label: string
+}
+
+export const AITimelineLoadingOverlay: FC = ({ visible, label }) => (
+
+ {visible ? (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {label}
+
+
+ ) : null}
+
+)
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/index.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/index.tsx
index fd0a1ae87..6d02e4f81 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/index.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/index.tsx
@@ -7,8 +7,9 @@ import { unreadSyncService } from "@follow/store/unread/store"
import { useIsLoggedIn } from "@follow/store/user/hooks"
import { isBizId } from "@follow/utils/utils"
import type { Range, Virtualizer } from "@tanstack/react-virtual"
-import { atom } from "jotai"
+import { atom, useAtomValue } from "jotai"
import { memo, useCallback, useEffect, useMemo, useRef } from "react"
+import { useTranslation } from "react-i18next"
import { useGeneralSettingKey } from "~/atoms/settings/general"
import { Focusable } from "~/components/common/Focusable"
@@ -19,6 +20,8 @@ import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRoutePara
import { useFeedQuery } from "~/queries/feed"
import { useFeedHeaderTitle } from "~/store/feed/hooks"
+import { aiTimelineEnabledAtom } from "./atoms/ai-timeline"
+import { AITimelineLoadingOverlay } from "./components/ai-timeline-loading/AITimelineLoadingOverlay"
import { EntryColumnWrapper } from "./components/entry-column-wrapper/EntryColumnWrapper"
import { FooterMarkItem } from "./components/FooterMarkItem"
import { useEntriesActions, useEntriesState } from "./context/EntriesContext"
@@ -34,6 +37,7 @@ import { EntryRootStateContext } from "./store/EntryColumnContext"
function EntryColumnContent() {
const listRef = useRef>(undefined)
+ const { t } = useTranslation()
const state = useEntriesState()
const actions = useEntriesActions()
@@ -111,6 +115,8 @@ function EntryColumnContent() {
const rangeQueueRef = useRef([])
const isRefreshing = state.isFetching && !state.isFetchingNextPage
+ const aiTimelineEnabled = useAtomValue(aiTimelineEnabledAtom)
+ const showAiTimelineLoading = aiTimelineEnabled && state.isLoading && !state.isFetchingNextPage
const renderAsRead = useGeneralSettingKey("renderMarkUnread")
const handleRangeChange = useCallback(
(e: Range) => {
@@ -192,6 +198,11 @@ function EntryColumnContent() {
/>
)}
+
+
)
}
diff --git a/locales/app/en.json b/locales/app/en.json
index 85527ed37..527f84e77 100644
--- a/locales/app/en.json
+++ b/locales/app/en.json
@@ -177,6 +177,7 @@
"entry_content.web_app_notice": "Maybe web app doesn't support this content type. But you can download the desktop app.",
"entry_list.zero_unread": "Zero Unread",
"entry_list_header.ai_timeline": "AI timeline",
+ "entry_list_header.ai_timeline_loading": "Reordering timeline with AI...",
"entry_list_header.ai_timeline_prompt_required": "Set your AI timeline sorting prompt first",
"entry_list_header.grid": "Grid",
"entry_list_header.image_only": "Image Only",
diff --git a/locales/app/ja.json b/locales/app/ja.json
index 02f36bf27..ef8cf85b1 100644
--- a/locales/app/ja.json
+++ b/locales/app/ja.json
@@ -176,6 +176,7 @@
"entry_content.web_app_notice": "このコンテンツタイプはウェブアプリではサポートされていないかもしれません。デスクトップアプリをダウンロードしてください。",
"entry_list.zero_unread": "未読ゼロ",
"entry_list_header.ai_timeline": "AIタイムライン",
+ "entry_list_header.ai_timeline_loading": "AI でタイムラインを並び替えています…",
"entry_list_header.ai_timeline_prompt_required": "AIタイムラインの並び替えプロンプトを先に設定してください",
"entry_list_header.grid": "グリッド",
"entry_list_header.image_only": "イメージのみ",
diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json
index 7438fa3d4..6b9cb43b1 100644
--- a/locales/app/zh-CN.json
+++ b/locales/app/zh-CN.json
@@ -176,6 +176,7 @@
"entry_content.web_app_notice": "网页版不支持展示此类型,请下载客户端查看。",
"entry_list.zero_unread": "全部已读",
"entry_list_header.ai_timeline": "AI 时间线",
+ "entry_list_header.ai_timeline_loading": "正在用 AI 重新排序时间线…",
"entry_list_header.ai_timeline_prompt_required": "请先设置 AI 时间线排序提示",
"entry_list_header.grid": "网格布局",
"entry_list_header.image_only": "仅图片",
diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json
index 392003496..0feed2a02 100644
--- a/locales/app/zh-TW.json
+++ b/locales/app/zh-TW.json
@@ -174,6 +174,7 @@
"entry_content.web_app_notice": "Web 應用程式不支援此類型內容。您可以下載桌面應用程式。",
"entry_list.zero_unread": "全部已讀",
"entry_list_header.ai_timeline": "AI 時間線",
+ "entry_list_header.ai_timeline_loading": "正在用 AI 重新排序時間線…",
"entry_list_header.ai_timeline_prompt_required": "請先設定 AI 時間線排序提示",
"entry_list_header.grid": "格線佈局",
"entry_list_header.image_only": "僅圖片",
From c17957f98ecca1f4a3d7860cc9bde56946933d89 Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Wed, 19 Nov 2025 22:35:46 +0800
Subject: [PATCH 16/31] fix: update AI timeline loading overlay styles for
improved visibility and aesthetics
---
.../AITimelineLoadingOverlay.css | 4 +--
.../internal/store/src/modules/entry/store.ts | 25 ++++++++++++-------
2 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
index 78a409737..a3df0b98a 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/components/ai-timeline-loading/AITimelineLoadingOverlay.css
@@ -106,8 +106,8 @@
border-radius: 999px;
background: linear-gradient(
120deg,
- rgba(16, 16, 16, 0.85),
- rgba(32, 24, 20, 0.85),
+ rgba(16, 16, 16, 0.65),
+ rgba(32, 24, 20, 0.65),
rgba(255, 92, 0, 0.25)
);
border: 1px solid rgba(255, 255, 255, 0.08);
diff --git a/packages/internal/store/src/modules/entry/store.ts b/packages/internal/store/src/modules/entry/store.ts
index 975b5a168..88db16fe7 100644
--- a/packages/internal/store/src/modules/entry/store.ts
+++ b/packages/internal/store/src/modules/entry/store.ts
@@ -494,15 +494,22 @@ class EntrySyncServices {
...(aiSort && { aiSort }),
...params,
})
- : await api().entries.list({
- publishedAfter: pageParam,
- read,
- limit,
- isCollection,
- excludePrivate,
- ...(aiSort && { aiSort }),
- ...params,
- })
+ : await api().entries.list(
+ {
+ publishedAfter: pageParam,
+ read,
+ limit,
+ isCollection,
+ excludePrivate,
+ ...(aiSort && { aiSort }),
+ ...params,
+ },
+ aiSort
+ ? {
+ timeout: 3 * 60 * 1000,
+ }
+ : undefined,
+ )
// Mark feed unread dirty, so re-fetch the unread data when view feed unread entires in the next time
if (read === false) {
From 7797b7b8fd6e9087c9fb1c87b104f4b694f2eef3 Mon Sep 17 00:00:00 2001
From: Innei
Date: Wed, 19 Nov 2025 22:39:15 +0800
Subject: [PATCH 17/31] feat: implement selected text functionality in AI chat
editor, resolves FOL-2800
- Introduced a new SelectedTextNode to handle selected text within the AI chat editor.
- Added a TextSelectionToolbar for user interaction with selected text, including copy and AI query options.
- Updated the editor plugins to include the SelectedTextPlugin for managing selected text insertion.
- Enhanced text selection event handling to capture and process selected text with associated metadata.
- Refactored related components and styles for improved user experience and integration.
Signed-off-by: Innei
---
.../renderer/src/lib/simple-text-selection.ts | 45 +++-
.../ai-chat/components/layouts/ChatInput.tsx | 6 +-
.../components/message/ai-block-constants.ts | 7 -
.../message/useContextBlockPresentation.tsx | 5 -
.../src/modules/ai-chat/editor/index.ts | 3 +-
.../modules/ai-chat/editor/plugins/index.tsx | 1 +
.../plugins/selection/SelectedTextNode.tsx | 135 ++++++++++++
.../selection/SelectedTextNodeComponent.tsx | 25 +++
.../plugins/selection/SelectedTextPlugin.tsx | 22 ++
.../ai-chat/editor/plugins/selection/index.ts | 5 +
.../selection/insertSelectedTextNode.ts | 29 +++
.../plugins/selection/selectedTextBridge.ts | 29 +++
.../ai-chat/store/slices/block.slice.ts | 1 -
.../src/modules/ai-chat/store/types.ts | 7 +-
.../modules/entry-content/EntryContent.tsx | 1 -
.../components/layouts/ArticleLayout.tsx | 56 +++--
.../selection/TextSelectionToolbar.tsx | 192 ++++++++++++++++++
locales/app/en.json | 3 +
locales/app/ja.json | 3 +
locales/app/zh-CN.json | 3 +
locales/app/zh-TW.json | 3 +
21 files changed, 531 insertions(+), 50 deletions(-)
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNode.tsx
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNodeComponent.tsx
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextPlugin.tsx
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/index.ts
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/insertSelectedTextNode.ts
create mode 100644 apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/selectedTextBridge.ts
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
diff --git a/apps/desktop/layer/renderer/src/lib/simple-text-selection.ts b/apps/desktop/layer/renderer/src/lib/simple-text-selection.ts
index 57c3871a5..00328207e 100644
--- a/apps/desktop/layer/renderer/src/lib/simple-text-selection.ts
+++ b/apps/desktop/layer/renderer/src/lib/simple-text-selection.ts
@@ -2,9 +2,19 @@
* Simple text selection utilities for ShadowDOM
*/
+export interface SelectionRect {
+ top: number
+ right: number
+ bottom: number
+ left: number
+ width: number
+ height: number
+}
+
export interface TextSelectionEvent {
selectedText: string
timestamp: number
+ rect: SelectionRect
}
/**
@@ -28,21 +38,23 @@ export function addTextSelectionListener(
try {
const range = selection.getRangeAt(0)
if (!shadowRoot.contains(range.commonAncestorContainer)) return
+
+ if (!selection.isCollapsed) {
+ const selectedText = selection.toString().trim()
+ if (selectedText) {
+ onTextSelect({
+ selectedText,
+ timestamp: Date.now(),
+ rect: normalizeRect(range.getBoundingClientRect()),
+ })
+ }
+ return
+ }
} catch {
// Uncaught IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.
return
}
- if (!selection.isCollapsed) {
- const selectedText = selection.toString().trim()
- if (selectedText) {
- onTextSelect({
- selectedText,
- timestamp: Date.now(),
- })
- }
- } else {
- onSelectionClear?.()
- }
+ onSelectionClear?.()
}, 200)
}
@@ -53,3 +65,14 @@ export function addTextSelectionListener(
document.removeEventListener("selectionchange", handleSelectionChange)
}
}
+
+function normalizeRect(rect: DOMRect | DOMRectReadOnly): SelectionRect {
+ return {
+ top: rect.top,
+ right: rect.right,
+ bottom: rect.bottom,
+ left: rect.left,
+ width: rect.width,
+ height: rect.height,
+ }
+}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx
index 7ffa01060..3444267d3 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx
@@ -15,7 +15,7 @@ import { COMMAND_ID } from "~/modules/command/commands/id"
import { getCommand } from "~/modules/command/hooks/use-command"
import { useCommandShortcut } from "~/modules/command/hooks/use-command-binding"
-import { FileUploadPlugin, MentionPlugin, ShortcutPlugin } from "../../editor"
+import { FileUploadPlugin, MentionPlugin, SelectedTextPlugin, ShortcutPlugin } from "../../editor"
import { useMainEntryId } from "../../hooks/useMainEntryId"
import { AIPanelRefsContext } from "../../store/AIChatContext"
import { useChatActions, useChatScene, useChatStatus } from "../../store/hooks"
@@ -173,7 +173,9 @@ export const ChatInput = memo(
onKeyDown={handleKeyDown}
autoFocus
plugins={
- scene === "onboarding" ? [] : [MentionPlugin, ShortcutPlugin, FileUploadPlugin]
+ scene === "onboarding"
+ ? []
+ : [MentionPlugin, ShortcutPlugin, FileUploadPlugin, SelectedTextPlugin]
}
namespace="AIChatRichEditor"
/>
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/ai-block-constants.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/ai-block-constants.ts
index 78fdda371..9a5845cdf 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/ai-block-constants.ts
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/ai-block-constants.ts
@@ -20,11 +20,6 @@ export const BLOCK_STYLES = {
icon: "bg-orange/10 text-orange",
label: "text-orange",
},
- selectedText: {
- container: "from-purple/5 to-purple/10 border-purple/20 hover:border-purple/30",
- icon: "bg-purple/10 text-purple",
- label: "text-purple",
- },
fileAttachment: {
container: "from-pink/5 to-pink/10 border-pink/20 hover:border-pink/30",
icon: "bg-pink/10 text-pink",
@@ -52,7 +47,6 @@ export const DEFAULT_BLOCK_STYLES = {
export const BLOCK_ICONS = {
mainEntry: "i-mgc-star-cute-fi",
mainFeed: "i-mgc-rss-cute-fi",
- selectedText: "i-mgc-quill-pen-cute-re",
fileAttachment: "i-mgc-file-upload-cute-re",
unreadOnly: "i-mgc-round-cute-fi",
} as const
@@ -63,7 +57,6 @@ export const BLOCK_ICONS = {
export const BLOCK_LABELS = {
mainEntry: "Current",
mainFeed: "Current",
- selectedText: "Text",
fileAttachment: "File",
mainView: "View",
unreadOnly: "Filter",
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/useContextBlockPresentation.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/useContextBlockPresentation.tsx
index 65a020636..74ce9bdef 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/useContextBlockPresentation.tsx
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/useContextBlockPresentation.tsx
@@ -140,11 +140,6 @@ export function useContextBlockPresentation(block: AIChatContextBlock): ContextB
)
break
}
- case "selectedText": {
- displayContent = `"${block.value}"`
- title = block.value
- break
- }
case "unreadOnly": {
displayContent = "Unread Only"
title = "Unread Only"
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/index.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/index.ts
index 4e02f832c..147ce8175 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/index.ts
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/index.ts
@@ -1,6 +1,6 @@
import { LexicalRichEditorNodes } from "@follow/components/ui/lexical-rich-editor/nodes.js"
-import { FileAttachmentNode, MentionNode, ShortcutNode } from "./plugins"
+import { FileAttachmentNode, MentionNode, SelectedTextNode, ShortcutNode } from "./plugins"
export * from "./plugins"
@@ -9,4 +9,5 @@ export const LexicalAIEditorNodes = [
MentionNode,
ShortcutNode,
FileAttachmentNode,
+ SelectedTextNode,
]
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/index.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/index.tsx
index 768bd804d..a0946d24b 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/index.tsx
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/index.tsx
@@ -1,3 +1,4 @@
export * from "./file-upload"
export * from "./mention"
+export * from "./selection"
export * from "./shortcut"
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNode.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNode.tsx
new file mode 100644
index 000000000..17d5e8c60
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNode.tsx
@@ -0,0 +1,135 @@
+import type {
+ DOMConversionMap,
+ DOMExportOutput,
+ LexicalEditor,
+ LexicalNode,
+ NodeKey,
+ SerializedLexicalNode,
+ Spread,
+} from "lexical"
+import { DecoratorNode } from "lexical"
+import * as React from "react"
+
+import { SelectedTextNodeComponent } from "./SelectedTextNodeComponent"
+
+export type SelectedTextNodePayload = {
+ text: string
+ sourceEntryId?: string
+ timestamp?: number
+}
+
+export type SerializedSelectedTextNode = Spread
+
+export class SelectedTextNode extends DecoratorNode {
+ __text: string
+ __sourceEntryId?: string
+ __timestamp?: number
+
+ static override getType(): string {
+ return "selected-text"
+ }
+
+ static override clone(node: SelectedTextNode): SelectedTextNode {
+ return new SelectedTextNode(node.__text, node.__sourceEntryId, node.__timestamp, node.__key)
+ }
+
+ constructor(text: string, sourceEntryId?: string, timestamp?: number, key?: NodeKey) {
+ super(key)
+ this.__text = text
+ this.__sourceEntryId = sourceEntryId
+ this.__timestamp = timestamp
+ }
+
+ getText(): string {
+ return this.__text
+ }
+
+ setText(text: string): void {
+ const writable = this.getWritable()
+ writable.__text = text
+ }
+
+ getSourceEntryId(): string | undefined {
+ return this.__sourceEntryId
+ }
+
+ getTimestamp(): number | undefined {
+ return this.__timestamp
+ }
+
+ override createDOM(): HTMLElement {
+ const div = document.createElement("div")
+ div.dataset.selectedTextNode = "true"
+ return div
+ }
+
+ override updateDOM(): false {
+ return false
+ }
+
+ static override importDOM(): DOMConversionMap | null {
+ return null
+ }
+
+ static override importJSON(serializedNode: SerializedSelectedTextNode): SelectedTextNode {
+ const { text, sourceEntryId, timestamp } = serializedNode
+ return $createSelectedTextNode({ text, sourceEntryId, timestamp })
+ }
+
+ override exportJSON(): SerializedSelectedTextNode {
+ return {
+ text: this.__text,
+ sourceEntryId: this.__sourceEntryId,
+ timestamp: this.__timestamp,
+ type: "selected-text",
+ version: 1,
+ }
+ }
+
+ override exportDOM(): DOMExportOutput {
+ const element = document.createElement("div")
+ element.dataset.selectedTextNode = "true"
+ element.textContent = this.__text
+ return { element }
+ }
+
+ override decorate(_editor: LexicalEditor): React.JSX.Element {
+ return (
+
+ )
+ }
+
+ override isInline(): boolean {
+ return false
+ }
+
+ override isKeyboardSelectable(): boolean {
+ return false
+ }
+
+ override getTextContent(): string {
+ return `${escapeXML(this.__text)}`
+ }
+}
+
+export function $createSelectedTextNode(payload: SelectedTextNodePayload): SelectedTextNode {
+ return new SelectedTextNode(payload.text, payload.sourceEntryId, payload.timestamp)
+}
+
+export function $isSelectedTextNode(
+ node: LexicalNode | null | undefined,
+): node is SelectedTextNode {
+ return node instanceof SelectedTextNode
+}
+function escapeXML(text: string): string {
+ return text
+ .replaceAll("&", "&")
+ .replaceAll("<", "<")
+ .replaceAll(">", ">")
+ .replaceAll('"', """)
+ .replaceAll("'", "'")
+}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNodeComponent.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNodeComponent.tsx
new file mode 100644
index 000000000..af92301b6
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextNodeComponent.tsx
@@ -0,0 +1,25 @@
+import { cn } from "@follow/utils"
+
+interface SelectedTextNodeComponentProps {
+ text: string
+ sourceEntryId?: string
+ timestamp?: number
+}
+
+export function SelectedTextNodeComponent({ text }: SelectedTextNodeComponentProps) {
+ return (
+
+
+
+ "{text}"
+
+
+ )
+}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextPlugin.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextPlugin.tsx
new file mode 100644
index 000000000..e3f80f27e
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/SelectedTextPlugin.tsx
@@ -0,0 +1,22 @@
+import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext"
+import { useEffect } from "react"
+
+import { insertSelectedTextNode } from "./insertSelectedTextNode"
+import { subscribeSelectedTextInsertion } from "./selectedTextBridge"
+import { SelectedTextNode } from "./SelectedTextNode"
+
+export function SelectedTextPlugin() {
+ const [editor] = useLexicalComposerContext()
+
+ useEffect(() => {
+ return subscribeSelectedTextInsertion((payload) => {
+ editor.focus()
+ insertSelectedTextNode(editor, payload)
+ })
+ }, [editor])
+
+ return null
+}
+
+SelectedTextPlugin.id = "selected-text"
+SelectedTextPlugin.nodes = [SelectedTextNode]
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/index.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/index.ts
new file mode 100644
index 000000000..80372d449
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/index.ts
@@ -0,0 +1,5 @@
+export * from "./insertSelectedTextNode"
+export * from "./selectedTextBridge"
+export * from "./SelectedTextNode"
+export * from "./SelectedTextNodeComponent"
+export * from "./SelectedTextPlugin"
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/insertSelectedTextNode.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/insertSelectedTextNode.ts
new file mode 100644
index 000000000..adbe779eb
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/insertSelectedTextNode.ts
@@ -0,0 +1,29 @@
+import type { LexicalEditor } from "lexical"
+import {
+ $createParagraphNode,
+ $createTextNode,
+ $getRoot,
+ $getSelection,
+ $isRangeSelection,
+} from "lexical"
+
+import type { SelectedTextNodePayload } from "./SelectedTextNode"
+import { $createSelectedTextNode } from "./SelectedTextNode"
+
+export function insertSelectedTextNode(editor: LexicalEditor, payload: SelectedTextNodePayload) {
+ editor.update(() => {
+ let selection = $getSelection()
+
+ if (!$isRangeSelection(selection)) {
+ const root = $getRoot()
+ const paragraph = $createParagraphNode()
+ root.append(paragraph)
+ paragraph.selectEnd()
+ selection = $getSelection()
+ }
+
+ if (!selection) return
+ const selectedNode = $createSelectedTextNode(payload)
+ selection.insertNodes([selectedNode, $createTextNode(" ")])
+ })
+}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/selectedTextBridge.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/selectedTextBridge.ts
new file mode 100644
index 000000000..530a1cb53
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/selection/selectedTextBridge.ts
@@ -0,0 +1,29 @@
+import type { SelectedTextNodePayload } from "./SelectedTextNode"
+
+type Listener = (payload: SelectedTextNodePayload) => void
+
+const listeners = new Set()
+let pendingPayload: SelectedTextNodePayload | null = null
+
+export function queueSelectedTextInsertion(payload: SelectedTextNodePayload) {
+ pendingPayload = payload
+ if (listeners.size === 0) return
+
+ for (const listener of listeners) {
+ listener(payload)
+ }
+ pendingPayload = null
+}
+
+export function subscribeSelectedTextInsertion(listener: Listener) {
+ listeners.add(listener)
+
+ if (pendingPayload) {
+ listener(pendingPayload)
+ pendingPayload = null
+ }
+
+ return () => {
+ listeners.delete(listener)
+ }
+}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/store/slices/block.slice.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/store/slices/block.slice.ts
index 28a708368..2a034dba8 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/store/slices/block.slice.ts
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/store/slices/block.slice.ts
@@ -33,7 +33,6 @@ export class BlockSliceAction {
mainView: "mainView",
mainEntry: "mainEntry",
mainFeed: "mainFeed",
- selectedText: "selectedText",
unreadOnly: "unreadOnly",
}
get set() {
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/store/types.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/store/types.ts
index 6fbf54e1f..8745bae65 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/store/types.ts
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/store/types.ts
@@ -20,12 +20,7 @@ interface BaseContextBlock {
disabled?: boolean
}
-export type ValueContextBlockType =
- | "mainView"
- | "mainEntry"
- | "mainFeed"
- | "selectedText"
- | "unreadOnly"
+export type ValueContextBlockType = "mainView" | "mainEntry" | "mainFeed" | "unreadOnly"
export interface AbstractValueContextBlock extends BaseContextBlock {
type: T
value: string
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/EntryContent.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/EntryContent.tsx
index 3988db635..643d90a31 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-content/EntryContent.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/EntryContent.tsx
@@ -95,7 +95,6 @@ const EntryContentImpl: Component = ({
})
return () => {
removeBlock(BlockSliceAction.SPECIAL_TYPES.mainEntry)
- removeBlock(BlockSliceAction.SPECIAL_TYPES.selectedText)
}
}, [addOrUpdateBlock, entryId, removeBlock])
const animationController = useAnimationControls()
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/layouts/ArticleLayout.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/layouts/ArticleLayout.tsx
index db9b1ceb8..4691b9450 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-content/components/layouts/ArticleLayout.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/layouts/ArticleLayout.tsx
@@ -8,7 +8,12 @@ import { cn } from "@follow/utils"
import { ErrorBoundary } from "@sentry/react"
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
-import { AIChatPanelStyle, useAIChatPanelStyle, useAIPanelVisibility } from "~/atoms/settings/ai"
+import {
+ AIChatPanelStyle,
+ setAIPanelVisibility,
+ useAIChatPanelStyle,
+ useAIPanelVisibility,
+} from "~/atoms/settings/ai"
import { useUISettingKey } from "~/atoms/settings/ui"
import { ShadowDOM } from "~/components/common/ShadowDOM"
import type { TocRef } from "~/components/ui/markdown/components/Toc"
@@ -16,8 +21,7 @@ import { useInPeekModal } from "~/components/ui/modal/inspire/InPeekModal"
import { readableContentMaxWidthClassName } from "~/constants/ui"
import { useRenderStyle } from "~/hooks/biz/useRenderStyle"
import type { TextSelectionEvent } from "~/lib/simple-text-selection"
-import { useBlockActions } from "~/modules/ai-chat/store/hooks"
-import { BlockSliceAction } from "~/modules/ai-chat/store/slices/block.slice"
+import { queueSelectedTextInsertion } from "~/modules/ai-chat/editor/plugins/selection/selectedTextBridge"
import { EntryContentHTMLRenderer } from "~/modules/renderer/html"
import { EntryContentMarkdownRenderer } from "~/modules/renderer/markdown"
import { WrappedElementProvider } from "~/providers/wrapped-element-provider"
@@ -29,6 +33,7 @@ import { EntryRenderError } from "../entry-content/EntryRenderError"
import { ReadabilityNotice } from "../entry-content/ReadabilityNotice"
import { EntryAttachments } from "../EntryAttachments"
import { EntryTitle } from "../EntryTitle"
+import { TextSelectionToolbar } from "../selection/TextSelectionToolbar"
import { MediaTranscript, TranscriptToggle, useTranscription } from "./shared"
import { ArticleAudioPlayer } from "./shared/AudioPlayer"
import type { EntryLayoutProps } from "./types"
@@ -48,30 +53,44 @@ export const ArticleLayout: React.FC = ({
const feed = useFeedById(entry?.feedId)
const isInbox = useIsInbox(entry?.inboxId)
const [showTranscript, setShowTranscript] = useState(false)
+ const [textSelection, setTextSelection] = useState(null)
const { content } = useEntryContent(entryId)
const customCSS = useUISettingKey("customCSS")
- const { addOrUpdateBlock, removeBlock } = useBlockActions()
- const handleTextSelect = useCallback(
- (event: TextSelectionEvent) => {
- addOrUpdateBlock({
- id: BlockSliceAction.SPECIAL_TYPES.selectedText,
- type: "selectedText",
- value: event.selectedText,
- })
- },
- [addOrUpdateBlock],
- )
+ const handleTextSelect = useCallback((event: TextSelectionEvent) => {
+ setTextSelection(event)
+ }, [])
const handleSelectionClear = useCallback(() => {
- removeBlock(BlockSliceAction.SPECIAL_TYPES.selectedText)
- }, [removeBlock])
+ setTextSelection(null)
+ }, [])
const aiChatPanelStyle = useAIChatPanelStyle()
const isAIPanelVisible = useAIPanelVisibility()
const shouldShowAISummary = aiChatPanelStyle === AIChatPanelStyle.Floating || !isAIPanelVisible
+ const handleAskAI = useCallback(
+ (selectionEvent?: TextSelectionEvent) => {
+ const pendingSelection = selectionEvent ?? textSelection
+ if (!pendingSelection?.selectedText) return
+
+ queueSelectedTextInsertion({
+ text: pendingSelection.selectedText,
+ sourceEntryId: entryId,
+ timestamp: pendingSelection.timestamp,
+ })
+ setAIPanelVisibility(true)
+ handleSelectionClear()
+ },
+ [entryId, handleSelectionClear, textSelection],
+ )
+
+ useEffect(() => {
+ if (!showTranscript) return
+ handleSelectionClear()
+ }, [showTranscript, handleSelectionClear])
+
if (!entry) return null
return (
@@ -120,6 +139,11 @@ export const ArticleLayout: React.FC = ({
)}
+
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
new file mode 100644
index 000000000..21bc45d86
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
@@ -0,0 +1,192 @@
+import { Spring } from "@follow/components/constants/spring.js"
+import { RootPortal } from "@follow/components/ui/portal/index.js"
+import { cn } from "@follow/utils"
+import { m } from "motion/react"
+import type { CSSProperties, MouseEventHandler } from "react"
+import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
+import { useTranslation } from "react-i18next"
+
+import { copyToClipboard } from "~/lib/clipboard"
+import type { TextSelectionEvent } from "~/lib/simple-text-selection"
+
+const styles = {
+ toolbar: {
+ backgroundImage:
+ "linear-gradient(to bottom right, rgba(var(--color-background) / 0.98), rgba(var(--color-background) / 0.95))",
+ boxShadow:
+ "0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06), 0 4px 16px hsl(var(--fo-a) / 0.08), 0 2px 8px hsl(var(--fo-a) / 0.06), 0 1px 3px rgba(0, 0, 0, 0.04)",
+ } as CSSProperties,
+ innerGlow: {
+ background:
+ "linear-gradient(to bottom right, hsl(var(--fo-a) / 0.02), transparent, hsl(var(--fo-a) / 0.02))",
+ } as CSSProperties,
+}
+
+type TextSelectionToolbarProps = {
+ selection: TextSelectionEvent | null
+ onRequestClose: () => void
+ onAskAI?: (selection: TextSelectionEvent) => void
+}
+
+const DEFAULT_DIMENSIONS = {
+ width: 220,
+ height: 48,
+}
+
+const VIEWPORT_PADDING = 12
+
+export function TextSelectionToolbar({
+ selection,
+ onRequestClose,
+ onAskAI,
+}: TextSelectionToolbarProps) {
+ const { t } = useTranslation()
+ const toolbarRef = useRef(null)
+ const [toolbarSize, setToolbarSize] = useState(DEFAULT_DIMENSIONS)
+ const [copied, setCopied] = useState(false)
+ const [viewport, setViewport] = useState(() => getViewport())
+
+ useEffect(() => {
+ const handleResize = () => setViewport(getViewport())
+ window.addEventListener("resize", handleResize)
+ return () => {
+ window.removeEventListener("resize", handleResize)
+ }
+ }, [])
+
+ useEffect(() => {
+ if (!selection) return
+
+ const handleScroll = () => onRequestClose()
+ window.addEventListener("scroll", handleScroll, true)
+ return () => {
+ window.removeEventListener("scroll", handleScroll, true)
+ }
+ }, [selection, onRequestClose])
+
+ useLayoutEffect(() => {
+ if (!selection || !toolbarRef.current) return
+ const rect = toolbarRef.current.getBoundingClientRect()
+ setToolbarSize({
+ width: rect.width || DEFAULT_DIMENSIONS.width,
+ height: rect.height || DEFAULT_DIMENSIONS.height,
+ })
+ }, [selection, copied])
+
+ useEffect(() => {
+ if (!copied) return
+ const timer = setTimeout(() => setCopied(false), 1600)
+ return () => clearTimeout(timer)
+ }, [copied])
+
+ const position = useMemo(() => {
+ if (!selection) return null
+ const { rect } = selection
+ const toolbarHeight = toolbarSize.height || DEFAULT_DIMENSIONS.height
+ const toolbarWidth = toolbarSize.width || DEFAULT_DIMENSIONS.width
+ const viewportWidth = viewport.width || toolbarWidth
+
+ let top = rect.top - toolbarHeight - VIEWPORT_PADDING
+ if (top < VIEWPORT_PADDING) {
+ top = rect.bottom + VIEWPORT_PADDING
+ }
+
+ let left = rect.left + rect.width / 2 - toolbarWidth / 2
+ const maxLeft = Math.max(VIEWPORT_PADDING, viewportWidth - toolbarWidth - VIEWPORT_PADDING)
+ left = clamp(left, VIEWPORT_PADDING, maxLeft)
+
+ return { top, left }
+ }, [selection, toolbarSize, viewport])
+
+ const handleCopy = useCallback(async () => {
+ if (!selection) return
+ await copyToClipboard(selection.selectedText)
+ setCopied(true)
+ }, [selection])
+
+ const handleMouseDown: MouseEventHandler = (event) => {
+ event.preventDefault()
+ }
+
+ if (!selection || !position) return null
+
+ return (
+
+
+ {/* Inner glow layer */}
+
+
+
+ {onAskAI ? (
+ onAskAI(selection)}
+ />
+ ) : null}
+
+
+
+ )
+}
+
+type ToolbarButtonProps = {
+ iconClassName: string
+ label: string
+ onClick?: () => void
+ active?: boolean
+}
+
+function ToolbarButton({ iconClassName, label, onClick, active }: ToolbarButtonProps) {
+ return (
+
+ )
+}
+
+const clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max)
+
+function getViewport() {
+ if (typeof window === "undefined") {
+ return { width: 0, height: 0 }
+ }
+
+ return { width: window.innerWidth, height: window.innerHeight }
+}
diff --git a/locales/app/en.json b/locales/app/en.json
index 527f84e77..aebd72661 100644
--- a/locales/app/en.json
+++ b/locales/app/en.json
@@ -174,6 +174,9 @@
"entry_content.readability_notice": "This content is provided by Readability. If you find typographical anomalies, please go to the source site to view the original content.",
"entry_content.render_error": "Render error:",
"entry_content.report_issue": "Report issue",
+ "entry_content.selection_toolbar.ask_ai": "Ask AI",
+ "entry_content.selection_toolbar.copied": "Copied",
+ "entry_content.selection_toolbar.copy": "Copy",
"entry_content.web_app_notice": "Maybe web app doesn't support this content type. But you can download the desktop app.",
"entry_list.zero_unread": "Zero Unread",
"entry_list_header.ai_timeline": "AI timeline",
diff --git a/locales/app/ja.json b/locales/app/ja.json
index ef8cf85b1..bf0ebfcf3 100644
--- a/locales/app/ja.json
+++ b/locales/app/ja.json
@@ -173,6 +173,9 @@
"entry_content.readability_notice": "このコンテンツは Readability により提供されています。誤字などを発見した場合は、元のサイトでオリジナルのコンテンツをご覧ください。",
"entry_content.render_error": "レンダリングエラー:",
"entry_content.report_issue": "問題を報告",
+ "entry_content.selection_toolbar.ask_ai": "AI に質問",
+ "entry_content.selection_toolbar.copied": "コピーしました",
+ "entry_content.selection_toolbar.copy": "コピー",
"entry_content.web_app_notice": "このコンテンツタイプはウェブアプリではサポートされていないかもしれません。デスクトップアプリをダウンロードしてください。",
"entry_list.zero_unread": "未読ゼロ",
"entry_list_header.ai_timeline": "AIタイムライン",
diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json
index 6b9cb43b1..1a20525ea 100644
--- a/locales/app/zh-CN.json
+++ b/locales/app/zh-CN.json
@@ -173,6 +173,9 @@
"entry_content.readability_notice": "此内容由 Readability 提供。如果你发现排版异常,请访问源站查看原始内容。",
"entry_content.render_error": "渲染错误:",
"entry_content.report_issue": "反馈问题",
+ "entry_content.selection_toolbar.ask_ai": "询问 AI",
+ "entry_content.selection_toolbar.copied": "已复制",
+ "entry_content.selection_toolbar.copy": "复制",
"entry_content.web_app_notice": "网页版不支持展示此类型,请下载客户端查看。",
"entry_list.zero_unread": "全部已读",
"entry_list_header.ai_timeline": "AI 时间线",
diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json
index 0feed2a02..97ae5105c 100644
--- a/locales/app/zh-TW.json
+++ b/locales/app/zh-TW.json
@@ -171,6 +171,9 @@
"entry_content.readability_notice": "此內容由'可讀模式'提供。如果您發現排版異常,請前往網站查看原始內容。",
"entry_content.render_error": "渲染錯誤:",
"entry_content.report_issue": "報告問題",
+ "entry_content.selection_toolbar.ask_ai": "詢問 AI",
+ "entry_content.selection_toolbar.copied": "已複製",
+ "entry_content.selection_toolbar.copy": "複製",
"entry_content.web_app_notice": "Web 應用程式不支援此類型內容。您可以下載桌面應用程式。",
"entry_list.zero_unread": "全部已讀",
"entry_list_header.ai_timeline": "AI 時間線",
From 69130792547c285656c746d426d11e208b13eb42 Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Thu, 20 Nov 2025 15:01:16 +0800
Subject: [PATCH 18/31] feat: enhance AI timeline functionality and improve
settings integration
---
.../entry-column/layouts/EntryListHeader.tsx | 20 +++----------------
.../components/EntryPlaceholderLogo.tsx | 11 ++++++----
.../renderer/src/modules/settings/tabs/ai.tsx | 10 ----------
.../internal/store/src/modules/entry/hooks.ts | 3 ++-
4 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
index 2c904a4aa..40b5c07d9 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx
@@ -15,10 +15,8 @@ import type { FC } from "react"
import { useCallback } from "react"
import { useTranslation } from "react-i18next"
import { useNavigate } from "react-router"
-import { toast } from "sonner"
import { previewBackPath } from "~/atoms/preview"
-import { useAISettingKey } from "~/atoms/settings/ai"
import { useGeneralSettingKey } from "~/atoms/settings/general"
import { useSubscriptionColumnShow } from "~/atoms/sidebar"
import { ROUTE_ENTRY_PENDING } from "~/constants"
@@ -32,8 +30,6 @@ import { useRunCommandFn } from "~/modules/command/hooks/use-command"
import { useCommandShortcut } from "~/modules/command/hooks/use-command-binding"
import { EntryHeader } from "~/modules/entry-content/components/entry-header"
import { FeedIcon } from "~/modules/feed/feed-icon"
-import { useSettingModal } from "~/modules/settings/modal/useSettingModal"
-import { AI_SETTING_SECTION_IDS } from "~/modules/settings/tabs/ai"
import { useRefreshFeedMutation } from "~/queries/feed"
import { useFeedHeaderIcon, useFeedHeaderTitle } from "~/store/feed/hooks"
@@ -55,8 +51,6 @@ export const EntryListHeader: FC<{
const unreadOnly = useGeneralSettingKey("unreadOnly")
const [aiTimelineEnabled, setAiTimelineEnabled] = useAtom(aiTimelineEnabledAtom)
const aiEnabled = useFeature("ai")
- const aiTimelinePrompt = useAISettingKey("aiTimelinePrompt")
- const showSettings = useSettingModal()
const { feedId, entryId, view, isCollection } = routerParams
const isPreview = useIsPreviewFeed()
@@ -113,16 +107,8 @@ export const EntryListHeader: FC<{
const showAiTimelineToggle = aiEnabled
const handleAiTimelineButtonClick = useCallback(() => {
- const hasTimelinePrompt = !!aiTimelinePrompt?.trim()
-
- if (!aiTimelineEnabled && !hasTimelinePrompt) {
- toast.info(t("entry_list_header.ai_timeline_prompt_required"))
- showSettings({ tab: "ai", section: AI_SETTING_SECTION_IDS.timelinePrompt })
- return
- }
-
setAiTimelineEnabled((prev) => !prev)
- }, [aiTimelineEnabled, aiTimelinePrompt, setAiTimelineEnabled, showSettings, t])
+ }, [setAiTimelineEnabled])
const renderAiTimelineButton = () => {
if (!showAiTimelineToggle) return null
@@ -182,7 +168,7 @@ export const EntryListHeader: FC<{
{showEntryHeader && }
{(showAiTimelineToggle || showTimelineSummaryButton) && (
- {renderAiTimelineButton()}
+ {aiTimelineEnabled && renderAiTimelineButton()}
{renderTimelineSummaryButton()}
)}
@@ -190,7 +176,7 @@ export const EntryListHeader: FC<{
>
)}
- {!isWideMode && renderAiTimelineButton()}
+ {!isWideMode && aiTimelineEnabled && renderAiTimelineButton()}
{view === FeedViewType.Pictures && }
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/EntryPlaceholderLogo.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/EntryPlaceholderLogo.tsx
index 5e67bb1a2..03aa48c24 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-content/components/EntryPlaceholderLogo.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/EntryPlaceholderLogo.tsx
@@ -4,14 +4,16 @@ import {
DEFAULT_SUMMARIZE_TIMELINE_SHORTCUT_ID,
} from "@follow/shared/settings/defaults"
import { stopPropagation } from "@follow/utils/dom"
+import { useSetAtom } from "jotai"
import { useCallback } from "react"
-import { toast } from "sonner"
import { useSendAIShortcut } from "~/modules/ai-chat/hooks/useSendAIShortcut"
+import { aiTimelineEnabledAtom } from "~/modules/entry-column/atoms/ai-timeline"
import { useSettingModal } from "~/modules/settings/modal/use-setting-modal-hack"
export const EntryPlaceholderLogo = () => {
const { sendAIShortcut } = useSendAIShortcut()
+ const setAiTimelineEnabled = useSetAtom(aiTimelineEnabledAtom)
const settingModalPresent = useSettingModal()
const handleSummarizeTimeline = useCallback(() => {
void sendAIShortcut({
@@ -25,6 +27,9 @@ export const EntryPlaceholderLogo = () => {
ensureNewChat: true,
})
}, [sendAIShortcut])
+ const handleToggleAiTimeline = useCallback(() => {
+ setAiTimelineEnabled((prev) => !prev)
+ }, [setAiTimelineEnabled])
const buttons = [
{
@@ -39,9 +44,7 @@ export const EntryPlaceholderLogo = () => {
},
{
label: "Sort the timeline by importance",
- onClick: () => {
- toast.success("Coming soon!")
- },
+ onClick: handleToggleAiTimeline,
icon: ,
},
{
diff --git a/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
index f90916b7c..b69256236 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/tabs/ai.tsx
@@ -9,10 +9,8 @@ import { ByokSection } from "./ai/byok"
import { MCPServicesSection } from "./ai/mcp/MCPServicesSection"
import { UserMemorySection } from "./ai/memory"
import { PanelStyleSection } from "./ai/PanelStyleSection"
-import { PersonalizePromptSection } from "./ai/PersonalizePromptSection"
import { AIShortcutsSection } from "./ai/shortcuts/AIShortcutsSection"
import { TaskSchedulingSection } from "./ai/tasks"
-import { TimelinePromptSection } from "./ai/TimelinePromptSection"
import { UsageAnalysisSection } from "./ai/usage"
const SettingBuilder = createSettingBuilder(useAISettingValue)
@@ -51,14 +49,6 @@ export const SettingAI = () => {
value: t("personalize.title"),
},
- PersonalizePromptSection,
- {
- type: "title",
- value: t("timeline_prompt.title"),
- id: AI_SETTING_SECTION_IDS.timelinePrompt,
- },
- TimelinePromptSection,
-
{
type: "title",
value: t("shortcuts.title"),
diff --git a/packages/internal/store/src/modules/entry/hooks.ts b/packages/internal/store/src/modules/entry/hooks.ts
index 3f7d3c440..b074fe0e1 100644
--- a/packages/internal/store/src/modules/entry/hooks.ts
+++ b/packages/internal/store/src/modules/entry/hooks.ts
@@ -104,12 +104,13 @@ export const useEntriesQuery = (
queryFn: ({ pageParam }) =>
entrySyncServices.fetchEntries({
...props,
+ limit: aiSort ? 100 : limit,
pageParam,
read: unreadOnly ? false : undefined,
excludePrivate: hidePrivateSubscriptionsInTimeline,
}),
- getNextPageParam: (lastPage) => lastPage.data?.at(-1)?.entries.publishedAt,
+ getNextPageParam: (lastPage) => (aiSort ? null : lastPage.data?.at(-1)?.entries.publishedAt),
initialPageParam: undefined as undefined | string,
refetchOnWindowFocus: false,
refetchOnReconnect: false,
From 6dbf04d5f8bd76fa3ba8a2ffb151ce825d0d6dd8 Mon Sep 17 00:00:00 2001
From: DIYgod
Date: Thu, 20 Nov 2025 15:07:16 +0800
Subject: [PATCH 19/31] refactor: simplify TokenUsagePill component by removing
unused token metadata and adjusting styles in TextSelectionToolbar
---
.../components/message/TokenUsagePill.tsx | 36 +------------------
.../selection/TextSelectionToolbar.tsx | 9 ++---
2 files changed, 4 insertions(+), 41 deletions(-)
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/TokenUsagePill.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/TokenUsagePill.tsx
index f583f8067..587081684 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/TokenUsagePill.tsx
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/TokenUsagePill.tsx
@@ -33,8 +33,6 @@ export const TokenUsagePill: React.FC = ({ metadata, childr
metadata.contextTokens ??
null
- const hasReasoningTokens = metadata.reasoningTokens != null && metadata.reasoningTokens > 0
- const hasCachedInputTokens = metadata.cachedInputTokens != null && metadata.cachedInputTokens > 0
const hasBillingMultiplier =
metadata.billingMultiplier != null && metadata.billingMultiplier !== 1
const hasDuration = metadata.duration != null
@@ -73,43 +71,11 @@ export const TokenUsagePill: React.FC = ({ metadata, childr
{metadata.billedTokens != null && (
Billed:
-
+
{formatTokenCountString(metadata.billedTokens)}
)}
- {metadata.contextTokens != null && (
-
- Context:
-
- {formatTokenCountString(metadata.contextTokens)}
-
-
- )}
- {metadata.outputTokens != null && (
-
- Output:
-
- {formatTokenCountString(metadata.outputTokens)}
-
-
- )}
- {hasReasoningTokens && (
-
- Reasoning:
-
- {formatTokenCountString(metadata.reasoningTokens!)}
-
-
- )}
- {hasCachedInputTokens && (
-
- Cached:
-
- {formatTokenCountString(metadata.cachedInputTokens!)}
-
-
- )}
{(hasDuration || hasBillingMultiplier) && (
<>
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
index 21bc45d86..c97426af9 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
@@ -119,7 +119,7 @@ export function TextSelectionToolbar({
left: position.left,
...styles.toolbar,
}}
- className="pointer-events-auto fixed z-[70] rounded-full border border-border/50 bg-material-ultra-thick px-1.5 py-1 backdrop-blur-background"
+ className="pointer-events-auto fixed z-[70] rounded-xl border border-border/50 bg-material-ultra-thick p-px backdrop-blur-background"
onMouseDown={handleMouseDown}
layout="position"
initial={{ opacity: 0, y: 4, scale: 0.95 }}
@@ -127,10 +127,7 @@ export function TextSelectionToolbar({
transition={Spring.presets.smooth}
>
{/* Inner glow layer */}
-
+
Date: Thu, 20 Nov 2025 15:17:50 +0800
Subject: [PATCH 20/31] refactor: remove unused rate limit message part in
computeRateLimitMessage function
---
.../layer/renderer/src/modules/ai-chat/utils/rate-limit.ts | 1 -
1 file changed, 1 deletion(-)
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/utils/rate-limit.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/utils/rate-limit.ts
index 56d058b78..fb36bddd6 100644
--- a/apps/desktop/layer/renderer/src/modules/ai-chat/utils/rate-limit.ts
+++ b/apps/desktop/layer/renderer/src/modules/ai-chat/utils/rate-limit.ts
@@ -107,7 +107,6 @@ export function computeRateLimitMessage(
const monthly = configuration.freeQuota.remainingMonthlyRequests
if (!daily || !monthly) {
const parts: string[] = []
- parts.push(t("rate_limit.depleted", aiNs))
if (!hideResetDetails) {
if (!daily && monthly) {
parts.push(t("rate_limit.resets_tomorrow", aiNs))
From 11aa71a682eb2b649ecad3b3bea7d82aa8a2f307 Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Thu, 20 Nov 2025 15:32:45 +0800
Subject: [PATCH 21/31] fix: allow image proxy for basic and anonymous user
---
packages/internal/utils/src/img-proxy.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/packages/internal/utils/src/img-proxy.ts b/packages/internal/utils/src/img-proxy.ts
index ac4c1fb0e..9c7c47793 100644
--- a/packages/internal/utils/src/img-proxy.ts
+++ b/packages/internal/utils/src/img-proxy.ts
@@ -1,8 +1,7 @@
export const IMAGE_PROXY_URL = "https://webp.follow.is"
const canUseImageProxy = (userRole?: string | null): boolean => {
- if (!userRole) return false
- return userRole === "plus" || userRole === "pro"
+ return userRole === "plus" || userRole === "pro" || userRole === "basic" || !userRole
}
export const imageRefererMatches = [
From 628d157161b8bf4aa37420047bdec95296514207 Mon Sep 17 00:00:00 2001
From: Innei
Date: Thu, 20 Nov 2025 16:24:06 +0800
Subject: [PATCH 22/31] feat: add share poster functionality with image copying
and localization support
Signed-off-by: Innei
---
.../layer/renderer/src/lib/clipboard.ts | 27 +
.../src/modules/auth/LoginModalContent.tsx | 9 +-
.../components/layouts/ArticleLayout.tsx | 1 +
.../components/selection/GlassButton.tsx | 67 +++
.../components/selection/SharePosterModal.tsx | 535 ++++++++++++++++++
.../selection/TextSelectionToolbar.tsx | 28 +-
locales/app/en.json | 7 +
locales/app/ja.json | 7 +
locales/app/zh-CN.json | 7 +
locales/app/zh-TW.json | 7 +
10 files changed, 689 insertions(+), 6 deletions(-)
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-content/components/selection/GlassButton.tsx
create mode 100644 apps/desktop/layer/renderer/src/modules/entry-content/components/selection/SharePosterModal.tsx
diff --git a/apps/desktop/layer/renderer/src/lib/clipboard.ts b/apps/desktop/layer/renderer/src/lib/clipboard.ts
index 4807060c2..33392f98d 100644
--- a/apps/desktop/layer/renderer/src/lib/clipboard.ts
+++ b/apps/desktop/layer/renderer/src/lib/clipboard.ts
@@ -22,3 +22,30 @@ export const readFromClipboard = async (): Promise => {
throw new Error(message)
}
}
+
+export const copyImageToClipboard = async (canvas: HTMLCanvasElement): Promise => {
+ return new Promise((resolve, reject) => {
+ canvas.toBlob(async (blob) => {
+ if (!blob) {
+ const error = new Error("Failed to create image blob")
+ reject(error)
+ return
+ }
+
+ try {
+ await navigator.clipboard.write([
+ new ClipboardItem({
+ [blob.type]: blob,
+ }),
+ ])
+ resolve()
+ } catch (e) {
+ const message =
+ "Unable to copy image to clipboard. Please ensure clipboard permissions are granted."
+ console.error(e)
+ toast.error(message)
+ reject(new Error(message))
+ }
+ }, "image/png")
+ })
+}
diff --git a/apps/desktop/layer/renderer/src/modules/auth/LoginModalContent.tsx b/apps/desktop/layer/renderer/src/modules/auth/LoginModalContent.tsx
index aeacb90ca..36979684c 100644
--- a/apps/desktop/layer/renderer/src/modules/auth/LoginModalContent.tsx
+++ b/apps/desktop/layer/renderer/src/modules/auth/LoginModalContent.tsx
@@ -13,7 +13,6 @@ import { useEffect, useState } from "react"
import { Trans, useTranslation } from "react-i18next"
import { useServerConfigs } from "~/atoms/server-configs"
-import { GlassButton } from "~/components/ui/button/GlassButton"
import { useCurrentModal, useModalStack } from "~/components/ui/modal/stacked/hooks"
import { authClient, loginHandler } from "~/lib/auth"
import { useAuthProviders } from "~/queries/users"
@@ -121,13 +120,13 @@ export const LoginModalContent = (props: LoginModalContentProps) => {
{!IN_ELECTRON && (
-
-
+
)}
{isEmail ? (
= ({
selection={textSelection}
onRequestClose={handleSelectionClear}
onAskAI={handleAskAI}
+ entryId={entryId}
/>
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/GlassButton.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/GlassButton.tsx
new file mode 100644
index 000000000..899116d8f
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/GlassButton.tsx
@@ -0,0 +1,67 @@
+import { cn } from "@follow/utils"
+import type { HTMLMotionProps } from "motion/react"
+import { m } from "motion/react"
+
+interface GlassButtonProps extends HTMLMotionProps<"button"> {
+ variant?: "primary" | "secondary"
+ isLoading?: boolean
+ ref?: React.Ref
+}
+
+export const GlassButton = ({
+ className,
+ variant = "primary",
+ isLoading,
+ children,
+ disabled,
+ ref,
+ ...props
+}: GlassButtonProps) => {
+ const isPrimary = variant === "primary"
+
+ return (
+
+ {/* Hover shine effect for primary */}
+ {isPrimary && (
+
+ )}
+ {children as React.ReactNode}
+
+ )
+}
+
+GlassButton.displayName = "GlassButton"
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/SharePosterModal.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/SharePosterModal.tsx
new file mode 100644
index 000000000..de7bf7a6a
--- /dev/null
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/SharePosterModal.tsx
@@ -0,0 +1,535 @@
+import { Spring } from "@follow/components/constants/spring.js"
+import { useEntry } from "@follow/store/entry/hooks"
+import { useFeedById } from "@follow/store/feed/hooks"
+import { cn } from "@follow/utils"
+import { m } from "motion/react"
+import { useCallback, useEffect, useRef, useState } from "react"
+import { useTranslation } from "react-i18next"
+import { toast } from "sonner"
+
+import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
+import { copyImageToClipboard } from "~/lib/clipboard"
+import { UrlBuilder } from "~/lib/url-builder"
+
+import { GlassButton } from "./GlassButton"
+
+type SharePosterModalProps = {
+ selectedText: string
+ entryId: string
+}
+
+type Mode = "light" | "dark"
+
+export function SharePosterModal({ selectedText, entryId }: SharePosterModalProps) {
+ const { t } = useTranslation()
+ const { dismiss } = useCurrentModal()
+ const canvasRef = useRef(null)
+ const [isCopying, setIsCopying] = useState(false)
+ const [authorAvatarImg, setAuthorAvatarImg] = useState(null)
+ const [mode, setMode] = useState(
+ document.documentElement.classList.contains("dark") ? "dark" : "light",
+ )
+
+ const entry = useEntry(entryId, (state) => ({
+ title: state.title,
+ feedId: state.feedId,
+ author: state.author,
+ authorAvatar: state.authorAvatar,
+ publishedAt: state.publishedAt,
+ url: state.url,
+ }))
+
+ const feed = useFeedById(entry?.feedId)
+
+ // Load author avatar image
+ useEffect(() => {
+ if (entry?.authorAvatar) {
+ loadImage(entry.authorAvatar).then(setAuthorAvatarImg)
+ } else {
+ setAuthorAvatarImg(null)
+ }
+ }, [entry?.authorAvatar])
+
+ const draw = useCallback(() => {
+ const canvas = canvasRef.current
+ if (!canvas) return
+
+ const ctx = canvas.getContext("2d", {
+ alpha: false, // Better performance for opaque backgrounds
+ desynchronized: false, // Better quality
+ })
+ if (!ctx) return
+
+ // High resolution for crisp text - use higher scale for better quality
+ // Scale 3 provides excellent quality for long text
+ const scale = 3
+ const baseWidth = 720
+ const width = baseWidth * scale
+
+ // --- Config ---
+ const baseConfig = {
+ bg: mode === "dark" ? "#0f0f0f" : "#ffffff",
+ bgGradient:
+ mode === "dark" ? ["#1a1a1a", "#0f0f0f", "#0a0a0a"] : ["#fafafa", "#ffffff", "#f5f5f5"],
+ text: mode === "dark" ? "#f5f5f5" : "#1a1a1a",
+ textSecondary: mode === "dark" ? "#a3a3a3" : "#525252",
+ accent: mode === "dark" ? "#737373" : "#737373",
+ quoteColor: mode === "dark" ? "#404040" : "#e5e5e5",
+ logoColor: mode === "dark" ? "#ff5c00" : "#ff5c00",
+ fontFamilyTitle: "-apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif",
+ fontFamilyBody: "-apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif",
+ fontFamilyMeta: "-apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif",
+ sizeTitle: 36,
+ sizeBody: 26,
+ sizeMeta: 14,
+ lineHeight: 1.7,
+ titleLineHeight: 1.4,
+ maxBodyLines: 18, // Limit body text to 18 lines
+ }
+
+ const config = {
+ ...baseConfig,
+ fontTitle: `600 ${baseConfig.sizeTitle}px ${baseConfig.fontFamilyTitle}`,
+ fontBody: `400 ${baseConfig.sizeBody}px ${baseConfig.fontFamilyBody}`,
+ fontMeta: `500 ${baseConfig.sizeMeta}px ${baseConfig.fontFamilyMeta}`,
+ }
+
+ // --- Measure Height ---
+ const padding = 56
+ const contentWidth = width / scale - padding * 2
+
+ // Measure Body - with truncation
+ ctx.font = config.fontBody
+ const allBodyLines = wrapText(ctx, selectedText, contentWidth)
+ const bodyLines = allBodyLines.slice(0, config.maxBodyLines)
+ const bodyHeight = bodyLines.length * (baseConfig.sizeBody * config.lineHeight)
+
+ // Measure Title
+ let titleHeight = 0
+ if (entry?.title) {
+ ctx.font = config.fontTitle
+ const titleLines = wrapText(ctx, entry.title, contentWidth)
+ titleHeight = titleLines.length * (baseConfig.sizeTitle * config.titleLineHeight) + 24 // + margin
+ }
+
+ // Total Height Calculation
+ const headerHeight = 72
+ const authorHeight = entry?.author ? 48 : 0 // Increased for avatar
+ const footerHeight = 80 // Increased for logo
+ const spacing = 48
+ const quoteSpacing = 32
+
+ const totalContentHeight =
+ padding +
+ headerHeight +
+ quoteSpacing +
+ bodyHeight +
+ spacing +
+ titleHeight +
+ authorHeight +
+ footerHeight +
+ padding
+ const minHeight = 800
+ const finalHeight = Math.max(minHeight, totalContentHeight) * scale
+
+ // Resize canvas
+ canvas.width = width
+ canvas.height = finalHeight
+
+ // Enable high-quality rendering
+ ctx.imageSmoothingEnabled = true
+ ctx.imageSmoothingQuality = "high"
+
+ // Scale context for high DPI rendering
+ ctx.scale(scale, scale)
+
+ const w = width / scale
+ const h = finalHeight / scale
+
+ // --- Background with Gradient ---
+ const gradient = ctx.createLinearGradient(0, 0, 0, h)
+ const bgColors = config.bgGradient
+ gradient.addColorStop(0, bgColors[0] ?? config.bg)
+ gradient.addColorStop(0.5, bgColors[1] ?? config.bg)
+ gradient.addColorStop(1, bgColors[2] ?? config.bg)
+ ctx.fillStyle = gradient
+ ctx.fillRect(0, 0, w, h)
+
+ // Subtle texture overlay
+ ctx.save()
+ ctx.globalAlpha = 0.03
+ for (let i = 0; i < w; i += 4) {
+ for (let j = 0; j < h; j += 4) {
+ if ((i + j) % 8 === 0) {
+ ctx.fillStyle = mode === "dark" ? "#ffffff" : "#000000"
+ ctx.fillRect(i, j, 1, 1)
+ }
+ }
+ }
+ ctx.restore()
+
+ // --- Layout Drawing ---
+ let currentY = padding + 24
+
+ // 1. Header (Feed Info)
+ ctx.fillStyle = config.textSecondary
+ ctx.globalAlpha = 0.7
+ ctx.font = config.fontMeta
+ ctx.textAlign = "left"
+ ctx.textBaseline = "top"
+
+ const dateStr = entry?.publishedAt
+ ? new Date(entry.publishedAt).toLocaleDateString(undefined, {
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ })
+ : new Date().toLocaleDateString()
+
+ const headerText = `${feed?.title || "Folo"} • ${dateStr}`
+ ctx.fillText(headerText, padding, currentY)
+
+ currentY += headerHeight
+
+ // 2. Quote Body with improved styling
+ ctx.save()
+
+ // Decorative Quote Mark - larger and more refined
+ ctx.fillStyle = config.quoteColor
+ ctx.globalAlpha = 0.4
+ ctx.font = "bold 64px Georgia, serif"
+ ctx.textAlign = "left"
+ ctx.textBaseline = "top"
+ ctx.fillText("\u201C", padding - 36, currentY - 24)
+
+ ctx.restore()
+
+ // Body text with better spacing
+ ctx.fillStyle = config.text
+ ctx.globalAlpha = 1
+ ctx.font = config.fontBody
+ ctx.textAlign = "left"
+ ctx.textBaseline = "top"
+
+ bodyLines.forEach((line, index) => {
+ // Add slight indentation for continuation lines
+ const indent = index === 0 ? 0 : 24
+ ctx.fillText(line, padding + indent, currentY)
+ currentY += baseConfig.sizeBody * config.lineHeight
+ })
+
+ // Show truncation indicator if text was truncated
+ if (allBodyLines.length > config.maxBodyLines) {
+ currentY += 8
+ ctx.fillStyle = config.textSecondary
+ ctx.globalAlpha = 0.6
+ ctx.font = config.fontMeta
+ ctx.fillText("...", padding, currentY)
+ ctx.globalAlpha = 1
+ }
+
+ currentY += spacing
+
+ // 3. Divider line
+ ctx.save()
+ ctx.strokeStyle = config.quoteColor
+ ctx.globalAlpha = 0.2
+ ctx.lineWidth = 1
+ ctx.beginPath()
+ ctx.moveTo(padding, currentY - spacing / 2)
+ ctx.lineTo(w - padding, currentY - spacing / 2)
+ ctx.stroke()
+ ctx.restore()
+
+ // 4. Entry Title & Author
+ if (entry?.title) {
+ currentY += 8
+ ctx.fillStyle = config.text
+ ctx.globalAlpha = 0.9
+ ctx.font = config.fontTitle
+ const titleLines = wrapText(ctx, entry.title, contentWidth)
+ titleLines.forEach((line) => {
+ ctx.fillText(line, padding, currentY)
+ currentY += baseConfig.sizeTitle * config.titleLineHeight
+ })
+ }
+
+ if (entry?.author) {
+ currentY += 16
+
+ // Draw author avatar if available
+ const avatarSize = 32
+ const avatarX = padding
+ const avatarY = currentY
+
+ if (authorAvatarImg) {
+ // Draw circular avatar
+ ctx.save()
+ ctx.beginPath()
+ ctx.arc(avatarX + avatarSize / 2, avatarY + avatarSize / 2, avatarSize / 2, 0, Math.PI * 2)
+ ctx.clip()
+ ctx.drawImage(authorAvatarImg, avatarX, avatarY, avatarSize, avatarSize)
+ ctx.restore()
+ }
+
+ // Draw author name
+ ctx.fillStyle = config.textSecondary
+ ctx.globalAlpha = 0.8
+ ctx.font = config.fontMeta
+ const authorTextX = authorAvatarImg ? padding + avatarSize + 12 : padding
+ ctx.fillText(`By ${entry.author}`, authorTextX, avatarY + avatarSize / 2 - 7)
+ ctx.globalAlpha = 1
+ }
+
+ // 5. Footer / Branding - Draw Folo logo and text
+ const footerY = h - padding - 24
+ const logoSize = 36
+ const gap = 16
+ const svgScale = logoSize / 24
+
+ // Calculate positions for [Logo] [Folo] aligned to right
+ // Total width = logoSize + gap + logoSize (assuming folo text is also 24x24 scaled)
+ const totalWidth = logoSize + gap + logoSize
+ const startX = w - padding - totalWidth
+
+ const logoX = startX
+ const foloX = startX + logoSize + gap
+ const drawY = footerY - logoSize / 2
+
+ ctx.save()
+
+ // Draw Logo
+ ctx.translate(logoX, drawY)
+ ctx.scale(svgScale, svgScale)
+
+ // Logo Background
+ ctx.fillStyle = config.logoColor
+ const logoBgPath = new Path2D(
+ "M5.382 0h13.236A5.37 5.37 0 0 1 24 5.383v13.235A5.37 5.37 0 0 1 18.618 24H5.382A5.37 5.37 0 0 1 0 18.618V5.383A5.37 5.37 0 0 1 5.382.001Z",
+ )
+ ctx.fill(logoBgPath)
+
+ // Logo F
+ ctx.fillStyle = "#ffffff"
+ const logoFPath = new Path2D(
+ "M13.269 17.31a1.813 1.813 0 1 0-3.626.002 1.813 1.813 0 0 0 3.626-.002m-.535-6.527H7.213a1.813 1.813 0 1 0 0 3.624h5.521a1.813 1.813 0 1 0 0-3.624m4.417-4.712H8.87a1.813 1.813 0 1 0 0 3.625h8.283a1.813 1.813 0 1 0 0-3.624z",
+ )
+ ctx.fill(logoFPath)
+
+ ctx.restore()
+
+ // Draw Folo Text
+ ctx.save()
+ ctx.translate(foloX, drawY)
+ ctx.scale(svgScale, svgScale)
+
+ ctx.fillStyle = config.textSecondary
+ ctx.globalAlpha = 0.6
+ const foloPath = new Path2D(
+ "M.899 16.997c-.567 0-.899-.358-.899-.994v-7.77c0-.637.36-.996 1.01-.996h4.34c.595 0 .927.29.927.788 0 .497-.332.774-.926.774H1.797v2.336H5.06c.595 0 .927.263.927.76 0 .512-.332.775-.927.775H1.797v3.332c0 .636-.318.996-.898.996m9.035.125c-2.101 0-3.553-1.52-3.553-3.664 0-2.17 1.438-3.705 3.553-3.705 2.13 0 3.567 1.534 3.567 3.705 0 2.143-1.452 3.664-3.567 3.664m0-1.493c1.134 0 1.825-.899 1.825-2.185 0-1.3-.691-2.198-1.825-2.198s-1.797.899-1.797 2.198c0 1.286.663 2.185 1.797 2.185m5.266 1.367c-.553 0-.857-.359-.857-.967V7.845c0-.608.304-.968.857-.968s.857.36.857.968v8.185c0 .608-.29.967-.857.967m5.234.125c-2.102 0-3.553-1.52-3.553-3.664 0-2.17 1.438-3.705 3.553-3.705 2.129 0 3.566 1.534 3.566 3.704 0 2.143-1.452 3.664-3.567 3.664m0-1.493c1.134 0 1.825-.899 1.825-2.185 0-1.3-.691-2.198-1.825-2.198s-1.797.899-1.797 2.198c0 1.286.663 2.185 1.797 2.185",
+ )
+ ctx.fill(foloPath)
+
+ ctx.restore()
+ }, [entry, feed, mode, selectedText, authorAvatarImg])
+
+ useEffect(() => {
+ draw()
+ }, [draw])
+
+ const handleCopy = useCallback(async () => {
+ if (!canvasRef.current || isCopying) return
+
+ setIsCopying(true)
+ try {
+ await copyImageToClipboard(canvasRef.current)
+ toast.success(t("entry_content.selection_toolbar.poster_copied"))
+ dismiss()
+ } catch (error) {
+ console.error("Failed to copy image:", error)
+ toast.error(t("entry_content.selection_toolbar.poster_copy_failed"))
+ } finally {
+ setIsCopying(false)
+ }
+ }, [isCopying, t, dismiss])
+
+ const handleShareToX = useCallback(() => {
+ if (!entry) return
+ const text = selectedText.length > 200 ? `${selectedText.slice(0, 200)}...` : selectedText
+ const shareUrl = UrlBuilder.shareEntry(entryId)
+ const intentUrl = `https://x.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(shareUrl)}`
+ window.open(intentUrl, "_blank")
+ }, [entry, selectedText, entryId])
+
+ return (
+ e.stopPropagation()}>
+
+ {/* Preview Card */}
+
+
+
+
+ {/* Floating Toolbar - Glassmorphic Design */}
+
+ {/* Inner glow layer */}
+
+
+ {/* Content */}
+
+ {/* Mode Toggle - Glassmorphic Button */}
+
setMode(mode === "light" ? "dark" : "light")}
+ className={cn(
+ "relative flex size-8 items-center justify-center rounded-full",
+ "text-text-secondary transition-all duration-300",
+ "hover:bg-fill/20 hover:text-text",
+ )}
+ whileTap={{ scale: 0.95 }}
+ title="Toggle Appearance"
+ >
+
+
+
+ {/* Share to X */}
+
+
+
+
+ {/* Divider */}
+
+
+ {/* Actions */}
+
+ dismiss()}>
+ {t("words.close", { ns: "common" })}
+
+
+ {isCopying ? (
+
+ ) : (
+
+ )}
+
+ {isCopying
+ ? t("entry_content.selection_toolbar.copying")
+ : t("entry_content.selection_toolbar.copy_image")}
+
+
+
+
+
+
+
+ )
+}
+
+// Helper function to load image from URL
+function loadImage(url: string): Promise {
+ return new Promise((resolve) => {
+ const img = new Image()
+ img.crossOrigin = "anonymous"
+ img.onload = () => resolve(img)
+ img.onerror = () => resolve(null)
+ img.src = url
+ })
+}
+
+function wrapText(ctx: CanvasRenderingContext2D, text: string, maxWidth: number): string[] {
+ const lines: string[] = []
+
+ // Check if text contains Chinese/Japanese/Korean characters
+ const hasCJK = /[\u4e00-\u9fff\u3040-\u309f\u30a0-\u30ff\uac00-\ud7af]/.test(text)
+
+ if (hasCJK) {
+ // For CJK text, split by character and build lines
+ let currentLine = ""
+
+ for (const char of text) {
+ const testLine = currentLine + char
+ const metrics = ctx.measureText(testLine)
+
+ if (metrics.width > maxWidth && currentLine.length > 0) {
+ lines.push(currentLine)
+ currentLine = char
+ } else {
+ currentLine = testLine
+ }
+ }
+
+ if (currentLine) {
+ lines.push(currentLine)
+ }
+ } else {
+ // For non-CJK text, split by words
+ const words = text.split(/\s+/)
+ let currentLine = words[0] || ""
+
+ for (let i = 1; i < words.length; i++) {
+ const word = words[i]
+ if (!word) continue
+ const testLine = currentLine ? `${currentLine} ${word}` : word
+ const metrics = ctx.measureText(testLine)
+
+ if (metrics.width > maxWidth && currentLine.length > 0) {
+ lines.push(currentLine)
+ currentLine = word
+ } else {
+ currentLine = testLine
+ }
+ }
+
+ if (currentLine) {
+ lines.push(currentLine)
+ }
+ }
+
+ return lines.length > 0 ? lines : [text]
+}
diff --git a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
index c97426af9..769cbf7f3 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-content/components/selection/TextSelectionToolbar.tsx
@@ -6,9 +6,13 @@ import type { CSSProperties, MouseEventHandler } from "react"
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
import { useTranslation } from "react-i18next"
+import { PlainModal } from "~/components/ui/modal/stacked/custom-modal"
+import { useModalStack } from "~/components/ui/modal/stacked/hooks"
import { copyToClipboard } from "~/lib/clipboard"
import type { TextSelectionEvent } from "~/lib/simple-text-selection"
+import { SharePosterModal } from "./SharePosterModal"
+
const styles = {
toolbar: {
backgroundImage:
@@ -26,6 +30,7 @@ type TextSelectionToolbarProps = {
selection: TextSelectionEvent | null
onRequestClose: () => void
onAskAI?: (selection: TextSelectionEvent) => void
+ entryId?: string
}
const DEFAULT_DIMENSIONS = {
@@ -39,8 +44,10 @@ export function TextSelectionToolbar({
selection,
onRequestClose,
onAskAI,
+ entryId,
}: TextSelectionToolbarProps) {
const { t } = useTranslation()
+ const { present } = useModalStack()
const toolbarRef = useRef(null)
const [toolbarSize, setToolbarSize] = useState(DEFAULT_DIMENSIONS)
const [copied, setCopied] = useState(false)
@@ -104,6 +111,18 @@ export function TextSelectionToolbar({
setCopied(true)
}, [selection])
+ const handleShare = useCallback(() => {
+ if (!selection || !entryId) return
+ present({
+ CustomModalComponent: PlainModal,
+ title: t("entry_content.selection_toolbar.share_poster"),
+ id: "share-poster",
+ content: () => ,
+ clickOutsideToDismiss: true,
+ })
+ onRequestClose()
+ }, [selection, entryId, present, onRequestClose, t])
+
const handleMouseDown: MouseEventHandler = (event) => {
event.preventDefault()
}
@@ -139,6 +158,13 @@ export function TextSelectionToolbar({
onClick={handleCopy}
active={copied}
/>
+ {entryId ? (
+
+ ) : null}
{onAskAI ? (
Date: Thu, 20 Nov 2025 17:09:15 +0800
Subject: [PATCH 23/31] feat: read secure image setting from server
---
.../src/components/ui/media/Media.tsx | 5 +-
.../ui/media/PreviewMediaContent.tsx | 3 +-
.../src/components/ui/media/hooks.tsx | 4 +-
.../layer/renderer/src/lib/img-proxy.ts | 45 ++-
.../entry-column/Items/media-gallery.tsx | 3 +-
.../src/modules/feed/feed-certification.tsx | 3 +-
.../renderer/src/modules/feed/feed-icon.tsx | 33 +-
.../profile/user-profile-modal/shared.tsx | 3 +-
.../renderer/src/modules/user/UserAvatar.tsx | 3 +-
apps/mobile/src/lib/img-proxy.ts | 9 +-
apps/ssr/client/components/ui/feed-icon.tsx | 1 +
apps/ssr/client/components/ui/image.tsx | 1 +
.../components/src/ui/avatar/index.tsx | 2 -
packages/internal/utils/src/img-proxy.ts | 16 +-
pnpm-lock.yaml | 288 ++++++++++--------
pnpm-workspace.yaml | 2 +-
16 files changed, 254 insertions(+), 167 deletions(-)
diff --git a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
index d93c8cfdd..34ca3c3fb 100644
--- a/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
+++ b/apps/desktop/layer/renderer/src/components/ui/media/Media.tsx
@@ -8,7 +8,7 @@ import { memo, use, useEffect, useMemo, useRef, useState } from "react"
import { Blurhash, BlurhashCanvas } from "react-blurhash"
import { useEventCallback } from "usehooks-ts"
-import { getImageProxyUrl } from "~/lib/img-proxy"
+import { useGetImageProxyUrl } from "~/lib/img-proxy"
import { saveImageDimensionsToDb } from "~/store/image/db"
import { useMediaContainerWidth, usePreviewMedia } from "./hooks"
@@ -77,6 +77,7 @@ const MediaImpl: FC = ({
videoClassName,
...rest
} = props
+ const getImageProxyUrl = useGetImageProxyUrl()
const ctxMediaInfo = use(MediaInfoRecordContext)
const ctxHeight = ctxMediaInfo[src!]?.height
@@ -121,7 +122,7 @@ const MediaImpl: FC = ({
}
return sources
- }, [src, proxy, preferOrigin])
+ }, [src, proxy, preferOrigin, getImageProxyUrl])
const [currentSourceIndex, setCurrentSourceIndex] = useState(0)
const [isError, setIsError] = useState(false)
diff --git a/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx b/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx
index b9237ac30..a85e576da 100644
--- a/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx
+++ b/apps/desktop/layer/renderer/src/components/ui/media/PreviewMediaContent.tsx
@@ -18,7 +18,7 @@ import { m } from "~/components/common/Motion"
import { GlassButton } from "~/components/ui/button/GlassButton"
import { COPY_MAP } from "~/constants"
import { ipcServices } from "~/lib/client"
-import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
+import { useReplaceImgUrlIfNeed } from "~/lib/img-proxy"
import { useCurrentModal } from "../modal/stacked/hooks"
import type { VideoPlayerRef } from "./VideoPlayer"
@@ -421,6 +421,7 @@ const FallbackableImage: FC<
onZoomChange?: (isZoomed: boolean) => void
}
> = ({ src, fallbackUrl, containerClassName, onZoomChange, loading }) => {
+ const replaceImgUrlIfNeed = useReplaceImgUrlIfNeed()
const [currentSrc, setCurrentSrc] = useState(() => replaceImgUrlIfNeed(src))
const [isAllError, setIsAllError] = useState(false)
diff --git a/apps/desktop/layer/renderer/src/components/ui/media/hooks.tsx b/apps/desktop/layer/renderer/src/components/ui/media/hooks.tsx
index a0e6cfa51..236292374 100644
--- a/apps/desktop/layer/renderer/src/components/ui/media/hooks.tsx
+++ b/apps/desktop/layer/renderer/src/components/ui/media/hooks.tsx
@@ -1,8 +1,6 @@
import { isMobile } from "@follow/components/hooks/useMobile.js"
import { use, useCallback } from "react"
-import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
-
import { PlainModal } from "../modal/stacked/custom-modal"
import { useModalStack } from "../modal/stacked/hooks"
import { MediaContainerWidthContext } from "./MediaContainerWidthContext"
@@ -17,7 +15,7 @@ export const usePreviewMedia = (children?: React.ReactNode) => {
return
}
if (isMobile()) {
- window.open(replaceImgUrlIfNeed(media[initialIndex]!.url))
+ window.open(media[initialIndex]!.url)
return
}
present({
diff --git a/apps/desktop/layer/renderer/src/lib/img-proxy.ts b/apps/desktop/layer/renderer/src/lib/img-proxy.ts
index 195f657d7..273d53fc0 100644
--- a/apps/desktop/layer/renderer/src/lib/img-proxy.ts
+++ b/apps/desktop/layer/renderer/src/lib/img-proxy.ts
@@ -1,23 +1,40 @@
import { WEB_BUILD } from "@follow/shared/constants"
-import { role as getUserRole } from "@follow/store/user/getters"
+import { useUserRole } from "@follow/store/user/hooks"
import {
getImageProxyUrl as getImageProxyUrlUtils,
replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils,
} from "@follow/utils/img-proxy"
-export const replaceImgUrlIfNeed = (url?: string) => {
- return replaceImgUrlIfNeedUtils({
- url,
- inBrowser: WEB_BUILD,
- userRole: getUserRole(),
- })
+import { useServerConfigs } from "~/atoms/server-configs"
+
+export const useCanUseImageProxy = () => {
+ const userRole = useUserRole()
+ const serverConfig = useServerConfigs()
+ const canUseProxy =
+ !userRole ||
+ serverConfig?.PAYMENT_PLAN_LIST.find((i) => i.role === userRole)?.limit.SECURE_IMAGE_PROXY
+ return canUseProxy
}
-export const getImageProxyUrl = (
- params: Omit[0], "userRole">,
-) => {
- return getImageProxyUrlUtils({
- ...params,
- userRole: getUserRole(),
- })
+export const useReplaceImgUrlIfNeed = () => {
+ const canUseProxy = useCanUseImageProxy()
+
+ return (url?: string) => {
+ return replaceImgUrlIfNeedUtils({
+ url,
+ inBrowser: WEB_BUILD,
+ canUseProxy,
+ })
+ }
+}
+
+export const useGetImageProxyUrl = () => {
+ const canUseProxy = useCanUseImageProxy()
+
+ return (params: Omit[0], "canUseProxy">) => {
+ return getImageProxyUrlUtils({
+ canUseProxy,
+ ...params,
+ })
+ }
}
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
index 319952462..6c9e8987e 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/Items/media-gallery.tsx
@@ -4,7 +4,7 @@ import { useMemo } from "react"
import { usePreviewMedia } from "~/components/ui/media/hooks"
import { Media } from "~/components/ui/media/Media"
-import { getImageProxyUrl } from "~/lib/img-proxy"
+import { useGetImageProxyUrl } from "~/lib/img-proxy"
import { jotaiStore } from "~/lib/jotai"
import { socialMediaContentWidthAtom } from "../atoms/social-media-content-width"
@@ -16,6 +16,7 @@ export const MediaGallery = ({
entryId: string
containerWidth?: number
}) => {
+ const getImageProxyUrl = useGetImageProxyUrl()
const entry = useEntry(entryId, (state) => ({ media: state.media }))
const media = useMemo(() => entry?.media || [], [entry?.media])
diff --git a/apps/desktop/layer/renderer/src/modules/feed/feed-certification.tsx b/apps/desktop/layer/renderer/src/modules/feed/feed-certification.tsx
index edd41757e..9c956951d 100644
--- a/apps/desktop/layer/renderer/src/modules/feed/feed-certification.tsx
+++ b/apps/desktop/layer/renderer/src/modules/feed/feed-certification.tsx
@@ -11,7 +11,7 @@ import { useUserById, useWhoami } from "@follow/store/user/hooks"
import { cn } from "@follow/utils/utils"
import { useTranslation } from "react-i18next"
-import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
+import { useReplaceImgUrlIfNeed } from "~/lib/img-proxy"
import { usePresentUserProfileModal } from "~/modules/profile/hooks"
export const FeedCertification = ({
@@ -76,6 +76,7 @@ export const FeedCertification = ({
}
const FeedCertificateAvatar = ({ userId }: { userId: string }) => {
+ const replaceImgUrlIfNeed = useReplaceImgUrlIfNeed()
const user = useUserById(userId)
const presentUserProfile = usePresentUserProfileModal("drawer")
if (!user) return null
diff --git a/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx b/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
index d865bea80..ed8106143 100644
--- a/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
+++ b/apps/desktop/layer/renderer/src/modules/feed/feed-icon.tsx
@@ -2,13 +2,14 @@
import { PlatformIcon } from "@follow/components/ui/platform-icon/index.jsx"
import type { FeedModel } from "@follow/store/feed/types"
import { getBackgroundGradient } from "@follow/utils/color"
+import { getImageProxyUrl } from "@follow/utils/img-proxy"
import { cn, getUrlIcon } from "@follow/utils/utils"
import * as AvatarPrimitive from "@radix-ui/react-avatar"
import { m } from "motion/react"
import type { ReactNode } from "react"
import { useMemo } from "react"
-import { getImageProxyUrl } from "~/lib/img-proxy"
+import { useCanUseImageProxy } from "~/lib/img-proxy"
const { Avatar, AvatarFallback, AvatarImage } = AvatarPrimitive
@@ -28,9 +29,19 @@ type GetIconPropsProps = {
fallbackUrl?: string
fallback?: boolean
size?: number
+ canUseProxy?: boolean
}
function getIconProps(props: GetIconPropsProps) {
- const { target, entry, useMedia, siteUrl: propSiteUrl, fallbackUrl, fallback, size = 20 } = props
+ const {
+ target,
+ entry,
+ useMedia,
+ siteUrl: propSiteUrl,
+ fallbackUrl,
+ fallback,
+ size = 20,
+ canUseProxy,
+ } = props
const image =
(useMedia ? entry?.firstPhotoUrl || entry?.authorAvatar : entry?.authorAvatar) || target?.image
const siteUrl = (target as FeedModel)?.siteUrl || fallbackUrl
@@ -38,6 +49,7 @@ function getIconProps(props: GetIconPropsProps) {
if (propSiteUrl && !target) {
const [src] = getFeedIconSrc({
siteUrl: propSiteUrl,
+ canUseProxy,
})
return {
type: "image" as const,
@@ -53,6 +65,7 @@ function getIconProps(props: GetIconPropsProps) {
url: image,
width: size * 2,
height: size * 2,
+ canUseProxy,
}),
platformUrl: image,
fallbackSrc: "",
@@ -67,6 +80,7 @@ function getIconProps(props: GetIconPropsProps) {
width: size * 2,
height: size * 2,
},
+ canUseProxy,
})
return {
type: "image" as const,
@@ -97,11 +111,13 @@ const getFeedIconSrc = ({
siteUrl,
fallback,
proxy,
+ canUseProxy,
}: {
src?: string
siteUrl?: string
fallback?: boolean
proxy?: { height: number; width: number }
+ canUseProxy?: boolean
} = {}) => {
if (src) {
if (proxy) {
@@ -110,6 +126,7 @@ const getFeedIconSrc = ({
url: src,
width: proxy.width,
height: proxy.height,
+ canUseProxy,
}),
"",
]
@@ -201,7 +218,17 @@ export function FeedIcon({
noMargin?: boolean
}) {
const marginClassName = cn(noMargin ? "" : "mr-2", className)
- const iconProps = getIconProps({ target, entry, useMedia, siteUrl, fallbackUrl, fallback, size })
+ const canUseProxy = useCanUseImageProxy()
+ const iconProps = getIconProps({
+ target,
+ entry,
+ useMedia,
+ siteUrl,
+ fallbackUrl,
+ fallback,
+ size,
+ canUseProxy,
+ })
const colors = useMemo(
() => getBackgroundGradient(target?.title || (target as FeedModel)?.url || siteUrl || ""),
diff --git a/apps/desktop/layer/renderer/src/modules/profile/user-profile-modal/shared.tsx b/apps/desktop/layer/renderer/src/modules/profile/user-profile-modal/shared.tsx
index be3f93fa0..7ac3af135 100644
--- a/apps/desktop/layer/renderer/src/modules/profile/user-profile-modal/shared.tsx
+++ b/apps/desktop/layer/renderer/src/modules/profile/user-profile-modal/shared.tsx
@@ -21,7 +21,7 @@ import { useEventCallback } from "usehooks-ts"
import { m } from "~/components/common/Motion"
import { useFollow } from "~/hooks/biz/useFollow"
import { useI18n } from "~/hooks/common"
-import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
+import { useReplaceImgUrlIfNeed } from "~/lib/img-proxy"
import { FeedIcon } from "~/modules/feed/feed-icon"
import { useUserSubscriptionsQuery } from "~/modules/profile/hooks"
@@ -39,6 +39,7 @@ export const SubscriptionItems = ({
userId: string
itemStyle: ItemVariant
}) => {
+ const replaceImgUrlIfNeed = useReplaceImgUrlIfNeed()
const profile = usePrefetchUser(userId)
const userInfo = useUserById(userId)
const subscriptions = useUserSubscriptionsQuery(userId)
diff --git a/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx b/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
index 6ec631a38..1fc6dbc2a 100644
--- a/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
+++ b/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
@@ -5,7 +5,7 @@ import { getColorScheme, stringToHue } from "@follow/utils/color"
import { cn } from "@follow/utils/utils"
import { useServerConfigs } from "~/atoms/server-configs"
-import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
+import { useReplaceImgUrlIfNeed } from "~/lib/img-proxy"
import { usePresentUserProfileModal } from "~/modules/profile/hooks"
import type { LoginProps } from "./LoginButton"
@@ -29,6 +29,7 @@ export const UserAvatar = ({
enableModal?: boolean
} & LoginProps &
React.HTMLAttributes & { ref?: React.Ref }) => {
+ const replaceImgUrlIfNeed = useReplaceImgUrlIfNeed()
const serverConfig = useServerConfigs()
const whoami = useWhoami()
const role = useUserRole()
diff --git a/apps/mobile/src/lib/img-proxy.ts b/apps/mobile/src/lib/img-proxy.ts
index 3f97566ba..bfafe9f21 100644
--- a/apps/mobile/src/lib/img-proxy.ts
+++ b/apps/mobile/src/lib/img-proxy.ts
@@ -1,23 +1,22 @@
-import { role as getUserRole } from "@follow/store/user/getters"
import {
getImageProxyUrl as getImageProxyUrlUtils,
replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils,
} from "@follow/utils/img-proxy"
export const getImageProxyUrl = (
- params: Omit[0], "userRole">,
+ params: Omit[0], "canUseProxy">,
) => {
return getImageProxyUrlUtils({
...params,
- userRole: getUserRole(),
+ canUseProxy: true,
})
}
export const replaceImgUrlIfNeed = (
- params: Omit[0], "userRole">,
+ params: Omit[0], "canUseProxy">,
) => {
return replaceImgUrlIfNeedUtils({
...params,
- userRole: getUserRole(),
+ canUseProxy: true,
})
}
diff --git a/apps/ssr/client/components/ui/feed-icon.tsx b/apps/ssr/client/components/ui/feed-icon.tsx
index 3a23044ac..eef22d094 100644
--- a/apps/ssr/client/components/ui/feed-icon.tsx
+++ b/apps/ssr/client/components/ui/feed-icon.tsx
@@ -28,6 +28,7 @@ const getFeedIconSrc = ({
url: src,
width: proxy.width,
height: proxy.height,
+ canUseProxy: true,
}),
"",
]
diff --git a/apps/ssr/client/components/ui/image.tsx b/apps/ssr/client/components/ui/image.tsx
index ad48f022c..5dc5b248d 100644
--- a/apps/ssr/client/components/ui/image.tsx
+++ b/apps/ssr/client/components/ui/image.tsx
@@ -41,6 +41,7 @@ export const LazyImage = ({
url: src,
width: proxy?.width,
height: proxy?.height,
+ canUseProxy: true,
})
}, [src, proxy?.height, proxy?.width])
return (
diff --git a/packages/internal/components/src/ui/avatar/index.tsx b/packages/internal/components/src/ui/avatar/index.tsx
index f832d97b6..0842052e3 100644
--- a/packages/internal/components/src/ui/avatar/index.tsx
+++ b/packages/internal/components/src/ui/avatar/index.tsx
@@ -1,4 +1,3 @@
-import { replaceImgUrlIfNeed } from "@follow/utils/img-proxy"
import { cn } from "@follow/utils/utils"
import * as AvatarPrimitive from "@radix-ui/react-avatar"
import * as React from "react"
@@ -28,7 +27,6 @@ export const AvatarImage = ({
)
diff --git a/packages/internal/utils/src/img-proxy.ts b/packages/internal/utils/src/img-proxy.ts
index 9c7c47793..b9c4051e5 100644
--- a/packages/internal/utils/src/img-proxy.ts
+++ b/packages/internal/utils/src/img-proxy.ts
@@ -1,9 +1,5 @@
export const IMAGE_PROXY_URL = "https://webp.follow.is"
-const canUseImageProxy = (userRole?: string | null): boolean => {
- return userRole === "plus" || userRole === "pro" || userRole === "basic" || !userRole
-}
-
export const imageRefererMatches = [
{
url: /^https:\/\/\w+\.sinaimg\.cn/,
@@ -44,14 +40,14 @@ export const getImageProxyUrl = ({
url,
width,
height,
- userRole,
+ canUseProxy,
}: {
url: string
width?: number
height?: number
- userRole?: string | null
+ canUseProxy?: boolean
}) => {
- if (!canUseImageProxy(userRole)) {
+ if (!canUseProxy) {
return url
}
return `${IMAGE_PROXY_URL}?url=${encodeURIComponent(url)}&width=${width ? Math.round(width) : ""}&height=${height ? Math.round(height) : ""}`
@@ -60,11 +56,11 @@ export const getImageProxyUrl = ({
export const replaceImgUrlIfNeed = ({
url,
inBrowser,
- userRole,
+ canUseProxy,
}: {
url?: string
inBrowser?: boolean
- userRole?: string | null
+ canUseProxy?: boolean
}) => {
if (!url) return url
@@ -76,7 +72,7 @@ export const replaceImgUrlIfNeed = ({
for (const rule of imageRefererMatches) {
if ((inBrowser || rule.force) && rule.url.test(url)) {
- return getImageProxyUrl({ url, width: 0, height: 0, userRole })
+ return getImageProxyUrl({ url, width: 0, height: 0, canUseProxy })
}
}
return url
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 28fae49b0..bd45d63e5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -7,8 +7,8 @@ settings:
catalogs:
default:
'@follow-app/client-sdk':
- specifier: 0.3.89
- version: 0.3.89
+ specifier: 0.3.90
+ version: 0.3.90
'@folo-services/ai-tools':
specifier: 0.2.61
version: 0.2.61
@@ -345,7 +345,7 @@ importers:
version: 4.3.0
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow-app/readability':
specifier: workspace:*
version: link:../../../../packages/readability
@@ -460,7 +460,7 @@ importers:
version: 3.0.2(electron@38.3.0)
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/database':
specifier: workspace:*
version: link:../../../../packages/internal/database
@@ -815,7 +815,7 @@ importers:
version: 4.1.1(react@19.0.0)
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/components':
specifier: workspace:*
version: link:../../packages/internal/components
@@ -1196,7 +1196,7 @@ importers:
version: 6.2.1
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/tracker':
specifier: workspace:*
version: link:../../packages/internal/tracker
@@ -1691,7 +1691,7 @@ importers:
dependencies:
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/configs':
specifier: workspace:*
version: link:../../configs
@@ -1703,7 +1703,7 @@ importers:
dependencies:
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/constants':
specifier: workspace:*
version: link:../constants
@@ -1775,7 +1775,7 @@ importers:
dependencies:
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/constants':
specifier: workspace:*
version: link:../constants
@@ -1806,7 +1806,7 @@ importers:
version: 2.0.0(@types/node@24.10.0)
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@folo-services/drizzle':
specifier: 0.1.41
version: 0.1.41(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
@@ -1836,7 +1836,7 @@ importers:
dependencies:
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/configs':
specifier: workspace:*
version: link:../../configs
@@ -1885,7 +1885,7 @@ importers:
devDependencies:
'@follow-app/client-sdk':
specifier: 'catalog:'
- version: 0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
+ version: 0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
'@follow/configs':
specifier: workspace:*
version: link:../../configs
@@ -4513,14 +4513,14 @@ packages:
'@floating-ui/utils@0.2.10':
resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
- '@follow-app/client-sdk@0.3.89':
- resolution: {integrity: sha512-8oGlg56z0tJwGL3AFoEi4Mdj54iMxSUFA+Fem5v5NBAyWhzR3V0g9qcmZjkOGIDu4bQXR7yiqVkRiBcIPHa6Mw==}
+ '@follow-app/client-sdk@0.3.90':
+ resolution: {integrity: sha512-2nLO9hX85GRYJtKq6a2FEqlnTlHQ8IiRS5NVtMQdkxh8gokgGh0RTFZhgTBYZrzabLFR4zRmmQ41y5mM6W+dgw==}
'@folo-services/ai-tools@0.2.61':
resolution: {integrity: sha512-eKilX+/VIaTzGHc/mMK3sjc3Ao4CQbA4mCk80WtKHXZWhBY9k9TjqpqYDD/8pL7IDBpVHjw1U2TsklZhRab+Xg==}
- '@folo-services/constants@0.1.52':
- resolution: {integrity: sha512-qrPyuzyXfpsMT2V2MahVayvuBa24Ls0PG3HZcItEyAwfVcwCp4Dqcckr0m2XF2J8cGIFWLOjvJW4tT7DgA+4bw==}
+ '@folo-services/constants@0.1.53':
+ resolution: {integrity: sha512-zD6CCC8+Sjos7tdutH+cefv5K+s+7jhYSM/asKUBGDq0FgmpgHnl9apB5qldlH/6hHtFwf+9HxjBtcHcewsNzg==}
'@folo-services/drizzle@0.1.41':
resolution: {integrity: sha512-ji/7eTXyBt0UDEo0qgTFR/qeDhi8oX2cI3B/KSbxbDvbxwzQ84VTQd0XNaBHYR5CsAJjo9Kbw1TPiAV914KmoQ==}
@@ -4528,14 +4528,17 @@ packages:
'@folo-services/drizzle@0.1.42':
resolution: {integrity: sha512-wQZLW4l9qTW4eJrWzVIag3LosW3w19LjqXdccKYZY4m7yXjVAY2nHF8alAnMmRvYhARhknG+3tmLD176ni2IhA==}
+ '@folo-services/drizzle@0.1.43':
+ resolution: {integrity: sha512-6vNUtVvlA3T+6AWeVY62UUEbd+DpODg7KfHMFmhKTDgfvsA4kRkyIpA+EHqxzqwBSAiuZGHdjH9hkKmvVCXYXA==}
+
'@folo-services/exceptions@0.1.25':
resolution: {integrity: sha512-H2IHWVrMngTxUGIj+Bu8S7CGCq+qiUVx/AV8NIDZDqSRdK9a5rJsx7ihnkONbLGatbjnIOI8V+JTu/E6idbFXw==}
'@folo-services/exceptions@0.1.26':
resolution: {integrity: sha512-TOqzpwtW5kwhFSwDGGrF5c1h4853FFWY9xrSpwXA8HFxuAEcoFl/ACex6UIwDs98bvLeA2x/agsXjrSYLNmLVQ==}
- '@folo-services/shared@0.0.42':
- resolution: {integrity: sha512-YYd/0lKy0MP2Q3Ew1PbK+PoMxf6xfx0LPyH51kXaezx+kg51Xhi5gUuNk4z2zgAEdZYG9Yl73ZbnChuasQKYow==}
+ '@folo-services/shared@0.0.43':
+ resolution: {integrity: sha512-GI6clE5jdt93gj7HTwHIOb1cP1qfcjkqtxqzQNzjcY9oAgHn885SLs6pSEuizBa2JEDOG6lJp64OIPx1TG+Vhg==}
'@fontsource/sn-pro@5.2.5':
resolution: {integrity: sha512-rBdBv/0ygj6bkO7xDMMFpwobLdSrcQ2Jncb6DIwdeYGoAgeWkQRwVYhGDKasfLjEYCNYxrqr6wsXsM9+aU39RA==}
@@ -21087,12 +21090,12 @@ snapshots:
'@floating-ui/utils@0.2.10': {}
- '@follow-app/client-sdk@0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
+ '@follow-app/client-sdk@0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@folo-services/exceptions': 0.1.26
- '@folo-services/shared': 0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
+ '@folo-services/shared': 0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
better-auth: 1.3.28(patch_hash=d961389742aff1e3712a53d0108f4f5f38a61d83be33e94710634d470975263e)(better-sqlite3@12.4.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
zod: 4.1.12
transitivePeerDependencies:
@@ -21136,12 +21139,12 @@ snapshots:
- svelte
- vue
- '@follow-app/client-sdk@0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
+ '@follow-app/client-sdk@0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@folo-services/exceptions': 0.1.26
- '@folo-services/shared': 0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
+ '@folo-services/shared': 0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
better-auth: 1.3.28(patch_hash=d961389742aff1e3712a53d0108f4f5f38a61d83be33e94710634d470975263e)(better-sqlite3@12.4.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
zod: 4.1.12
transitivePeerDependencies:
@@ -21185,12 +21188,12 @@ snapshots:
- svelte
- vue
- '@follow-app/client-sdk@0.3.89(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
+ '@follow-app/client-sdk@0.3.90(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@folo-services/exceptions': 0.1.26
- '@folo-services/shared': 0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
+ '@folo-services/shared': 0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)
better-auth: 1.3.28(patch_hash=d961389742aff1e3712a53d0108f4f5f38a61d83be33e94710634d470975263e)(better-sqlite3@12.4.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
zod: 4.1.12
transitivePeerDependencies:
@@ -21274,7 +21277,7 @@ snapshots:
- sql.js
- sqlite3
- '@folo-services/constants@0.1.52':
+ '@folo-services/constants@0.1.53':
dependencies:
zod: 4.1.12
@@ -21319,88 +21322,6 @@ snapshots:
- sql.js
- sqlite3
- '@folo-services/drizzle@0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
- dependencies:
- '@folo-services/exceptions': 0.1.26
- '@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
- drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
- drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
- nanoid: 5.1.6
- pg: 8.16.3
- zod: 4.1.12
- transitivePeerDependencies:
- - '@aws-sdk/client-rds-data'
- - '@cloudflare/workers-types'
- - '@electric-sql/pglite'
- - '@libsql/client'
- - '@libsql/client-wasm'
- - '@neondatabase/serverless'
- - '@op-engineering/op-sqlite'
- - '@opentelemetry/api'
- - '@planetscale/database'
- - '@prisma/client'
- - '@tidbcloud/serverless'
- - '@types/better-sqlite3'
- - '@types/pg'
- - '@types/sql.js'
- - '@upstash/redis'
- - '@vercel/postgres'
- - '@xata.io/client'
- - better-sqlite3
- - bun-types
- - expo-sqlite
- - gel
- - hono
- - knex
- - kysely
- - mysql2
- - pg-native
- - postgres
- - prisma
- - sql.js
- - sqlite3
-
- '@folo-services/drizzle@0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
- dependencies:
- '@folo-services/exceptions': 0.1.26
- '@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
- drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
- drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
- nanoid: 5.1.6
- pg: 8.16.3
- zod: 4.1.12
- transitivePeerDependencies:
- - '@aws-sdk/client-rds-data'
- - '@cloudflare/workers-types'
- - '@electric-sql/pglite'
- - '@libsql/client'
- - '@libsql/client-wasm'
- - '@neondatabase/serverless'
- - '@op-engineering/op-sqlite'
- - '@opentelemetry/api'
- - '@planetscale/database'
- - '@prisma/client'
- - '@tidbcloud/serverless'
- - '@types/better-sqlite3'
- - '@types/pg'
- - '@types/sql.js'
- - '@upstash/redis'
- - '@vercel/postgres'
- - '@xata.io/client'
- - better-sqlite3
- - bun-types
- - expo-sqlite
- - gel
- - hono
- - knex
- - kysely
- - mysql2
- - pg-native
- - postgres
- - prisma
- - sql.js
- - sqlite3
-
'@folo-services/drizzle@0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
dependencies:
'@folo-services/exceptions': 0.1.26
@@ -21442,14 +21363,137 @@ snapshots:
- sql.js
- sqlite3
+ '@folo-services/drizzle@0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
+ dependencies:
+ '@folo-services/exceptions': 0.1.26
+ '@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
+ drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
+ drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
+ nanoid: 5.1.6
+ pg: 8.16.3
+ zod: 4.1.12
+ transitivePeerDependencies:
+ - '@aws-sdk/client-rds-data'
+ - '@cloudflare/workers-types'
+ - '@electric-sql/pglite'
+ - '@libsql/client'
+ - '@libsql/client-wasm'
+ - '@neondatabase/serverless'
+ - '@op-engineering/op-sqlite'
+ - '@opentelemetry/api'
+ - '@planetscale/database'
+ - '@prisma/client'
+ - '@tidbcloud/serverless'
+ - '@types/better-sqlite3'
+ - '@types/pg'
+ - '@types/sql.js'
+ - '@upstash/redis'
+ - '@vercel/postgres'
+ - '@xata.io/client'
+ - better-sqlite3
+ - bun-types
+ - expo-sqlite
+ - gel
+ - hono
+ - knex
+ - kysely
+ - mysql2
+ - pg-native
+ - postgres
+ - prisma
+ - sql.js
+ - sqlite3
+
+ '@folo-services/drizzle@0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
+ dependencies:
+ '@folo-services/exceptions': 0.1.26
+ '@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
+ drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
+ drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
+ nanoid: 5.1.6
+ pg: 8.16.3
+ zod: 4.1.12
+ transitivePeerDependencies:
+ - '@aws-sdk/client-rds-data'
+ - '@cloudflare/workers-types'
+ - '@electric-sql/pglite'
+ - '@libsql/client'
+ - '@libsql/client-wasm'
+ - '@neondatabase/serverless'
+ - '@op-engineering/op-sqlite'
+ - '@opentelemetry/api'
+ - '@planetscale/database'
+ - '@prisma/client'
+ - '@tidbcloud/serverless'
+ - '@types/better-sqlite3'
+ - '@types/pg'
+ - '@types/sql.js'
+ - '@upstash/redis'
+ - '@vercel/postgres'
+ - '@xata.io/client'
+ - better-sqlite3
+ - bun-types
+ - expo-sqlite
+ - gel
+ - hono
+ - knex
+ - kysely
+ - mysql2
+ - pg-native
+ - postgres
+ - prisma
+ - sql.js
+ - sqlite3
+
+ '@folo-services/drizzle@0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)':
+ dependencies:
+ '@folo-services/exceptions': 0.1.26
+ '@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
+ drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
+ drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
+ nanoid: 5.1.6
+ pg: 8.16.3
+ zod: 4.1.12
+ transitivePeerDependencies:
+ - '@aws-sdk/client-rds-data'
+ - '@cloudflare/workers-types'
+ - '@electric-sql/pglite'
+ - '@libsql/client'
+ - '@libsql/client-wasm'
+ - '@neondatabase/serverless'
+ - '@op-engineering/op-sqlite'
+ - '@opentelemetry/api'
+ - '@planetscale/database'
+ - '@prisma/client'
+ - '@tidbcloud/serverless'
+ - '@types/better-sqlite3'
+ - '@types/pg'
+ - '@types/sql.js'
+ - '@upstash/redis'
+ - '@vercel/postgres'
+ - '@xata.io/client'
+ - better-sqlite3
+ - bun-types
+ - expo-sqlite
+ - gel
+ - hono
+ - knex
+ - kysely
+ - mysql2
+ - pg-native
+ - postgres
+ - prisma
+ - sql.js
+ - sqlite3
+
'@folo-services/exceptions@0.1.25': {}
'@folo-services/exceptions@0.1.26': {}
- '@folo-services/shared@0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
+ '@folo-services/shared@0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0)(utf-8-validate@6.0.5))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)(utf-8-validate@6.0.5))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
@@ -21487,10 +21531,10 @@ snapshots:
- sql.js
- sqlite3
- '@folo-services/shared@0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
+ '@folo-services/shared@0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.15.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
@@ -21528,10 +21572,10 @@ snapshots:
- sql.js
- sqlite3
- '@folo-services/shared@0.0.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
+ '@folo-services/shared@0.0.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)(pg@8.16.3)':
dependencies:
- '@folo-services/constants': 0.1.52
- '@folo-services/drizzle': 0.1.42(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
+ '@folo-services/constants': 0.1.53
+ '@folo-services/drizzle': 0.1.43(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(hono@4.9.8)(kysely@0.28.8)
'@hono/zod-openapi': 1.1.4(hono@4.9.8)(zod@4.1.12)
drizzle-orm: 0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3)
drizzle-zod: 0.8.3(drizzle-orm@0.44.7(@opentelemetry/api@1.9.0)(@types/pg@8.15.5)(better-sqlite3@12.4.1)(expo-sqlite@15.2.12(expo@53.0.12(@babel/core@7.28.5)(@expo/metro-runtime@5.0.4(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0)))(bufferutil@4.0.9)(graphql@16.8.1)(react-native-webview@13.16.0(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(react-native@0.79.6(@babel/core@7.28.5)(@types/react@19.2.2)(bufferutil@4.0.9)(react@19.0.0))(react@19.0.0))(kysely@0.28.8)(pg@8.16.3))(zod@4.1.12)
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 42cc3d106..8ab8db433 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -8,7 +8,7 @@ packages:
- "!**/example/**"
catalog:
- "@follow-app/client-sdk": 0.3.89
+ "@follow-app/client-sdk": 0.3.90
"@folo-services/ai-tools": 0.2.61
tailwindcss-uikit-colors: 1.0.0
typescript: 5.9.3
From f83234e7d91760b15fdf4b76919e345021449013 Mon Sep 17 00:00:00 2001
From: Innei
Date: Thu, 20 Nov 2025 19:02:42 +0800
Subject: [PATCH 24/31] feat: ai tags ui
Signed-off-by: Innei
---
.../modules/entry-column/Items/all-item.tsx | 4 +-
.../entry-column/layouts/EntryItemWrapper.tsx | 1 +
.../templates/list-item-template.tsx | 10 +-
.../entry-content/components/EntryTitle.tsx | 6 +-
.../renderer/src/modules/entry/EntryTags.tsx | 143 +++
.../src/drizzle/0036_entry_tag_summary.sql | 1 +
.../src/drizzle/meta/0036_snapshot.json | 954 ++++++++++++++++++
.../database/src/drizzle/meta/_journal.json | 7 +
.../database/src/drizzle/migrations.js | 2 +
.../internal/database/src/schemas/index.ts | 9 +-
.../internal/database/src/schemas/types.ts | 5 +
.../internal/store/src/modules/entry/hooks.ts | 31 +
.../internal/store/src/modules/entry/store.ts | 82 ++
packages/internal/store/src/morph/api.ts | 3 +
packages/internal/store/src/morph/db-store.ts | 5 +-
packages/internal/store/src/morph/store-db.ts | 5 +-
pnpm-lock.yaml | 124 +--
pnpm-workspace.yaml | 4 +-
18 files changed, 1316 insertions(+), 80 deletions(-)
create mode 100644 apps/desktop/layer/renderer/src/modules/entry/EntryTags.tsx
create mode 100644 packages/internal/database/src/drizzle/0036_entry_tag_summary.sql
create mode 100644 packages/internal/database/src/drizzle/meta/0036_snapshot.json
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/Items/all-item.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/Items/all-item.tsx
index 9b81cf319..dae915cc6 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/Items/all-item.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/Items/all-item.tsx
@@ -38,7 +38,8 @@ const ViewTag = IN_ELECTRON ? "webview" : "iframe"
const entrySelector = (state: EntryModel) => {
/// keep-sorted
- const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, title } = state
+ const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, tags, title } =
+ state
const audios = state.attachments?.filter((a) => a.mime_type?.startsWith("audio") && a.url)
const video = transformVideoUrl({
@@ -62,6 +63,7 @@ const entrySelector = (state: EntryModel) => {
firstPhotoUrl,
inboxId: inboxHandle,
publishedAt,
+ tags: tags ?? null,
title,
video,
}
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx
index 213b3c9d5..d6843fd42 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx
@@ -41,6 +41,7 @@ export const EntryItemWrapper: FC<
> = ({ entryId, view, children, itemClassName, style, isFirstItem }) => {
const entry = useEntry(entryId, (state) => {
const { feedId, inboxHandle } = state
+
const { id, url } = state
return { feedId, id, inboxId: inboxHandle, url }
})
diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx
index a57015e34..acb971f58 100644
--- a/apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx
+++ b/apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx
@@ -17,6 +17,7 @@ import { Media } from "~/components/ui/media/Media"
import { FEED_COLLECTION_LIST } from "~/constants"
import { useEntryIsRead } from "~/hooks/biz/useAsRead"
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
+import { EntryTags } from "~/modules/entry/EntryTags"
import { EntryTranslation } from "~/modules/entry-column/translation"
import type { FeedIconEntry } from "~/modules/feed/feed-icon"
import { FeedIcon } from "~/modules/feed/feed-icon"
@@ -28,7 +29,8 @@ import type { UniversalItemProps } from "../types"
const entrySelector = (state: EntryModel) => {
/// keep-sorted
- const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, title } = state
+ const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, tags, title } =
+ state
const audios = state.attachments?.filter((a) => a.mime_type?.startsWith("audio") && a.url)
const firstAudio = audios?.[0]
@@ -48,6 +50,7 @@ const entrySelector = (state: EntryModel) => {
firstPhotoUrl,
inboxId: inboxHandle,
publishedAt,
+ tags: tags ?? null,
title,
}
}
@@ -183,7 +186,7 @@ export function ListItem({
>
- ·
+ ·
{!!displayTime && }