Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
29377db
add login performance entry analysis
leofelix077 Dec 26, 2025
8b9454e
clean up performance logging and add switch accounts loading screen
leofelix077 Jan 5, 2026
bc7959e
remove commented out code
leofelix077 Jan 5, 2026
e12b570
simplify logic of updating temporary store
leofelix077 Jan 5, 2026
50efd89
add wallet switching data clearing and wallet-based caching
leofelix077 Jan 12, 2026
9967c41
add wallet switching data clearing and wallet-based caching
leofelix077 Jan 12, 2026
1012842
update flow comments
leofelix077 Jan 12, 2026
d6d3610
cleanup bio pw typings
leofelix077 Jan 12, 2026
0338279
cleanup unused functions
leofelix077 Jan 12, 2026
bf982f5
simplify functions JSdocs
leofelix077 Jan 12, 2026
8dd8f42
remove caching of temp store
leofelix077 Jan 13, 2026
532a1bf
remove cache revalidation
leofelix077 Jan 13, 2026
49dc812
add locked state with preserved data
leofelix077 Jan 13, 2026
69430bd
remove history fetch for unfunded accounts
leofelix077 Jan 13, 2026
1b6b60c
Merge branch 'main' into chore/3034123
leofelix077 Jan 14, 2026
572bbfa
fix login after app update from signed out state
leofelix077 Jan 14, 2026
d7207b9
Merge branch 'chore/3034123' of github.com:stellar/freighter-mobile i…
leofelix077 Jan 14, 2026
691539f
fix minor issues from copilot review
leofelix077 Jan 14, 2026
a8f194b
fix copilot security checks
leofelix077 Jan 14, 2026
24f39d5
improve locked state data encryption
leofelix077 Jan 14, 2026
345429a
Merge branch 'main' into chore/3034123
leofelix077 Jan 14, 2026
ba9078f
Update src/ducks/auth.ts
leofelix077 Jan 14, 2026
d04c380
Update src/ducks/auth.ts
leofelix077 Jan 14, 2026
143b567
fix mocks for auth locked state test
leofelix077 Jan 14, 2026
9c2da1c
Merge branch 'main' into chore/3034123
leofelix077 Jan 14, 2026
9ec5c98
Update src/ducks/auth.ts
leofelix077 Jan 15, 2026
1377563
update used translations and add reset store tests
leofelix077 Jan 15, 2026
6055cf7
Initial plan
Copilot Jan 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
583 changes: 580 additions & 3 deletions __tests__/ducks/auth.test.ts

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions __tests__/hooks/useWelcomeBanner.test.ts

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/components/screens/HomeScreen/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DebugBottomSheet } from "components/analytics/DebugBottomSheet";
import { BaseLayout } from "components/layout/BaseLayout";
import ManageAccounts from "components/screens/HomeScreen/ManageAccounts";
import WelcomeBannerBottomSheet from "components/screens/HomeScreen/WelcomeBannerBottomSheet";
import { LoadingScreen } from "components/screens/LoadingScreen";
import Avatar from "components/sds/Avatar";
import Icon from "components/sds/Icon";
import { Display, Text } from "components/sds/Typography";
Expand Down Expand Up @@ -62,7 +63,8 @@ type HomeScreenProps = BottomTabScreenProps<
export const HomeScreen: React.FC<HomeScreenProps> = React.memo(
({ navigation }) => {
const { account } = useGetActiveAccount();
const { network, getAllAccounts, allAccounts } = useAuthenticationStore();
const { network, getAllAccounts, allAccounts, isSwitchingAccount } =
useAuthenticationStore();
const { themeColors } = useColors();
const manageAccountsBottomSheetRef = useRef<BottomSheetModal>(null);
const analyticsDebugBottomSheetRef = useRef<BottomSheetModal>(null);
Expand Down Expand Up @@ -100,6 +102,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = React.memo(
account,
isFunded,
isLoadingBalances,
isSwitchingAccount,
});

// NOTE: VIEW_HOME analytics event is already tracked by useNavigationAnalytics
Expand Down Expand Up @@ -228,6 +231,11 @@ export const HomeScreen: React.FC<HomeScreenProps> = React.memo(
fetchActiveSessions,
]);

// Show full screen loading when switching accounts
if (isSwitchingAccount) {
return <LoadingScreen />;
}

return (
<BaseLayout
insets={{ bottom: false, top: false, left: false, right: false }}
Expand Down
1 change: 1 addition & 0 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ export enum STORAGE_KEYS {
WELCOME_BANNER_SHOWN_PREFIX = "welcomeBanner_shown_",
HAS_SEEN_BIOMETRICS_ENABLE_SCREEN = "hasSeenBiometricsEnableScreen",
APP_UPDATE_DISMISSED_REQUIRED_VERSION = "appUpdateDismissedRequiredVersion",
AUTH_STATUS = "authStatus",
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export const AUTH_STATUS = {
AUTHENTICATED: "AUTHENTICATED",
// User is authenticated. Hash key is expired and temporary store is found.
HASH_KEY_EXPIRED: "HASH_KEY_EXPIRED",
// User is locked. Hash key is expired but temporary store with private keys is preserved.
LOCKED: "LOCKED",
} as const;

export type AuthStatus = (typeof AUTH_STATUS)[keyof typeof AUTH_STATUS];
Expand Down
Loading