Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

refactor(app): use directional arrow and caret icons

Hampuscee4fed90cca
diff --git a/fluxer_app/src/features/auth/flow/AuthFloatingBackButton.tsx b/fluxer_app/src/features/auth/flow/AuthFloatingBackButton.tsx
index c50b137c8..e4f2ea030 100644
--- a/fluxer_app/src/features/auth/flow/AuthFloatingBackButton.tsx
+++ b/fluxer_app/src/features/auth/flow/AuthFloatingBackButton.tsx
@@ -3,7 +3,7 @@
import styles from '@app/features/auth/flow/AuthFloatingBackButton.module.css';
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
import FocusRing from '@app/features/ui/focus_ring/FocusRing';
-import {ArrowLeftIcon} from '@phosphor-icons/react';
+import {ArrowLeftIcon} from '@app/features/ui/icons/DirectionalIcons';
import type React from 'react';
interface AuthFloatingBackButtonProps {
diff --git a/fluxer_app/src/features/auth/flow/InstanceSelector.tsx b/fluxer_app/src/features/auth/flow/InstanceSelector.tsx
index d0740dfbf..7294248ea 100644
--- a/fluxer_app/src/features/auth/flow/InstanceSelector.tsx
+++ b/fluxer_app/src/features/auth/flow/InstanceSelector.tsx
@@ -39,6 +39,7 @@ import {Logger} from '@app/features/platform/utils/AppLogger';
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
import {Button, ButtonVariant} from '@app/features/ui/button/Button';
import {TextInput} from '@app/features/ui/components/form/FormInput';
+import {ArrowLeftIcon, ArrowRightIcon} from '@app/features/ui/icons/DirectionalIcons';
import {SteppedCarousel} from '@app/features/ui/stepped_carousel/SteppedCarousel';
import {flxElementClassName} from '@app/lib/react';
import type {DesktopKnownInstanceRecord} from '@fluxer/desktop_ipc/src/KnownInstanceContract';
@@ -47,7 +48,7 @@ import {officialMarketingOrigin} from '@fluxer/instance_bootstrap/src/OfficialIn
import type {I18n} from '@lingui/core';
import {msg} from '@lingui/core/macro';
import {useLingui} from '@lingui/react/macro';
-import {ArrowLeftIcon, ArrowRightIcon, GlobeIcon} from '@phosphor-icons/react';
+import {GlobeIcon} from '@phosphor-icons/react';
import {observer} from 'mobx-react-lite';
import {
type AriaAttributes,
diff --git a/fluxer_app/src/features/auth/flow/auth_login_core/AuthLoginMethodStep.tsx b/fluxer_app/src/features/auth/flow/auth_login_core/AuthLoginMethodStep.tsx
index 0547fbee7..a4ba70d50 100644
--- a/fluxer_app/src/features/auth/flow/auth_login_core/AuthLoginMethodStep.tsx
+++ b/fluxer_app/src/features/auth/flow/auth_login_core/AuthLoginMethodStep.tsx
@@ -14,9 +14,10 @@ import type {LoginIdentifierField} from '@app/features/auth/utils/AccountSignInI
import {CHANGE_INSTANCE_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
import {Button, ButtonVariant} from '@app/features/ui/button/Button';
+import {ArrowLeftIcon} from '@app/features/ui/icons/DirectionalIcons';
import {msg} from '@lingui/core/macro';
import {useLingui} from '@lingui/react/macro';
-import {ArrowLeftIcon, BrowserIcon, EnvelopeSimpleIcon, KeyIcon, UserIcon, UserPlusIcon} from '@phosphor-icons/react';
+import {BrowserIcon, EnvelopeSimpleIcon, KeyIcon, UserIcon, UserPlusIcon} from '@phosphor-icons/react';
import {clsx} from 'clsx';
import {cloneElement, type ReactElement, type ReactNode} from 'react';
@@ -39,7 +40,7 @@ export interface AuthLoginSsoAction {
readonly onStart: () => void;
}
-export function resolveShowPasskeyAction(showPasskeyOption: boolean, passkeyAvailableForInstance: boolean): boolean {
+function resolveShowPasskeyAction(showPasskeyOption: boolean, passkeyAvailableForInstance: boolean): boolean {
return showPasskeyOption && passkeyAvailableForInstance;
}
diff --git a/fluxer_app/src/features/auth/flow/client_intro/AuthClientWelcomeStep.tsx b/fluxer_app/src/features/auth/flow/client_intro/AuthClientWelcomeStep.tsx
index 946286ee6..f1381d306 100644
--- a/fluxer_app/src/features/auth/flow/client_intro/AuthClientWelcomeStep.tsx
+++ b/fluxer_app/src/features/auth/flow/client_intro/AuthClientWelcomeStep.tsx
@@ -1,15 +1,14 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {SetupWelcomeGate} from '@app/features/app/components/setup/SetupWelcomeGate';
-import {PRODUCT_NAME} from '@app/features/app/config/ProductConstants';
import styles from '@app/features/auth/flow/client_intro/AuthClientPreferencesStep.module.css';
import {CONTINUE_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
import {Button, ButtonVariant} from '@app/features/ui/button/Button';
+import {ArrowRightIcon} from '@app/features/ui/icons/DirectionalIcons';
import * as LocaleUtils from '@app/features/user/utils/LocaleUtils';
import {flxElementClassName} from '@app/lib/react';
import {useLingui} from '@lingui/react/macro';
-import {ArrowRightIcon} from '@phosphor-icons/react';
import clsx from 'clsx';
import {observer} from 'mobx-react-lite';
@@ -26,8 +25,6 @@ export const AuthClientWelcomeStep = observer(function AuthClientWelcomeStep({on
>
<SetupWelcomeGate
localeCode={LocaleUtils.getCurrentOrDetectedLocale()}
- productName={PRODUCT_NAME}
- isAuthenticated={false}
data-flx="auth.flow.client-intro.auth-client-welcome-step.setup-welcome-gate"
/>
<flx-auth-client-welcome-step-footer
diff --git a/fluxer_app/src/features/user/components/modals/MutualItemsSheet.tsx b/fluxer_app/src/features/user/components/modals/MutualItemsSheet.tsx
index 17aa33c06..2cf449c23 100644
--- a/fluxer_app/src/features/user/components/modals/MutualItemsSheet.tsx
+++ b/fluxer_app/src/features/user/components/modals/MutualItemsSheet.tsx
@@ -12,6 +12,7 @@ import {BottomSheet} from '@app/features/ui/bottom_sheet/BottomSheet';
import * as ModalCommands from '@app/features/ui/commands/ModalCommands';
import {Scroller} from '@app/features/ui/components/Scroller';
import {StatusAwareAvatar} from '@app/features/ui/components/StatusAwareAvatar';
+import {ArrowLeftIcon} from '@app/features/ui/icons/DirectionalIcons';
import styles from '@app/features/user/components/modals/MutualItemsSheet.module.css';
import {getMutualItemsDescriptor} from '@app/features/user/components/modals/user_profile_modal/MutualItemsDescriptors';
import {getMutualCommunityDisplayItems} from '@app/features/user/components/modals/user_profile_modal/MutualItemsUtils';
@@ -25,7 +26,6 @@ import type {UserPartial} from '@fluxer/schema/src/domains/user/UserResponseSche
import {plural} from '@lingui/core/macro';
import {useLingui as useLinguiRuntime} from '@lingui/react';
import {useLingui} from '@lingui/react/macro';
-import {ArrowLeftIcon} from '@phosphor-icons/react';
import {observer} from 'mobx-react-lite';
import type React from 'react';
diff --git a/fluxer_app/src/features/user/components/modals/NoteEditSheet.tsx b/fluxer_app/src/features/user/components/modals/NoteEditSheet.tsx
index fd603860f..21f37e69c 100644
--- a/fluxer_app/src/features/user/components/modals/NoteEditSheet.tsx
+++ b/fluxer_app/src/features/user/components/modals/NoteEditSheet.tsx
@@ -4,12 +4,12 @@ import {GO_BACK_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescript
import {TextareaAutosize} from '@app/features/platform/utils/AutoResizingTextarea';
import StreamerMode from '@app/features/streamer_mode/state/StreamerMode';
import {BottomSheet} from '@app/features/ui/bottom_sheet/BottomSheet';
+import {ArrowLeftIcon} from '@app/features/ui/icons/DirectionalIcons';
import * as UserNoteCommands from '@app/features/user/commands/UserNoteCommands';
import styles from '@app/features/user/components/modals/NoteEditSheet.module.css';
import {EDIT_NOTE_DESCRIPTOR} from '@app/features/user/utils/UserMessageDescriptors';
import {msg} from '@lingui/core/macro';
import {Trans, useLingui} from '@lingui/react/macro';
-import {ArrowLeftIcon} from '@phosphor-icons/react';
import {clsx} from 'clsx';
import {observer} from 'mobx-react-lite';
import type React from 'react';
diff --git a/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsList.tsx b/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsList.tsx
index 99c79f441..c5b38d115 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsList.tsx
+++ b/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsList.tsx
@@ -4,13 +4,14 @@ import {StatusSlate} from '@app/features/app/components/dialogs/shared/StatusSla
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
import type {DeveloperApplication} from '@app/features/devtools/models/DeveloperApplication';
import FocusRing from '@app/features/ui/focus_ring/FocusRing';
+import {CaretRightIcon} from '@app/features/ui/icons/DirectionalIcons';
import styles from '@app/features/user/components/modals/tabs/applications_tab/ApplicationsTab.module.css';
import * as AvatarUtils from '@app/features/user/utils/AvatarUtils';
import * as DateUtils from '@app/features/user/utils/DateFormatting';
import * as SnowflakeUtils from '@fluxer/snowflake/src/SnowflakeUtils';
import {msg} from '@lingui/core/macro';
import {Trans, useLingui} from '@lingui/react/macro';
-import {AppWindowIcon, CaretRightIcon} from '@phosphor-icons/react';
+import {AppWindowIcon} from '@phosphor-icons/react';
import {observer} from 'mobx-react-lite';
import type React from 'react';
diff --git a/fluxer_app/src/features/user/components/profile/VoiceActivityCard.tsx b/fluxer_app/src/features/user/components/profile/VoiceActivityCard.tsx
index 71edf2f70..b131f6d9d 100644
--- a/fluxer_app/src/features/user/components/profile/VoiceActivityCard.tsx
+++ b/fluxer_app/src/features/user/components/profile/VoiceActivityCard.tsx
@@ -15,6 +15,7 @@ import {Button} from '@app/features/ui/button/Button';
import {Avatar} from '@app/features/ui/components/Avatar';
import {LiveBadge} from '@app/features/ui/components/LiveBadge';
import {Spinner} from '@app/features/ui/components/Spinner';
+import {CaretRightIcon} from '@app/features/ui/icons/DirectionalIcons';
import {Tooltip} from '@app/features/ui/tooltip/Tooltip';
import styles from '@app/features/user/components/profile/VoiceActivityCard.module.css';
import {
@@ -43,7 +44,7 @@ import {ME} from '@fluxer/constants/src/AppConstants';
import {Permissions} from '@fluxer/constants/src/ChannelConstants';
import {msg} from '@lingui/core/macro';
import {Trans, useLingui} from '@lingui/react/macro';
-import {CaretRightIcon, PhoneIcon, SpeakerHighIcon} from '@phosphor-icons/react';
+import {PhoneIcon, SpeakerHighIcon} from '@phosphor-icons/react';
import {clsx} from 'clsx';
import {observer} from 'mobx-react-lite';
import type React from 'react';