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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CORS_ENABLED=true
CORS_ALLOW_ORIGIN=http://localhost:8080
# Needed for UI to work
JWT_SECRET=secret
API_URL=http://localhost:3000

# Option 1 (Memory)
# SlateDB storage settings
Expand Down
26 changes: 13 additions & 13 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@codemirror/lang-sql": "^6.10.0",
"@codemirror/language": "^6.11.3",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.38.3",
"@codemirror/view": "^6.38.4",
"@hookform/resolvers": "^5.2.2",
"@lezer/highlight": "^1.2.1",
"@radix-ui/react-alert-dialog": "^1.1.15",
Expand All @@ -49,7 +49,7 @@
"@tailwindcss/vite": "^4.1.13",
"@tanstack/react-query": "^5.90.2",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "1.132.7",
"@tanstack/react-router": "1.132.25",
"@tanstack/react-table": "^8.21.3",
"@tidbcloud/codemirror-extension-cur-sql-gutter": "^0.0.6",
"@tidbcloud/codemirror-extension-events": "^0.0.7",
Expand Down Expand Up @@ -81,31 +81,31 @@
"@eslint/js": "9.36.0",
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
"@julr/vite-plugin-validate-env": "^2.2.0",
"@orval/core": "^7.11.2",
"@tanstack/eslint-plugin-query": "^5.90.1",
"@tanstack/router-devtools": "1.132.7",
"@tanstack/router-plugin": "1.132.7",
"@types/node": "24.5.2",
"@types/react": "^19.1.13",
"@orval/core": "^7.13.0",
"@tanstack/eslint-plugin-query": "^5.91.0",
"@tanstack/router-devtools": "1.132.25",
"@tanstack/router-plugin": "1.132.25",
"@types/node": "24.6.0",
"@types/react": "^19.1.15",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.0.3",
"@vitejs/plugin-react": "^5.0.4",
"eslint": "9.36.0",
"eslint-plugin-check-file": "^3.3.0",
"eslint-plugin-n": "^17.23.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
"eslint-plugin-react-refresh": "^0.4.22",
"knip": "^5.64.1",
"lint-staged": "^16.2.1",
"npm-check-updates": "^18.3.0",
"orval": "^7.11.2",
"lint-staged": "^16.2.3",
"npm-check-updates": "^19.0.0",
"orval": "^7.13.0",
"prettier": "^3.6.2",
"prettier-plugin-packagejson": "^2.5.19",
"prettier-plugin-tailwindcss": "^0.6.14",
"simple-git-hooks": "^2.13.1",
"tailwindcss": "^4.1.13",
"typescript": "^5.9.2",
"typescript-eslint": "^8.44.1",
"typescript-eslint": "^8.45.0",
"vite": "^7.1.7",
"vite-tsconfig-paths": "^5.1.4"
},
Expand Down
1,776 changes: 1,020 additions & 756 deletions ui/pnpm-lock.yaml

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions ui/src/mocks/databases-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,61 @@ export const DATABASES_MOCK: Database[] = [
{
name: 'mydb1',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb2',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb3',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb4',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb5',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb6',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb7',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb8',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb9',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
{
name: 'mydb10',
volume: 'myvolume',
created_at: '2025-01-01',
updated_at: '2025-01-01',
createdAt: '2025-01-01',
updatedAt: '2025-01-01',
},
];
2 changes: 1 addition & 1 deletion ui/src/modules/databases/databases-page-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function DatabasesTable({ isLoading, databases }: DatabasesTableProps) {
columnHelper.accessor('volume', {
header: 'Volume',
}),
columnHelper.accessor('created_at', {
columnHelper.accessor('createdAt', {
header: 'Created',
cell: (info) => {
return <span>{formatTime(info.getValue())}</span>;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/modules/schemas/schemas-page-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function SchemasTable({ isLoading, schemas }: SchemasTableProps) {
columnHelper.accessor('name', {
header: 'Name',
}),
columnHelper.accessor('created_at', {
columnHelper.accessor('createdAt', {
header: 'Created',
cell: (info) => {
return <span>{formatTime(info.getValue())}</span>;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/orval/account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated by orval v7.10.0 🍺
* Generated by orval v7.13.0 🍺
* Do not edit manually.
* UI Router API
* Defines the specification for the UI Catalog API
Expand Down
29 changes: 19 additions & 10 deletions ui/src/orval/auth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated by orval v7.10.0 🍺
* Generated by orval v7.13.0 🍺
* Do not edit manually.
* UI Router API
* Defines the specification for the UI Catalog API
Expand Down Expand Up @@ -37,7 +37,7 @@ export const login = (
};

export const getLoginMutationOptions = <
TError = ErrorType<AuthErrorResponse>,
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Expand Down Expand Up @@ -73,9 +73,12 @@ export const getLoginMutationOptions = <

export type LoginMutationResult = NonNullable<Awaited<ReturnType<typeof login>>>;
export type LoginMutationBody = LoginPayload;
export type LoginMutationError = ErrorType<AuthErrorResponse>;
export type LoginMutationError = ErrorType<AuthErrorResponse | AuthErrorResponse>;

export const useLogin = <TError = ErrorType<AuthErrorResponse>, TContext = unknown>(
export const useLogin = <
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof login>>,
Expand All @@ -101,7 +104,7 @@ export const logout = (options?: SecondParameter<typeof useAxiosMutator>, signal
};

export const getLogoutMutationOptions = <
TError = ErrorType<AuthErrorResponse>,
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
Expand All @@ -123,9 +126,12 @@ export const getLogoutMutationOptions = <

export type LogoutMutationResult = NonNullable<Awaited<ReturnType<typeof logout>>>;

export type LogoutMutationError = ErrorType<AuthErrorResponse>;
export type LogoutMutationError = ErrorType<AuthErrorResponse | AuthErrorResponse>;

export const useLogout = <TError = ErrorType<AuthErrorResponse>, TContext = unknown>(
export const useLogout = <
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
request?: SecondParameter<typeof useAxiosMutator>;
Expand All @@ -147,7 +153,7 @@ export const refreshAuthToken = (
};

export const getRefreshAuthTokenMutationOptions = <
TError = ErrorType<AuthErrorResponse>,
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Expand Down Expand Up @@ -176,9 +182,12 @@ export type RefreshAuthTokenMutationResult = NonNullable<
Awaited<ReturnType<typeof refreshAuthToken>>
>;

export type RefreshAuthTokenMutationError = ErrorType<AuthErrorResponse>;
export type RefreshAuthTokenMutationError = ErrorType<AuthErrorResponse | AuthErrorResponse>;

export const useRefreshAuthToken = <TError = ErrorType<AuthErrorResponse>, TContext = unknown>(
export const useRefreshAuthToken = <
TError = ErrorType<AuthErrorResponse | AuthErrorResponse>,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof refreshAuthToken>>,
Expand Down
14 changes: 7 additions & 7 deletions ui/src/orval/dashboard.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated by orval v7.10.0 🍺
* Generated by orval v7.13.0 🍺
* Do not edit manually.
* UI Router API
* Defines the specification for the UI Catalog API
Expand Down Expand Up @@ -37,7 +37,7 @@ export const getGetDashboardQueryKey = () => {

export const getGetDashboardQueryOptions = <
TData = Awaited<ReturnType<typeof getDashboard>>,
TError = ErrorType<ErrorResponse>,
TError = ErrorType<ErrorResponse | ErrorResponse>,
>(options?: {
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDashboard>>, TError, TData>>;
request?: SecondParameter<typeof useAxiosMutator>;
Expand All @@ -57,11 +57,11 @@ export const getGetDashboardQueryOptions = <
};

export type GetDashboardQueryResult = NonNullable<Awaited<ReturnType<typeof getDashboard>>>;
export type GetDashboardQueryError = ErrorType<ErrorResponse>;
export type GetDashboardQueryError = ErrorType<ErrorResponse | ErrorResponse>;

export function useGetDashboard<
TData = Awaited<ReturnType<typeof getDashboard>>,
TError = ErrorType<ErrorResponse>,
TError = ErrorType<ErrorResponse | ErrorResponse>,
>(
options: {
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDashboard>>, TError, TData>> &
Expand All @@ -79,7 +79,7 @@ export function useGetDashboard<
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
export function useGetDashboard<
TData = Awaited<ReturnType<typeof getDashboard>>,
TError = ErrorType<ErrorResponse>,
TError = ErrorType<ErrorResponse | ErrorResponse>,
>(
options?: {
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDashboard>>, TError, TData>> &
Expand All @@ -97,7 +97,7 @@ export function useGetDashboard<
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
export function useGetDashboard<
TData = Awaited<ReturnType<typeof getDashboard>>,
TError = ErrorType<ErrorResponse>,
TError = ErrorType<ErrorResponse | ErrorResponse>,
>(
options?: {
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDashboard>>, TError, TData>>;
Expand All @@ -108,7 +108,7 @@ export function useGetDashboard<

export function useGetDashboard<
TData = Awaited<ReturnType<typeof getDashboard>>,
TError = ErrorType<ErrorResponse>,
TError = ErrorType<ErrorResponse | ErrorResponse>,
>(
options?: {
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getDashboard>>, TError, TData>>;
Expand Down
Loading