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
@@ -18,7 +18,7 @@ import Animated, {
|
||||
} from "react-native-reanimated";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import { LinearGradient } from "expo-linear-gradient";
|
||||
import { supabase } from "../lib/supabase";
|
||||
import { appDataApi } from "../lib/appDataApi";
|
||||
import { getPackIconName } from "../lib/packIcons";
|
||||
import { colors, gradients, spacing, radius, typography } from "../theme";
|
||||
|
||||
@@ -84,14 +84,7 @@ export function PackTeaser({
|
||||
const fetchQuestions = async () => {
|
||||
setIsLoading(true);
|
||||
try {
|
||||
const { data, error } = await supabase.rpc("get_pack_teaser_questions", {
|
||||
target_pack_id: packId,
|
||||
});
|
||||
|
||||
if (error) {
|
||||
console.error("Error fetching teaser questions:", error);
|
||||
return;
|
||||
}
|
||||
const { questions: data } = await appDataApi.packTeaser(packId);
|
||||
|
||||
// Take only the first 3 questions for the teaser
|
||||
const previewQuestions = (data || [])
|
||||
|
||||
Reference in new issue
Block a user