kloudlite / web

Kloudlite Web
http://kloudlite.io
GNU Affero General Public License v3.0
2 stars 1 forks source link

update ui changes #262

Closed nxtCoder19 closed 4 months ago

nxtCoder19 commented 4 months ago

Summary by Sourcery

This pull request enhances the pagination structure in the Wrapper component and updates several GraphQL queries to support cursor-based pagination. Additionally, it refactors route components to streamline the handling of pagination data.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request updates the UI components to handle pagination more effectively by introducing a structured pagination object. It also modifies GraphQL queries to support cursor-based pagination. The changes span multiple files, primarily focusing on updating the pagination logic and GraphQL query parameters.

File-Level Changes

Files Changes
src/apps/console/routes/_main+/$account+/env+/$environment+/cs+/configs._index/route.tsx
src/apps/console/routes/_main+/$account+/infra+/vpn-devices/route.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/apps/route.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/managed-resources/route.tsx
src/apps/console/routes/_main+/$account+/environments/route.tsx
src/apps/console/routes/_main+/$account+/managed-services/route.tsx
Updated the pagination prop in the Wrapper component to accept the entire data object directly.
gql-queries-generator/doc/queries.graphql
src/apps/auth/server/gql/cli-queries.ts
src/generated/gql/server.ts
Modified GraphQL queries and types to support cursor-based pagination.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.