OhSoGamer
OhSoGamer
Explore posts from servers
RRefine
Created by optimistic-gold on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai Sider={null} does not disable the sider in this page
125 replies
RRefine
Created by xenial-black on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai export const authProvider: AuthProvider = { login: async ({ providerName }) => { if (providerName === "google") { const { data, error } = await supabaseClient.auth.signInWithOAuth({ provider: "google", }); if (error) { return { success: false, error, }; } if (data?.user) { return { success: true, redirectTo: "/", }; } } return { success: false, error: new Error("Login failed"), }; }, onError: async (error) => { if (error.statusCode === "UNAUTHENTICATED") { return { logout: true, }; } return { error }; }, Object literal may only specify known properties, and 'onError' does not exist in type 'AuthProvider'.ts(2353)
125 replies
RRefine
Created by optimistic-gold on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai show me the default AuthProvider file
125 replies
RRefine
Created by logical-cyan on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai how can I configure ThemedLayoutV2 to use a custom SVG in the header in place of the default title
125 replies
RRefine
Created by ratty-blush on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai clear all previous messages
125 replies
RRefine
Created by evident-indigo on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai Type '{ children: Element; Title: any; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; }'. Property 'Title' does not exist on type 'IntrinsicAttributes & { children?: ReactNode; }'.ts(2322) (property) Title: any
125 replies
RRefine
Created by exotic-emerald on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai ThemedLayoutV2 is deprecated and no longer used
125 replies
RRefine
Created by sensitive-blue on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai I have attached my SVG and text, but it still displays REFINE next to it. The element doesn't scale to my SVG either, it is locked at 24px x 24px
125 replies
RRefine
Created by variable-lime on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai The header shows an icon with REFINE, how can I change this to an SVG
125 replies
RRefine
Created by quickest-silver on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai Binding element 'resource' implicitly has an 'any' type.ts(7031)
125 replies
RRefine
Created by foreign-sapphire on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai hourly_sales in supabase is still being called in the console over and over and over again
125 replies
RRefine
Created by optimistic-gold on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai I need to be accessing my supabas table as an authenticated user rather than anon, I think
125 replies
RRefine
Created by adverse-sapphire on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai this is my current useList implemtation. It keeps on repeatedly calling supabase, resulting in supabase timining out. export const DashboardHourlySales = () => { const now = dayjs(); // Current timestamp const twoDaysAgo = now.subtract(48, "hour").toISOString(); // 48 hours ago const todayStart = now.startOf("day"); // Start of today const yesterdayStart = todayStart.subtract(1, "day"); // Start of yesterday const { data, isLoading } = useList({ resource: "hourly_sales", filters: [ { field: "hour", operator: "gte", value: twoDaysAgo, }, { field: "hour", operator: "lte", value: now.toISOString(), }, ], meta: { select: "*", }, sorters: [ { field: "hour", order: "asc", }, ] });
125 replies
RRefine
Created by passive-yellow on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
I keep getting a timeout error from supabase @kapa.ai message: 'canceling statement due to statement timeout', statusCode: 57014
125 replies
RRefine
Created by correct-apricot on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai this reports that 'between' is unsupported const now = dayjs().toISOString(); // Current timestamp in ISO format const twoDaysAgo = dayjs().subtract(48, "hour").toISOString(); // 48 hours ago in ISO format
const { data, isLoading } = useList({ resource: "orders", liveMode: "auto", filters: [ { field: "created_at", operator: "between", value: [twoDaysAgo, now], // Filter for 'created_at' between two dates }, { field: "cancelled_at", operator: "null", value: true, // 'cancelled_at' must be null }, ], pagination: { pageSize: 10, // Adjust as needed }, meta: { select: "*", // Retrieve all fields }, sorters: [ { field: "created_at", order: "desc", // Sort by 'created_at' in descending order }, ], onLiveEvent: (event) => { console.log(event); }, });
125 replies
RRefine
Created by modern-teal on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai i'm not sure we are getting live data from supabase Not implemented on refine-supabase data provider.
125 replies
RRefine
Created by extended-salmon on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai I want to use liveProvider in a useList, how do I do this
125 replies
RRefine
Created by deep-jade on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
@kapa.ai how can I filter where a field is null or empty- this doesn't return anything, even though the field in supabase is NULL filters: [ { field: "cancelled_at", operator: "eq", value: null } ],
125 replies
RRefine
Created by optimistic-gold on 11/26/2024 in #ask-any-question
Add supabase to default minimal-crm-app
show me a basic example of a component that fetches supabase data using useList @kapa.ai
125 replies