From a159f5831b359730eb1dfdf7f50b73e506024964 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Tue, 8 Oct 2024 16:09:05 +0530 Subject: [PATCH 01/18] Implemented: 'Learn More' functionality that generates job info from GitBook Lens APIs (#726) --- src/adapter/index.ts | 4 +- src/components/JobConfiguration.vue | 21 +++- src/components/LeareMoreModal.vue | 168 ++++++++++++++++++++++++++++ src/locales/en.json | 3 + src/views/Pipeline.vue | 17 ++- 5 files changed, 209 insertions(+), 4 deletions(-) create mode 100644 src/components/LeareMoreModal.vue diff --git a/src/adapter/index.ts b/src/adapter/index.ts index a31b0067..60edcc82 100644 --- a/src/adapter/index.ts +++ b/src/adapter/index.ts @@ -1,7 +1,8 @@ -import { api, client, getConfig, initialise, logout, resetConfig, updateInstanceUrl, updateToken, setUserTimeZone, getAvailableTimeZones} from '@hotwax/oms-api' +import { api, askQuery, client, getConfig, initialise, logout, resetConfig, searchQuery, updateInstanceUrl, updateToken, setUserTimeZone, getAvailableTimeZones} from '@hotwax/oms-api' export { api, + askQuery, client, getConfig, initialise, @@ -9,6 +10,7 @@ export { resetConfig, updateInstanceUrl, updateToken, + searchQuery, setUserTimeZone, getAvailableTimeZones } \ No newline at end of file diff --git a/src/components/JobConfiguration.vue b/src/components/JobConfiguration.vue index 77926a83..edb3e0c1 100644 --- a/src/components/JobConfiguration.vue +++ b/src/components/JobConfiguration.vue @@ -13,7 +13,9 @@ -

{{ currentJob.description }}

+

{{ currentJob.description }} + Learn more +

@@ -132,6 +134,7 @@ import { IonRow, IonSelect, IonSelectOption, + IonText, alertController, modalController, } from "@ionic/vue"; @@ -159,6 +162,7 @@ import emitter from '@/event-bus'; import { Actions, hasPermission } from '@/authorization' import CustomFrequencyModal from '@/components/CustomFrequencyModal.vue'; import JobParameterModal from '@/components/JobParameterModal.vue' +import LeareMoreModal from "./LeareMoreModal.vue"; export default defineComponent({ name: "JobConfiguration", @@ -176,7 +180,8 @@ export default defineComponent({ IonRow, IonSelect, IonSelectOption, - IonCheckbox + IonCheckbox, + IonText }, data() { return { @@ -225,6 +230,13 @@ export default defineComponent({ } }, methods: { + async openLearnMoreModal() { + const openLearnMoreModal = await modalController.create({ + component: LeareMoreModal, + componentProps: {currentJob: this.currentJob} + }) + return openLearnMoreModal.present() + }, getDateTime(time: any) { return DateTime.fromMillis(time).toISO() }, @@ -547,6 +559,11 @@ export default defineComponent({