Skip to content

Commit

Permalink
Merge pull request #91 from kloudlite/features/console
Browse files Browse the repository at this point in the history
Features/console
  • Loading branch information
abdheshnayak authored Feb 14, 2024
2 parents cecf0b9 + 3680f38 commit 28e114f
Show file tree
Hide file tree
Showing 27 changed files with 1,019 additions and 985 deletions.
4 changes: 4 additions & 0 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2697,6 +2697,10 @@ query consoleListPvs($clusterName: String!, $search: SearchPersistentVolumes, $p
}
}

mutation consoleDeletePV($clusterName: String!, $pvName: String!) {
infra_deletePV(clusterName: $clusterName, pvName: $pvName)
}

query consoleListBuildRuns($repoName: String!, $search: SearchBuildRuns, $pq: CursorPaginationIn) {
cr_listBuildRuns(repoName: $repoName, search: $search, pq: $pq) {
edges {
Expand Down
5 changes: 4 additions & 1 deletion lib/client/hooks/use-custom-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const useCustomSwr = <T>(
key: string | null | (() => string | null),
func: () => IGqlReturn<T>
) => {
return useSWR(key, caller(func));
return useSWR(key, caller(func), {
shouldRetryOnError: false,
revalidateOnFocus: false,
});
};

export default useCustomSwr;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@codemirror/legacy-modes": "^6.3.3",
"@jengaicons/react": "^1.3.0",
"@mdx-js/react": "^2.3.0",
"@oshq/react-select": "^1.3.2",
"@oshq/react-select": "^1.3.3",
"@radix-ui/primitive": "^1.0.1",
"@radix-ui/react-alert-dialog": "1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/apps/auth/routes/_main+/oauth2.callback.$provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const CallBack = () => {
type: 'add-provider',
query,
status: 'success',
provider,
},
'*'
);
Expand Down
4 changes: 2 additions & 2 deletions src/apps/console/components/dynamic-pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const DynamicPagination = ({
return (
<div className={cn('bg-surface-basic-default flex', className)}>
{hasItems && (
<div className="w-full flex flex-col">
<div className="w-full flex flex-col h-full">
<DynamicPaginationHeader
{...{
hasNext,
Expand All @@ -98,7 +98,7 @@ const DynamicPagination = ({
>
{header}
</DynamicPaginationHeader>
<div>{children}</div>
<div className="h-full">{children}</div>
</div>
)}
{!hasItems && (
Expand Down
Loading

0 comments on commit 28e114f

Please sign in to comment.