From d1fb9573612c8c71c13082b33e4387e4644c4986 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 12 Jun 2025 10:29:42 +0200 Subject: [PATCH] Change "Explore" to "Trending" and remove explanation banners (#34985) --- app/javascript/mastodon/features/explore/index.tsx | 6 +++--- app/javascript/mastodon/features/explore/links.jsx | 10 ---------- app/javascript/mastodon/features/explore/statuses.jsx | 1 - app/javascript/mastodon/features/explore/tags.jsx | 10 ---------- .../mastodon/features/link_timeline/index.tsx | 4 ++-- .../features/ui/components/navigation_panel.tsx | 8 +++----- app/javascript/mastodon/locales/en.json | 5 +---- 7 files changed, 9 insertions(+), 35 deletions(-) diff --git a/app/javascript/mastodon/features/explore/index.tsx b/app/javascript/mastodon/features/explore/index.tsx index c6f65a09a..e88662704 100644 --- a/app/javascript/mastodon/features/explore/index.tsx +++ b/app/javascript/mastodon/features/explore/index.tsx @@ -5,7 +5,7 @@ import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; import { Helmet } from 'react-helmet'; import { NavLink, Switch, Route } from 'react-router-dom'; -import ExploreIcon from '@/material-icons/400-24px/explore.svg?react'; +import TrendingUpIcon from '@/material-icons/400-24px/trending_up.svg?react'; import { Column } from 'mastodon/components/column'; import type { ColumnRef } from 'mastodon/components/column'; import { ColumnHeader } from 'mastodon/components/column_header'; @@ -20,7 +20,7 @@ import Suggestions from './suggestions'; import Tags from './tags'; const messages = defineMessages({ - title: { id: 'explore.title', defaultMessage: 'Explore' }, + title: { id: 'explore.title', defaultMessage: 'Trending' }, }); const Explore: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => { @@ -41,7 +41,7 @@ const Explore: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => { > - - - ); - if (!isLoading && links.isEmpty()) { return (
- {banner} -
@@ -63,8 +55,6 @@ class Links extends PureComponent { return (
- {banner} - {isLoading ? () : links.map((link, i) => ( } alwaysPrepend timelineId='explore' statusIds={statusIds} diff --git a/app/javascript/mastodon/features/explore/tags.jsx b/app/javascript/mastodon/features/explore/tags.jsx index b803d5fa1..683f95bfb 100644 --- a/app/javascript/mastodon/features/explore/tags.jsx +++ b/app/javascript/mastodon/features/explore/tags.jsx @@ -42,17 +42,9 @@ class Tags extends PureComponent { render () { const { isLoading, hashtags } = this.props; - const banner = ( - - - - ); - if (!isLoading && hashtags.isEmpty()) { return (
- {banner} -
@@ -62,8 +54,6 @@ class Tags extends PureComponent { return (
- {banner} - {isLoading ? () : hashtags.map(hashtag => ( ))} diff --git a/app/javascript/mastodon/features/link_timeline/index.tsx b/app/javascript/mastodon/features/link_timeline/index.tsx index 1b3f28717..e6b8480a2 100644 --- a/app/javascript/mastodon/features/link_timeline/index.tsx +++ b/app/javascript/mastodon/features/link_timeline/index.tsx @@ -3,7 +3,7 @@ import { useRef, useEffect, useCallback } from 'react'; import { Helmet } from 'react-helmet'; import { useParams } from 'react-router-dom'; -import ExploreIcon from '@/material-icons/400-24px/explore.svg?react'; +import TrendingUpIcon from '@/material-icons/400-24px/trending_up.svg?react'; import { expandLinkTimeline } from 'mastodon/actions/timelines'; import { Column } from 'mastodon/components/column'; import type { ColumnRef } from 'mastodon/components/column'; @@ -50,7 +50,7 @@ export const LinkTimeline: React.FC<{ { transparent to='/explore' icon='explore' - iconComponent={ExploreIcon} - activeIconComponent={ExploreActiveIcon} + iconComponent={TrendingUpIcon} text={intl.formatMessage(messages.explore)} /> ); diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 7f608ead0..d4acdd257 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -266,9 +266,6 @@ "disabled_account_banner.text": "Your account {disabledAccount} is currently disabled.", "dismissable_banner.community_timeline": "These are the most recent public posts from people whose accounts are hosted by {domain}.", "dismissable_banner.dismiss": "Dismiss", - "dismissable_banner.explore_links": "These news stories are being shared the most on the fediverse today. Newer news stories posted by more different people are ranked higher.", - "dismissable_banner.explore_statuses": "These posts from across the fediverse are gaining traction today. Newer posts with more boosts and favorites are ranked higher.", - "dismissable_banner.explore_tags": "These hashtags are gaining traction on the fediverse today. Hashtags that are used by more different people are ranked higher.", "dismissable_banner.public_timeline": "These are the most recent public posts from people on the fediverse that people on {domain} follow.", "domain_block_modal.block": "Block server", "domain_block_modal.block_account_instead": "Block @{name} instead", @@ -340,7 +337,7 @@ "errors.unexpected_crash.copy_stacktrace": "Copy stacktrace to clipboard", "errors.unexpected_crash.report_issue": "Report issue", "explore.suggested_follows": "People", - "explore.title": "Explore", + "explore.title": "Trending", "explore.trending_links": "News", "explore.trending_statuses": "Posts", "explore.trending_tags": "Hashtags",