Skip to content

Commit 2bba6a9

Browse files
DIYgodclaude
andauthored
refactor: remove entry tags support (#4813)
* refactor: remove entry tags support * fix: remove remaining tags references from entry selectors Follow-up to 9ea61db - these files were missed in the entry tags removal. Co-Authored-By: Claude Opus 4.5 <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 95b0da8 commit 2bba6a9

File tree

20 files changed

+962
-298
lines changed

20 files changed

+962
-298
lines changed

apps/desktop/layer/renderer/src/modules/entry-column/Items/all-item.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ const ViewTag = IN_ELECTRON ? "webview" : "iframe"
3838

3939
const entrySelector = (state: EntryModel) => {
4040
/// keep-sorted
41-
const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, tags, title } =
42-
state
41+
const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, title } = state
4342

4443
const audios = state.attachments?.filter((a) => a.mime_type?.startsWith("audio") && a.url)
4544
const video = transformVideoUrl({
@@ -63,7 +62,6 @@ const entrySelector = (state: EntryModel) => {
6362
firstPhotoUrl,
6463
inboxId: inboxHandle,
6564
publishedAt,
66-
tags: tags ?? null,
6765
title,
6866
video,
6967
}

apps/desktop/layer/renderer/src/modules/entry-column/templates/list-item-template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ import type { UniversalItemProps } from "../types"
2828

2929
const entrySelector = (state: EntryModel) => {
3030
/// keep-sorted
31-
const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, tags, title } =
32-
state
31+
const { authorAvatar, authorUrl, description, feedId, inboxHandle, publishedAt, title } = state
3332

3433
const audios = state.attachments?.filter((a) => a.mime_type?.startsWith("audio") && a.url)
3534
const firstAudio = audios?.[0]
@@ -49,7 +48,6 @@ const entrySelector = (state: EntryModel) => {
4948
firstPhotoUrl,
5049
inboxId: inboxHandle,
5150
publishedAt,
52-
tags: tags ?? null,
5351
title,
5452
}
5553
}

apps/desktop/layer/renderer/src/modules/entry-content/components/EntryTitle.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import type { FeedIconEntry } from "~/modules/feed/feed-icon"
1717
import { FeedIcon } from "~/modules/feed/feed-icon"
1818
import { getPreferredTitle } from "~/store/feed/hooks"
1919

20-
import { EntryTags } from "../../entry/EntryTags"
2120
import { EntryTranslation } from "../../entry-column/translation"
2221
import { EntryReadHistory } from "./entry-read-history"
2322

@@ -38,8 +37,7 @@ export const EntryTitle = ({
3837
entryId,
3938
useShallow((state) => {
4039
/// keep-sorted
41-
const { author, authorAvatar, authorUrl, feedId, inboxHandle, publishedAt, tags, title } =
42-
state
40+
const { author, authorAvatar, authorUrl, feedId, inboxHandle, publishedAt, title } = state
4341

4442
const attachments = state.attachments || []
4543
const { duration_in_seconds } =
@@ -61,7 +59,6 @@ export const EntryTitle = ({
6159
firstPhotoUrl,
6260
inboxId: inboxHandle,
6361
publishedAt,
64-
tags: tags ?? null,
6562
title,
6663
}
6764
}),
@@ -185,7 +182,6 @@ export const EntryTitle = ({
185182
)}
186183
</div>
187184
</div>
188-
<EntryTags tags={entry.tags} feedId={entry.feedId} className="mt-1" />
189185
{/* Recent Readers */}
190186
{!noRecentReader && !hideRecentReader && <EntryReadHistory entryId={entryId} />}
191187
</div>

apps/desktop/layer/renderer/src/modules/entry/EntryTags.tsx

Lines changed: 0 additions & 146 deletions
This file was deleted.

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
"vite-tsconfig-paths": "5.1.4"
8888
},
8989
"productName": "Folo",
90-
"mainHash": "b8ff378bbffadb942011f62fa49e53a92ed7c9c1bcd66d4052af84cad69706d8"
90+
"mainHash": "517f2ce0e68cffd3da04d1eb27952c0d67fa21509c8bc2bc310f470d9e4df7ff"
9191
}

locales/app/en.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@
209209
"entry_list_header.show_unread_only": "Show unread Only",
210210
"entry_list_header.timeline_summary": "Summarize timeline",
211211
"entry_list_header.unread": "unread",
212-
"entry_tags.all_feeds": "All Feeds",
213-
"entry_tags.current_feed": "Current Feed",
214212
"feed.actions.follow": "Follow",
215213
"feed.actions.followed": "Followed",
216214
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}} and {{feedsCount}} {{feedsNoun}} on {{appName}}",

locales/app/ja.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@
208208
"entry_list_header.show_unread_only": "未読のみ表示",
209209
"entry_list_header.timeline_summary": "タイムラインを要約",
210210
"entry_list_header.unread": "未読",
211-
"entry_tags.all_feeds": "すべてのフィード",
212-
"entry_tags.current_feed": "現在のフィード",
213211
"feed.actions.follow": "フォロー",
214212
"feed.actions.followed": "フォロー済み",
215213
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}} と {{feedsCount}} {{feedsNoun}} on {{appName}}",

locales/app/zh-CN.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@
208208
"entry_list_header.show_unread_only": "仅显示未读",
209209
"entry_list_header.timeline_summary": "总结时间线",
210210
"entry_list_header.unread": "未读",
211-
"entry_tags.all_feeds": "全部订阅源",
212-
"entry_tags.current_feed": "当前订阅源",
213211
"feed.actions.follow": "订阅",
214212
"feed.actions.followed": "已订阅",
215213
"feed.followsAndFeeds": "在 {{appName}} 上有 {{subscriptionCount}} 个{{subscriptionNoun}}和 {{feedsCount}} 个{{feedsNoun}}",

locales/app/zh-TW.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@
199199
"entry_list_header.show_unread_only": "僅顯示未讀",
200200
"entry_list_header.timeline_summary": "摘要時間線",
201201
"entry_list_header.unread": "未讀",
202-
"entry_tags.all_feeds": "全部訂閱源",
203-
"entry_tags.current_feed": "當前訂閱源",
204202
"feed.actions.follow": "跟隨",
205203
"feed.actions.followed": "已跟隨",
206204
"feed.followsAndFeeds": "在 {{appName}} 上有 {{subscriptionCount}} 個 {{subscriptionNoun}} 和 {{feedsCount}} 個 {{feedsNoun}}",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `entries` DROP COLUMN `tags`;

0 commit comments

Comments
 (0)