mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
feat(backend): add standalone data plane
Replace the Supabase application data plane with the Node/PostgreSQL API, migrate mobile, admin, web, and MCP callers, add controlled cutover tooling, and define hardened Dokploy infrastructure.
This commit is contained in:
1 parent
01bb8225ae
commit
006761d3b0
294 files changed
+16259
-6138
No files matched your search
@@ -3,7 +3,7 @@ import { useLocalSearchParams, useRouter } from "expo-router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { LinearGradient } from "expo-linear-gradient";
|
||||
import { BlurView } from "expo-blur";
|
||||
import { supabase } from "../../src/lib/supabase";
|
||||
import { appDataApi } from "../../src/lib/appDataApi";
|
||||
import { usePacksStore, useSubscriptionStore, useAuthStore } from "../../src/store";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import Animated, {
|
||||
@@ -69,14 +69,8 @@ export default function PackDetailsScreen() {
|
||||
|
||||
const fetchPackDetails = async () => {
|
||||
try {
|
||||
const { data, error } = await supabase
|
||||
.from("questions")
|
||||
.select("id, pack_id, text, partner_text, intensity, allowed_couple_genders, target_user_genders, created_at")
|
||||
.eq("pack_id", id)
|
||||
.order("created_at");
|
||||
|
||||
if (error) throw error;
|
||||
setQuestions(data || []);
|
||||
const { questions } = await appDataApi.packQuestions(String(id));
|
||||
setQuestions(questions);
|
||||
} catch (error) {
|
||||
console.error("Error fetching questions:", error);
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user