diff --git a/apps/desktop/layer/renderer/src/modules/discover/feed-card.tsx b/apps/desktop/layer/renderer/src/modules/discover/feed-card.tsx index 3610a9bc5..e5f83fd56 100644 --- a/apps/desktop/layer/renderer/src/modules/discover/feed-card.tsx +++ b/apps/desktop/layer/renderer/src/modules/discover/feed-card.tsx @@ -41,7 +41,7 @@ export const FeedCard: FC<{ onSuccess, children, followButtonVariant, - followedButtonVariant, + followedButtonVariant = "ghost", followButtonClassName, followedButtonClassName, className, @@ -92,25 +92,29 @@ export const FeedCard: FC<{ )}
-
- + {item.analytics?.subscriptionCount && ( +
+ - - {numberFormatter.format(item.subscriptionCount ?? 0)}{" "} - {t("feed.follower", { count: item.subscriptionCount ?? 0 })} - -
- {item.updatesPerWeek ? ( + + {numberFormatter.format(item.analytics.subscriptionCount)}{" "} + {t("feed.follower", { count: item.analytics.subscriptionCount })} + +
+ )} + {item.analytics?.updatesPerWeek ? (
- {t("feed.entry_week", { count: item.updatesPerWeek ?? 0 })} + + {t("feed.entry_week", { count: item.analytics.updatesPerWeek ?? 0 })} +
- ) : item.entries?.[0]?.publishedAt ? ( + ) : item.analytics?.latestEntryPublishedAt ? (
{t("feed.updated_at")}
@@ -140,7 +144,7 @@ export const FeedCard: FC<{ onClick={() => { follow({ isList: !!item.list?.id, - id: item.list?.id, + id: item.list?.id || item.feed?.id, url: item.feed?.url, defaultValues: { view: getRouteParams().view.toString(), diff --git a/apps/desktop/layer/renderer/src/modules/discover/form.tsx b/apps/desktop/layer/renderer/src/modules/discover/form.tsx index 6b7da54e7..eeaa01c85 100644 --- a/apps/desktop/layer/renderer/src/modules/discover/form.tsx +++ b/apps/desktop/layer/renderer/src/modules/discover/form.tsx @@ -322,6 +322,7 @@ export function DiscoverForm({ type = "search" }: { type?: string }) { item={item} onSuccess={handleSuccess} onUnSubscribed={handleUnSubscribed} + className="last:border-b-0" /> ))}
diff --git a/apps/desktop/layer/renderer/src/modules/trending/index.tsx b/apps/desktop/layer/renderer/src/modules/trending/index.tsx index 2837c9e19..1a7ffa47a 100644 --- a/apps/desktop/layer/renderer/src/modules/trending/index.tsx +++ b/apps/desktop/layer/renderer/src/modules/trending/index.tsx @@ -135,7 +135,7 @@ export function Trending({ followButtonVariant="ghost" followedButtonClassName="px-3 -mr-3" followButtonClassName="border-accent text-accent px-3 -mr-3" - className="pl-2" + className="pl-2 [&:nth-last-child(-n+2)]:border-b-0" >
["data"]["feed"] +export type FeedAnalyticsModel = ExtractBizResponse< + typeof _apiClient.feeds.$get +>["data"]["analytics"] + export type ListModel = Omit export type ListModelPoplutedFeeds = ExtractBizResponse< typeof _apiClient.lists.$get diff --git a/packages/internal/shared/src/hono.ts b/packages/internal/shared/src/hono.ts index 67d7811c2..5a944cef9 100644 --- a/packages/internal/shared/src/hono.ts +++ b/packages/internal/shared/src/hono.ts @@ -13915,6 +13915,13 @@ declare const _routes: hono_hono_base.HonoBase