feat(expressions): remove the unfinished packs feature (#2250)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-31 16:34:22 +02:00
1 parent 0eef611b6d
commit b8f8d8d859
159 files changed
+42 -6863

No files matched your search

@@ -9,7 +9,6 @@ import ChatSettingsTab from '@app/features/user/components/modals/tabs/ChatSetti
import ComponentGalleryTab from '@app/features/user/components/modals/tabs/component_gallery_tab';
import DesktopSettingsTab from '@app/features/user/components/modals/tabs/DesktopSettingsTab';
import EmbedDebuggerTab from '@app/features/user/components/modals/tabs/EmbedDebuggerTab';
import ExpressionPacksTab from '@app/features/user/components/modals/tabs/ExpressionPacksTab';
import GiftInventoryTab from '@app/features/user/components/modals/tabs/GiftInventoryTab';
import KeybindsTab from '@app/features/user/components/modals/tabs/KeybindsTab';
import LanguageTab from '@app/features/user/components/modals/tabs/LanguageTab';
@@ -44,7 +43,6 @@ const DESKTOP_TAB_COMPONENTS: Partial<Record<UserSettingsTabType, React.Componen
embed_debugger: EmbedDebuggerTab,
applications: ApplicationsTab,
component_gallery: ComponentGalleryTab,
expression_packs: ExpressionPacksTab,
};
export const getSettingsTabComponent = (
tabType: UserSettingsTabType,
@@ -44,17 +44,12 @@ import {
ProhibitIcon,
RobotIcon,
ShieldIcon,
StickerIcon,
TranslateIcon,
UserIcon,
UserListIcon,
} from '@phosphor-icons/react';
import type React from 'react';
const EXPRESSION_PACKS_DESCRIPTOR = msg({
message: 'Expression packs',
comment: 'User settings tab for purchased or owned emoji/sticker expression packs.',
});
const BLOCKED_USERS_DESCRIPTOR = msg({
message: 'Blocked users',
comment: 'User settings tab listing accounts the current user has blocked.',
@@ -267,12 +262,6 @@ const ALL_TABS_DESCRIPTORS: Array<SettingsTabDescriptor> = [
label: GIFTS_AND_CODES_DESCRIPTOR,
icon: GiftIcon,
},
{
type: 'expression_packs',
category: 'billing',
label: EXPRESSION_PACKS_DESCRIPTOR,
icon: StickerIcon,
},
{
type: 'appearance',
category: 'app_settings',
@@ -31,7 +31,6 @@ import {clientDeveloperSettingsIndex} from '@app/features/user/components/settin
import {desktopSettingsIndex} from '@app/features/user/components/settings_utils/search_index/DesktopSettingsIndex';
import {devicesIndex} from '@app/features/user/components/settings_utils/search_index/DevicesIndex';
import {embedDebuggerIndex} from '@app/features/user/components/settings_utils/search_index/EmbedDebuggerIndex';
import {expressionPacksIndex} from '@app/features/user/components/settings_utils/search_index/ExpressionPacksIndex';
import {giftInventoryIndex} from '@app/features/user/components/settings_utils/search_index/GiftInventoryIndex';
import {keybindsIndex} from '@app/features/user/components/settings_utils/search_index/KeybindsIndex';
import {languageIndex} from '@app/features/user/components/settings_utils/search_index/LanguageIndex';
@@ -100,7 +99,6 @@ const ADDITIONAL_SEARCHABLE_ITEMS: Array<SearchableSettingDescriptor> = [
...devicesIndex,
...plutoniumIndex,
...giftInventoryIndex,
...expressionPacksIndex,
...appearanceIndex,
...notificationsIndex,
...chatSettingsIndex,
@@ -38,7 +38,6 @@ const USER_SETTINGS_TAB_TYPES = new Set<UserSettingsTabType>([
'component_gallery',
'language',
'keybinds',
'expression_packs',
'linked_accounts',
]);
const SAFE_SETTINGS_PARAM_REGEX = /^[A-Za-z0-9_-]+$/;
@@ -1,70 +0,0 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {STICKERS_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import type {SearchableSettingDescriptor} from '@app/features/user/components/settings_utils/search_index/SearchIndexTypes';
import {msg} from '@lingui/core/macro';
const EXPRESSION_PACKS_DESCRIPTOR = msg({
message: 'Expression packs',
comment: 'Settings search entry label. Names the settings search entry in the settings UI.',
});
const EMOJI_DESCRIPTOR = msg({
message: 'Emoji',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const PACKS_DESCRIPTOR = msg({
message: 'Packs',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const EXPRESSIONS_DESCRIPTOR = msg({
message: 'Expressions',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const EMOJI_PACKS_DESCRIPTOR = msg({
message: 'Emoji packs',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const STICKER_PACKS_DESCRIPTOR = msg({
message: 'Sticker packs',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const CREATE_EMOJI_PACK_DESCRIPTOR = msg({
message: 'Create emoji pack',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const CREATE_STICKER_PACK_DESCRIPTOR = msg({
message: 'Create sticker pack',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const INSTALLED_PACKS_DESCRIPTOR = msg({
message: 'Installed packs',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const CREATED_PACKS_DESCRIPTOR = msg({
message: 'Created packs',
comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',
});
const MANAGE_EXPRESSION_PACKS_DESCRIPTOR = msg({
message: 'Manage expression packs',
comment: 'Settings search entry description. One-line summary of what the settings search entry controls.',
});
export const expressionPacksIndex: Array<SearchableSettingDescriptor> = [
{
id: 'expression-packs',
tabType: 'expression_packs',
label: EXPRESSION_PACKS_DESCRIPTOR,
keywords: [
STICKERS_DESCRIPTOR,
EMOJI_DESCRIPTOR,
PACKS_DESCRIPTOR,
EXPRESSIONS_DESCRIPTOR,
EMOJI_PACKS_DESCRIPTOR,
STICKER_PACKS_DESCRIPTOR,
CREATE_EMOJI_PACK_DESCRIPTOR,
CREATE_STICKER_PACK_DESCRIPTOR,
INSTALLED_PACKS_DESCRIPTOR,
CREATED_PACKS_DESCRIPTOR,
],
description: MANAGE_EXPRESSION_PACKS_DESCRIPTOR,
},
];
@@ -15,14 +15,6 @@ const PURCHASED_GIFTS_DESCRIPTOR = msg({
message: 'Purchased gifts',
comment: 'Settings section label for managing purchased gift codes.',
});
const EMOJI_PACKS_DESCRIPTOR = msg({
message: 'Emoji packs',
comment: 'Settings section label for emoji expression packs.',
});
const STICKER_PACKS_DESCRIPTOR = msg({
message: 'Sticker packs',
comment: 'Settings section label for sticker expression packs.',
});
const BLOCKED_USERS_DESCRIPTOR = msg({
message: 'Blocked users',
comment: 'Settings section label for blocked users.',
@@ -92,8 +84,6 @@ export const generalSettingsSections = [
keywords: [],
isAdvanced: false,
},
{id: 'emoji-packs', tabType: 'expression_packs', label: EMOJI_PACKS_DESCRIPTOR, keywords: [], isAdvanced: false},
{id: 'sticker-packs', tabType: 'expression_packs', label: STICKER_PACKS_DESCRIPTOR, keywords: [], isAdvanced: false},
{id: 'blocked-users', tabType: 'blocked_users', label: BLOCKED_USERS_DESCRIPTOR, keywords: [], isAdvanced: false},
{
id: 'authorized-applications',
@@ -32,7 +32,6 @@ export type UserSettingsTabType =
| 'component_gallery'
| 'language'
| 'keybinds'
| 'expression_packs'
| 'linked_accounts';
export interface SectionDefinition extends SettingsMetadata {