[Glitch] Profile redesign: Remove feature flag

Port ca5c0a144a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2026-04-01 19:33:27 +02:00
1 parent c315d27f3c
commit 73caee93c2
18 files changed
+74 -584

No files matched your search

@@ -27,7 +27,6 @@ import { layoutFromWindow } from 'flavours/glitch/is_mobile';
import { selectUnreadNotificationGroupsCount } from 'flavours/glitch/selectors/notifications';
import { WithRouterPropTypes } from 'flavours/glitch/utils/react_router';
import { checkAnnualReport } from '@/flavours/glitch/reducers/slices/annual_report';
import { isServerFeatureEnabled } from '@/flavours/glitch/utils/environment';
import { uploadCompose, resetCompose, changeComposeSpoilerness } from '../../actions/compose';
import { clearHeight } from '../../actions/height_cache';
@@ -190,20 +189,6 @@ class SwitchingColumnsArea extends PureComponent {
rootRedirect = '/about';
}
const profileRedesignRoutes = [];
if (isServerFeatureEnabled('profile_redesign')) {
profileRedesignRoutes.push(
<WrappedRoute key="edit" path='/profile/edit' component={AccountEdit} content={children} />,
<WrappedRoute key="featured_tags" path='/profile/featured_tags' component={AccountEditFeaturedTags} content={children} />
)
} else {
// If profile editing is not enabled, redirect to the home timeline as the current editing pages are outside React Router.
profileRedesignRoutes.push(
<Redirect key="edit-redirect" from='/profile/edit' to='/' exact />,
<Redirect key="featured-tags-redirect" from='/profile/featured_tags' to='/' exact />,
);
}
return (
<ColumnsContextProvider multiColumn={!singleColumn}>
<ColumnsArea ref={this.setRef} singleColumn={singleColumn}>
@@ -250,7 +235,8 @@ class SwitchingColumnsArea extends PureComponent {
<WrappedRoute path='/search' component={Search} content={children} />
<WrappedRoute path={['/publish', '/statuses/new']} component={Compose} content={children} />
{...profileRedesignRoutes}
<WrappedRoute path='/profile/edit' component={AccountEdit} content={children} />
<WrappedRoute path='/profile/featured_tags' component={AccountEditFeaturedTags} content={children} />
<WrappedRoute path={['/@:acct', '/accounts/:id']} exact component={AccountTimeline} content={children} />
<WrappedRoute path={['/@:acct/featured', '/accounts/:id/featured']} component={AccountFeatured} content={children} />
@@ -1,5 +1,3 @@
import { isServerFeatureEnabled } from '@/flavours/glitch/utils/environment';
export function EmojiPicker () {
return import('../../emoji/emoji_picker');
}
@@ -79,10 +77,7 @@ export function PinnedStatuses () {
}
export function AccountTimeline () {
if (isServerFeatureEnabled('profile_redesign')) {
return import('../../account_timeline/v2');
}
return import('../../account_timeline');
return import('../../account_timeline/v2');
}
export function AccountGallery () {