Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion front/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"deploymentTarget": "16.4"
}
}
]
],
"expo-asset"
],
"experiments": {
"typedRoutes": true,
Expand Down
2 changes: 1 addition & 1 deletion front/app/__tests__/wizardStep-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Text } from 'react-native';
import { render, screen, fireEvent } from '@testing-library/react-native';

import { WizardStep } from '../onboarding/WizardStep';
import { WizardStep } from '../../components/onboarding/WizardStep';

describe('WizardStep', () => {
it('renders the step counter, title, subtitle, and children', () => {
Expand Down
20 changes: 20 additions & 0 deletions front/app/botChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,26 @@ export default function Chat() {
if (__DEV__) {
const e2eMode = await AsyncStorage.getItem("e2eTestMode");
if (e2eMode === "true") {
// Detox e2e: resolve a bundled asset to a simulator-local file://
// URI so the multipart upload reads real bytes. The old remote
// picsum URL is kept only as a last-resort fallback: native XHR
// form parts cannot fetch remote URLs, so uploads always failed.
// expo-asset is a declared dependency (package.json), so the require
// below is linked on every build — no extra native step needed.
try {
const { Asset } = require("expo-asset");
const asset = Asset.fromModule(
require("../assets/images/syft_small.png")
);
await asset.downloadAsync();
if (asset.localUri) {
setImage(asset.localUri);
return;
}
} catch (e) {
console.warn("[e2e] bundled test-image download failed, falling back to remote URL", e);
// Fall through to the legacy remote URL below.
}
setImage(E2E_TEST_IMAGE_URI);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion front/app/onboarding/bot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import type { Bot } from "@/api/bots";
import { fetchBots, tryFetchBot } from "@/api/bots";
import { handleUnauthorized } from "@/hooks/useSelectedProfile";
import { WizardStep } from "./WizardStep";
import { WizardStep } from "../../components/onboarding/WizardStep";

// Wizard defaults: Blank template, Penelope, teal, sparkles icon.
const DEFAULTS = {
Expand Down
2 changes: 1 addition & 1 deletion front/app/onboarding/notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
} from "@/hooks/useSelectedProfile";
import { isTeenDelegatedSession } from "@/api/tokens";
import { registerForPushNotificationsAsync } from "../parent/notifications";
import { WizardStep } from "./WizardStep";
import { WizardStep } from "../../components/onboarding/WizardStep";

export default function OnboardingNotifications() {
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion front/app/onboarding/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ThemedText } from "@/components/ThemedText";
import { ThemedTextInput } from "@/components/ThemedTextInput";
import { tryFetchProfile, tryFetchProfiles } from "@/api/profiles";
import { getSelectedProfile, handleUnauthorized } from "@/hooks/useSelectedProfile";
import { WizardStep } from "./WizardStep";
import { WizardStep } from "../../components/onboarding/WizardStep";

const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

Expand Down
2 changes: 1 addition & 1 deletion front/app/onboarding/protect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useLocalSearchParams, useRouter } from "expo-router";
import { ThemedButton } from "@/components/ThemedButton";
import { ThemedText } from "@/components/ThemedText";
import { ThemedTextInput } from "@/components/ThemedTextInput";
import { WizardStep } from "./WizardStep";
import { WizardStep } from "../../components/onboarding/WizardStep";

const PIN_PATTERN = /^\d{4,8}$/;

Expand Down
Loading
Loading