mirror of https://github.com/buster-so/buster.git
organization camelcase update
This commit is contained in:
parent
00c7a3d13e
commit
139a0f52c9
|
@ -335,6 +335,7 @@ pub struct Collection {
|
||||||
|
|
||||||
#[derive(Queryable, Insertable, Identifiable, Debug, Clone, Serialize, Deserialize)]
|
#[derive(Queryable, Insertable, Identifiable, Debug, Clone, Serialize, Deserialize)]
|
||||||
#[diesel(table_name = organizations)]
|
#[diesel(table_name = organizations)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Organization {
|
pub struct Organization {
|
||||||
pub id: Uuid,
|
pub id: Uuid,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
|
@ -13,6 +13,9 @@ import { useSupabaseContext } from '../Supabase/SupabaseContextProvider';
|
||||||
import { persistOptions } from './createPersister';
|
import { persistOptions } from './createPersister';
|
||||||
import { getQueryClient } from './getQueryClient';
|
import { getQueryClient } from './getQueryClient';
|
||||||
|
|
||||||
|
const ENABLE_TANSTACK_PANEL =
|
||||||
|
process.env.NEXT_ENABLE_TANSTACK_PANEL === 'true' || process.env.NODE_ENV === 'development';
|
||||||
|
|
||||||
const ReactQueryDevtools = dynamic(
|
const ReactQueryDevtools = dynamic(
|
||||||
() =>
|
() =>
|
||||||
import('@tanstack/react-query-devtools').then((d) => ({
|
import('@tanstack/react-query-devtools').then((d) => ({
|
||||||
|
@ -66,7 +69,7 @@ export const BusterReactQueryProvider = ({ children }: { children: React.ReactNo
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setIsDevToolsOpen((prev) => !prev);
|
setIsDevToolsOpen((prev) => !prev);
|
||||||
},
|
},
|
||||||
{ enabled: process.env.NEXT_ENABLE_TANSTACK_PANEL === 'true' }
|
{ enabled: ENABLE_TANSTACK_PANEL }
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -16,9 +16,9 @@ const createChainableMock = () => {
|
||||||
'selectDistinct',
|
'selectDistinct',
|
||||||
];
|
];
|
||||||
|
|
||||||
methods.forEach((method) => {
|
for (const method of methods) {
|
||||||
mock[method] = vi.fn().mockReturnValue(mock);
|
mock[method] = vi.fn().mockReturnValue(mock);
|
||||||
});
|
}
|
||||||
|
|
||||||
// Override specific methods that should return data
|
// Override specific methods that should return data
|
||||||
mock._resolveWith = (data: any) => {
|
mock._resolveWith = (data: any) => {
|
||||||
|
|
|
@ -47,11 +47,9 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@buster/typescript-config": "workspace:*",
|
"@buster/typescript-config": "workspace:*",
|
||||||
"@buster/vitest-config": "workspace:*",
|
"@buster/vitest-config": "workspace:*",
|
||||||
"@types/pg": "^8.15.4",
|
|
||||||
"ai": "catalog:",
|
"ai": "catalog:",
|
||||||
"drizzle-kit": "^0.31.4",
|
"drizzle-kit": "^0.31.4",
|
||||||
"drizzle-orm": "catalog:",
|
"drizzle-orm": "catalog:",
|
||||||
"pg": "^8.16.3",
|
|
||||||
"postgres": "^3.4.7",
|
"postgres": "^3.4.7",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
}
|
}
|
||||||
|
|
|
@ -750,9 +750,6 @@ importers:
|
||||||
'@buster/vitest-config':
|
'@buster/vitest-config':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../vitest-config
|
version: link:../vitest-config
|
||||||
'@types/pg':
|
|
||||||
specifier: ^8.15.4
|
|
||||||
version: 8.15.4
|
|
||||||
ai:
|
ai:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 4.3.16(react@18.3.1)(zod@3.25.1)
|
version: 4.3.16(react@18.3.1)(zod@3.25.1)
|
||||||
|
@ -762,9 +759,6 @@ importers:
|
||||||
drizzle-orm:
|
drizzle-orm:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7)
|
version: 0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7)
|
||||||
pg:
|
|
||||||
specifier: ^8.16.3
|
|
||||||
version: 8.16.3
|
|
||||||
postgres:
|
postgres:
|
||||||
specifier: ^3.4.7
|
specifier: ^3.4.7
|
||||||
version: 3.4.7
|
version: 3.4.7
|
||||||
|
@ -17065,14 +17059,14 @@ snapshots:
|
||||||
msw: 2.10.3(@types/node@20.19.4)(typescript@5.8.3)
|
msw: 2.10.3(@types/node@20.19.4)(typescript@5.8.3)
|
||||||
vite: 6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)
|
vite: 6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)
|
||||||
|
|
||||||
'@vitest/mocker@3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))':
|
'@vitest/mocker@3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/spy': 3.2.4
|
'@vitest/spy': 3.2.4
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
magic-string: 0.30.17
|
magic-string: 0.30.17
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
msw: 2.10.3(@types/node@24.0.10)(typescript@5.8.3)
|
msw: 2.10.3(@types/node@24.0.10)(typescript@5.8.3)
|
||||||
vite: 6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)
|
vite: 6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)
|
||||||
|
|
||||||
'@vitest/pretty-format@2.0.5':
|
'@vitest/pretty-format@2.0.5':
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -23625,7 +23619,7 @@ snapshots:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/chai': 5.2.2
|
'@types/chai': 5.2.2
|
||||||
'@vitest/expect': 3.2.4
|
'@vitest/expect': 3.2.4
|
||||||
'@vitest/mocker': 3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))
|
'@vitest/mocker': 3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))
|
||||||
'@vitest/pretty-format': 3.2.4
|
'@vitest/pretty-format': 3.2.4
|
||||||
'@vitest/runner': 3.2.4
|
'@vitest/runner': 3.2.4
|
||||||
'@vitest/snapshot': 3.2.4
|
'@vitest/snapshot': 3.2.4
|
||||||
|
|
Loading…
Reference in New Issue