From 73abba06cfb21b4e14a9fe651a12dea5fa2ed1b3 Mon Sep 17 00:00:00 2001 From: Kristaps Fabians Geikins Date: Wed, 5 Jun 2024 12:18:13 +0300 Subject: [PATCH] feat(fe2): pagination for various automate UIs (#2324) * WIP infinite load helper * finished automations pagination * runs pagination working * fn pagination * minor cleanup * subscription cache mutation fixes * filtered cache update fix * minor changes --- .../create-dialog/SelectFunctionStep.vue | 44 +++-- .../automate/functions/page/Items.vue | 7 +- .../project/page/automation/Runs.vue | 23 ++- .../project/page/automations/Header.vue | 4 +- .../project/page/automations/Row.vue | 3 +- .../project/page/automations/Tab.vue | 67 ++++++-- .../lib/auth/composables/activeUser.ts | 3 +- .../lib/automate/graphql/queries.ts | 6 + .../lib/common/composables/graphql.ts | 162 +++++++++++++++++- .../lib/common/generated/gql/gql.ts | 39 +++-- .../lib/common/generated/gql/graphql.ts | 63 +++++-- .../lib/common/helpers/encodeDecode.ts | 18 ++ .../frontend-2/lib/common/helpers/graphql.ts | 23 ++- packages/frontend-2/lib/common/helpers/md5.ts | 4 - .../frontend-2/lib/core/composables/mp.ts | 2 +- .../composables/automationManagement.ts | 32 ++-- .../lib/projects/graphql/queries.ts | 48 +++++- packages/frontend-2/pages/functions/index.vue | 45 +++-- .../automate/clients/executionEngine.ts | 1 + .../automate/graph/resolvers/automate.ts | 7 - .../automate/repositories/automations.ts | 25 ++- .../modules/shared/helpers/graphqlHelper.ts | 16 ++ 22 files changed, 524 insertions(+), 118 deletions(-) create mode 100644 packages/frontend-2/lib/common/helpers/encodeDecode.ts delete mode 100644 packages/frontend-2/lib/common/helpers/md5.ts diff --git a/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue b/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue index 1b32cf7da..2a897a841 100644 --- a/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue +++ b/packages/frontend-2/components/automate/automation/create-dialog/SelectFunctionStep.vue @@ -13,9 +13,8 @@ v-on="on" />
- -