From 4f2160c0e0435d3b7d7d0f57d324daaea1c0a93d Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 20 Nov 2025 21:44:39 +0800 Subject: [PATCH 1/5] chore: add changelog for v1.2.2 release - Introduced new AI features including BYOK support, improved AI Memory, and AI Timeline Sort (Beta). - Enhanced UI components for a more consistent design. - Launched a new Basic Plan subscription option. - Improved text selection features and onboarding flow. - Fixed several bugs for increased stability. Signed-off-by: Innei --- apps/desktop/changelog/{1.2.1.md => 1.2.2.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename apps/desktop/changelog/{1.2.1.md => 1.2.2.md} (98%) diff --git a/apps/desktop/changelog/1.2.1.md b/apps/desktop/changelog/1.2.2.md similarity index 98% rename from apps/desktop/changelog/1.2.1.md rename to apps/desktop/changelog/1.2.2.md index cf5454733..ea0c5feb6 100644 --- a/apps/desktop/changelog/1.2.1.md +++ b/apps/desktop/changelog/1.2.2.md @@ -1,4 +1,4 @@ -# What's new in v1.2.1 +# What's new in v1.2 ## Shiny new things From 30fffb99650e8bcc8842b708161beb62dfa61bd0 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 20 Nov 2025 21:45:03 +0800 Subject: [PATCH 2/5] release(desktop): release v1.2.2 --- apps/desktop/changelog/1.2.2.md | 37 ++++----------------------------- apps/desktop/package.json | 4 ++-- 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/apps/desktop/changelog/1.2.2.md b/apps/desktop/changelog/1.2.2.md index ea0c5feb6..a33abe381 100644 --- a/apps/desktop/changelog/1.2.2.md +++ b/apps/desktop/changelog/1.2.2.md @@ -1,40 +1,11 @@ -# What's new in v1.2 +# What's new in v1.2.2 ## Shiny new things -- **AI** - - Added **BYOK (Bring Your Own Key)** support — choose your own AI provider freely. - - Improved **AI Memory**: you can now update or refine past memories whenever you need. - - Reduced the “guiding tone” in **AI Summary** so summaries feel more natural and personal. - - Introduced **AI Timeline Sort (Beta)**: your timeline can now rearrange itself based on your reading preferences. - -![](https://cdn.follow.is/ai-memory.mp4) - -![](https://cdn.follow.is/share.mp4) - -- **UI** - - Several UI components have been refined with an improved design system for a cleaner, more consistent feel. - -- **Subscription** - - Added a new **Basic Plan (non-AI version)** for users who prefer a lighter subscription option. - -- **Selection** - - Added **underline sharing** and **Ask AI** directly from selected text to make reading actions smoother. - ## Improvements -- **Feed** - - RSSHub subscriptions now include a clear identifier, making source management easier. - -- **Web** - - You can now browse recommended content without logging in — explore before committing. - -- **Onboarding** - - The onboarding flow has been fully redesigned for a smoother, more intuitive first-time experience. - -- **Entry** - - Entries now come with AI-generated labels to help you sort and revisit content effortlessly. - ## No longer broken -We fixed several bugs to make everything feel more stable and reliable. +## Thanks + +Special thanks to volunteer contributors @ for their valuable contributions diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 171dca164..673db4ee1 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,7 +1,7 @@ { "name": "Folo", "type": "module", - "version": "1.2.1", + "version": "1.2.2", "private": true, "description": "Follow everything in one place", "author": "Folo Team", @@ -87,5 +87,5 @@ "vite-tsconfig-paths": "5.1.4" }, "productName": "Folo", - "mainHash": "ddce11a91e6a16e28d193a7d4f0f211d2903d5e6d53193fc5fa7a9735c17f0e8" + "mainHash": "1c627eb0ea5a109a4fc2d7ac5a78777df546d831f6cced620b8120d41dc4e444" } From 4e3e1c1513339cbdee9bc0862e9b749c2d4bc0f3 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 20 Nov 2025 21:54:09 +0800 Subject: [PATCH 3/5] fix: ensure selection is cleared on entry change - Added a useEffect hook to clear selection whenever the entryId changes, improving the component's responsiveness to entry updates. Signed-off-by: Innei --- .../entry-content/components/layouts/ArticleLayout.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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 ef4422295..d7c27f05f 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 @@ -91,6 +91,10 @@ export const ArticleLayout: React.FC = ({ handleSelectionClear() }, [showTranscript, handleSelectionClear]) + useEffect(() => { + handleSelectionClear() + }, [entryId, handleSelectionClear]) + if (!entry) return null return ( From cdea2fa5ddfe1c85b507fb364c90012e48967c0b Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 20 Nov 2025 22:09:23 +0800 Subject: [PATCH 4/5] refactor: update ShadowDOM and ArticleLayout components for improved text selection handling - Replaced the useRef with useState in ShadowDOM to manage shadowRoot more effectively. - Enhanced text selection listener logic to ensure proper cleanup and functionality. - Added console logs in ArticleLayout for debugging text selection events. Signed-off-by: Innei --- .../src/components/common/ShadowDOM.tsx | 31 +++++-------------- .../components/layouts/ArticleLayout.tsx | 1 + 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/apps/desktop/layer/renderer/src/components/common/ShadowDOM.tsx b/apps/desktop/layer/renderer/src/components/common/ShadowDOM.tsx index fb40c1f01..44c46a078 100644 --- a/apps/desktop/layer/renderer/src/components/common/ShadowDOM.tsx +++ b/apps/desktop/layer/renderer/src/components/common/ShadowDOM.tsx @@ -4,16 +4,7 @@ import { getAccentColorValue } from "@follow/shared/settings/constants" import { hexToHslString } from "@follow/utils" import { nanoid } from "nanoid" import type { FC, PropsWithChildren, ReactNode } from "react" -import { - createContext, - createElement, - use, - useCallback, - useLayoutEffect, - useMemo, - useRef, - useState, -} from "react" +import { createContext, createElement, use, useLayoutEffect, useMemo, useState } from "react" import root from "react-shadow" import { useUISettingKeys } from "~/atoms/settings/ui" @@ -87,15 +78,16 @@ export const ShadowDOM: FC< injectHostStyles ? cloneStylesElement() : [], ) - const shadowRootRef = useRef(null) + const [el, setEl] = useState<{ shadowRoot: ShadowRoot } | null>(null) useLayoutEffect(() => { - if (!textSelectionEnabled || !shadowRootRef.current || !onTextSelect) return + if (!el) return + const { shadowRoot } = el - const cleanup = addTextSelectionListener(shadowRootRef.current, onTextSelect, onSelectionClear) + if (!textSelectionEnabled || !shadowRoot || !onTextSelect) return - return cleanup - }, [textSelectionEnabled, onTextSelect, onSelectionClear]) + return addTextSelectionListener(shadowRoot, onTextSelect, onSelectionClear) + }, [textSelectionEnabled, onTextSelect, onSelectionClear, el]) useLayoutEffect(() => { if (!injectHostStyles) return @@ -123,14 +115,7 @@ export const ShadowDOM: FC< return ( // @ts-expect-error - { - if (element) { - shadowRootRef.current = element.shadowRoot - } - }, [])} - > +
= ({ )}
+ Date: Thu, 20 Nov 2025 22:11:44 +0800 Subject: [PATCH 5/5] chore: update changelog for v1.2 release Signed-off-by: Innei --- apps/desktop/changelog/1.2.2.md | 37 +++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/apps/desktop/changelog/1.2.2.md b/apps/desktop/changelog/1.2.2.md index a33abe381..ea0c5feb6 100644 --- a/apps/desktop/changelog/1.2.2.md +++ b/apps/desktop/changelog/1.2.2.md @@ -1,11 +1,40 @@ -# What's new in v1.2.2 +# What's new in v1.2 ## Shiny new things +- **AI** + - Added **BYOK (Bring Your Own Key)** support — choose your own AI provider freely. + - Improved **AI Memory**: you can now update or refine past memories whenever you need. + - Reduced the “guiding tone” in **AI Summary** so summaries feel more natural and personal. + - Introduced **AI Timeline Sort (Beta)**: your timeline can now rearrange itself based on your reading preferences. + +![](https://cdn.follow.is/ai-memory.mp4) + +![](https://cdn.follow.is/share.mp4) + +- **UI** + - Several UI components have been refined with an improved design system for a cleaner, more consistent feel. + +- **Subscription** + - Added a new **Basic Plan (non-AI version)** for users who prefer a lighter subscription option. + +- **Selection** + - Added **underline sharing** and **Ask AI** directly from selected text to make reading actions smoother. + ## Improvements +- **Feed** + - RSSHub subscriptions now include a clear identifier, making source management easier. + +- **Web** + - You can now browse recommended content without logging in — explore before committing. + +- **Onboarding** + - The onboarding flow has been fully redesigned for a smoother, more intuitive first-time experience. + +- **Entry** + - Entries now come with AI-generated labels to help you sort and revisit content effortlessly. + ## No longer broken -## Thanks - -Special thanks to volunteer contributors @ for their valuable contributions +We fixed several bugs to make everything feel more stable and reliable.