diff --git a/app/javascript/mastodon/features/account_timeline/components/tabs.tsx b/app/javascript/mastodon/features/account_timeline/components/tabs.tsx
index b2ad9a6065..05dbdb5a80 100644
--- a/app/javascript/mastodon/features/account_timeline/components/tabs.tsx
+++ b/app/javascript/mastodon/features/account_timeline/components/tabs.tsx
@@ -8,6 +8,8 @@ import { NavLink } from 'react-router-dom';
import { useAccount } from '@/mastodon/hooks/useAccount';
import { useAccountId } from '@/mastodon/hooks/useAccountId';
+import { areCollectionsEnabled } from '../../collections/utils';
+
import classes from './redesign.module.scss';
const isActive: Required['isActive'] = (match, location) =>
@@ -39,7 +41,14 @@ export const AccountTabs: FC = () => {
)}
{show_featured && (
-
+ {areCollectionsEnabled() ? (
+
+ ) : (
+
+ )}
)}
diff --git a/app/javascript/mastodon/hooks/useTheme.ts b/app/javascript/mastodon/hooks/useTheme.ts
new file mode 100644
index 0000000000..9c67efaf58
--- /dev/null
+++ b/app/javascript/mastodon/hooks/useTheme.ts
@@ -0,0 +1,23 @@
+import { useEffect, useState } from 'react';
+
+import { isDarkMode } from '../utils/theme';
+
+export function useTheme() {
+ const [darkMode, setDarkMode] = useState(() => isDarkMode());
+
+ useEffect(() => {
+ const mutationObserver = new MutationObserver(() => {
+ setDarkMode(isDarkMode());
+ });
+ mutationObserver.observe(document.documentElement, {
+ attributes: true,
+ attributeFilter: ['data-color-scheme'],
+ });
+
+ return () => {
+ mutationObserver.disconnect();
+ };
+ }, []);
+
+ return darkMode ? 'dark' : 'light';
+}
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index daf7d28f91..c0b5b53ed8 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -45,9 +45,6 @@
"account.featured": "Featured",
"account.featured.accounts": "Profiles",
"account.featured.collections": "Collections",
- "account.featured.hashtags": "Hashtags",
- "account.featured_tags.last_status_at": "Last post on {date}",
- "account.featured_tags.last_status_never": "No posts",
"account.field_overflow": "Show full content",
"account.filters.all": "All activity",
"account.filters.boosts_toggle": "Show boosts",
@@ -606,9 +603,15 @@
"emoji_button.search_results": "Search results",
"emoji_button.symbols": "Symbols",
"emoji_button.travel": "Travel & Places",
- "empty_column.account_featured.me": "You have not featured anything yet. Did you know that you can feature your hashtags you use the most, and even your friend’s accounts on your profile?",
"empty_column.account_featured.other": "{acct} has not featured anything yet. Did you know that you can feature your hashtags you use the most, and even your friend’s accounts on your profile?",
- "empty_column.account_featured_other.unknown": "This account has not featured anything yet.",
+ "empty_column.account_featured_other.no_collections_desc": "{acct} hasn’t created any collections yet.",
+ "empty_column.account_featured_other.title": "Nothing to see here",
+ "empty_column.account_featured_self.no_collections": "No collections yet",
+ "empty_column.account_featured_self.no_collections_button": "Create a collection",
+ "empty_column.account_featured_self.pre_collections": "Stay tuned for Collections",
+ "empty_column.account_featured_self.pre_collections_desc": "Collections (coming in Mastodon 4.6) allows you to create your own curated lists of accounts to recommend to others.",
+ "empty_column.account_featured_unknown.no_collections_desc": "This account hasn’t created any collections yet.",
+ "empty_column.account_featured_unknown.other": "This account hasn’t featured anything yet.",
"empty_column.account_hides_collections": "This user has chosen to not make this information available",
"empty_column.account_suspended": "Account suspended",
"empty_column.account_timeline": "No posts here!",