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: 0 additions & 3 deletions apps/mobile/app/paywall.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions apps/mobile/lib/trpc/client.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import type { AppRouter } from "@superset/trpc";
import { createTRPCProxyClient, httpBatchLink } from "@trpc/client";
import * as Application from "expo-application";
import superjson from "superjson";
import { authClient, getJwt } from "../auth/client";
import { env } from "../env";

const clientVersionHeader = `mobile/${Application.nativeApplicationVersion ?? "0.0.0"}`;

export const apiClient = createTRPCProxyClient<AppRouter>({
links: [
httpBatchLink({
Expand All @@ -15,7 +12,6 @@ export const apiClient = createTRPCProxyClient<AppRouter>({
const cookies = authClient.getCookie();
const jwt = getJwt();
return {
"x-superset-client": clientVersionHeader,
...(cookies ? { Cookie: cookies } : {}),
...(jwt ? { Authorization: `Bearer ${jwt}` } : {}),
};
Expand Down
2 changes: 0 additions & 2 deletions apps/mobile/screens/(auth)/sign-in/SignInScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { signIn } from "@/lib/auth/client";
import { env } from "@/lib/env";

import { DevSignInOptions } from "./components/DevSignInOptions";
import { EmailSignInLink } from "./components/EmailSignInLink";
import type { SocialProvider } from "./components/SocialButton";
import { SocialButton } from "./components/SocialButton";

Expand Down Expand Up @@ -116,7 +115,6 @@ export function SignInScreen() {
onPress={() => handleSignIn("google")}
className="w-4/5"
/>
<EmailSignInLink onError={setError} />
{(__DEV__ || env.EXPO_PUBLIC_E2E === "1") && <DevSignInOptions />}
</View>

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import Ionicons from "@expo/vector-icons/Ionicons";
import { ACCOUNT_DELETION_GRACE_DAYS } from "@superset/shared/constants";
import { Alert, ScrollView, View } from "react-native";
import { Text } from "@/components/ui/text";
import { useDeleteAccount } from "@/hooks/useDeleteAccount";
import { useTheme } from "@/hooks/useTheme";
import { useSession } from "@/lib/auth/client";
import { ListRow } from "@/screens/(authenticated)/components/ListRow";
import { ListRowValue } from "@/screens/(authenticated)/components/ListRowValue";
import { UserAvatar } from "../components/UserAvatar";
import { useDeleteAccount } from "../hooks/useDeleteAccount";

export function AccountSettingsScreen() {
const theme = useTheme();
Expand Down
10 changes: 1 addition & 9 deletions apps/mobile/screens/RootLayout/RootLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,16 @@ export function RootLayout() {
if (isPending) return null;

const pendingDeletion = !!session?.user.deletionRequestedAt;
const hasPaidPlan = !!session?.session.plan;

return (
<GestureHandlerRootView style={{ flex: 1 }}>
<QueryClientProvider client={queryClient}>
<PostHogProvider>
<ThemeProvider value={NAV_THEME.dark}>
<Stack screenOptions={{ headerShown: false }}>
<Stack.Protected
guard={!!session && !pendingDeletion && hasPaidPlan}
>
<Stack.Protected guard={!!session && !pendingDeletion}>
<Stack.Screen name="(authenticated)" />
</Stack.Protected>
<Stack.Protected
guard={!!session && !pendingDeletion && !hasPaidPlan}
>
<Stack.Screen name="paywall" />
</Stack.Protected>
<Stack.Protected guard={pendingDeletion}>
<Stack.Screen name="account-pending-deletion" />
</Stack.Protected>
Expand Down
127 changes: 0 additions & 127 deletions apps/mobile/screens/paywall/PaywallScreen.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/mobile/screens/paywall/index.ts

This file was deleted.

9 changes: 2 additions & 7 deletions apps/mobile/store.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Dynamic so the demo-account credentials never enter the repo:
// APP_REVIEW_EMAIL / APP_REVIEW_PASSWORD must be set when running
// `eas metadata:push` (same values as `bun run db:seed-review`).
module.exports = {
configVersion: 0,
apple: {
Expand Down Expand Up @@ -37,11 +34,9 @@ module.exports = {
lastName: "Patel",
email: "support@superset.sh",
phone: "+1 510 519 1602",
demoRequired: true,
demoUsername: process.env.APP_REVIEW_EMAIL ?? "",
demoPassword: process.env.APP_REVIEW_PASSWORD ?? "",
demoRequired: false,
notes:
"Superset Mobile is a companion app for the Superset desktop product (https://superset.sh): developers monitor and chat with AI coding agents running in their own workspaces. Access requires a Superset Pro subscription purchased outside the app (multiplatform service; there are no in-app purchases). Please use the provided demo account (sign in via the 'Sign in with email' link) to access a Pro workspace with sample data. Sign in with Apple, GitHub, or Google also works and creates a free account instantly, which shows the subscription-required screen. Account deletion is available from Settings > Account and from the subscription screen.",
"Sign in with Apple, GitHub, or Google. Signing in with Apple creates a free account instantly, so no demo credentials are needed. Superset is a companion app for the Superset desktop product (https://superset.sh): it lets developers monitor and chat with AI coding agents running in their own workspaces. A fresh account with no connected desktop host will show an empty state after onboarding. Account deletion is available in Settings > Account.",
},
},
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"db:push": "bun run --cwd packages/db push",
"db:migrate": "bun run --cwd packages/db migrate",
"db:seed-dev": "NODE_ENV=development bun run packages/auth/src/seed-dev.ts",
"db:seed-review": "bun run packages/auth/src/seed-review-account.ts",
"db:generate:desktop": "bun run --cwd packages/local-db generate"
},
"type": "module",
Expand Down
102 changes: 0 additions & 102 deletions packages/auth/src/seed-review-account.ts

This file was deleted.

Loading
Loading