diff --git a/.env.example b/.env.example index 2b19d2f7..3dd51432 100644 --- a/.env.example +++ b/.env.example @@ -18,3 +18,7 @@ VUE_APP_ALIAS= VUE_APP_DEFAULT_LOG_LEVEL="error" VUE_APP_LOGIN_URL="http://launchpad.hotwax.io/login" VUE_APP_BROKER_JOB_ENUMS = {"REJ_ORDR":"JOB_BKR_REJ_ORD"} +VUE_APP_GITBOOK_API_KEY="" +VUE_APP_SPACE_ID="" +VUE_APP_GITBOOK_BASE_URL="https://api.gitbook.com/v1" +VUE_APP_GITBOOK_JOBS_DOCS_URL="https://docs.hotwax.co/documents/retail-operations/workflow/job-workflows" diff --git a/package-lock.json b/package-lock.json index e6849f12..24a35177 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@hotwax/app-version-info": "^1.0.0", "@hotwax/apps-theme": "^1.2.6", "@hotwax/dxp-components": "1.15.4", - "@hotwax/oms-api": "1.14.0", + "@hotwax/oms-api": "^1.14.0", "@ionic/core": "^7.6.0", "@ionic/vue": "^7.6.0", "@ionic/vue-router": "^7.6.0", @@ -2680,8 +2680,9 @@ } }, "node_modules/@hotwax/oms-api": { - "version": "1.14.0", - "license": "Apache-2.0", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hotwax/oms-api/-/oms-api-1.16.0.tgz", + "integrity": "sha512-WZ3v0TxcHz5UZEBDX+GvZd/cqD08Kws42kGcseN2tfNf5kKWbfaDgWm6KEaBxLFuVBPBdRelRZhGj/nRIxBgGw==", "dependencies": { "@types/node-json-transform": "^1.0.0", "axios": "^0.21.1", diff --git a/package.json b/package.json index 4b58abf3..f0a276d0 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@hotwax/app-version-info": "^1.0.0", "@hotwax/apps-theme": "^1.2.6", "@hotwax/dxp-components": "1.15.4", - "@hotwax/oms-api": "1.14.0", + "@hotwax/oms-api": "^1.14.0", "@ionic/core": "^7.6.0", "@ionic/vue": "^7.6.0", "@ionic/vue-router": "^7.6.0", 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 a786e546..177e57f1 100644 --- a/src/components/JobConfiguration.vue +++ b/src/components/JobConfiguration.vue @@ -14,7 +14,9 @@ - {{ currentJob.description }} + {{ currentJob.description }} + {{ translate("Learn more") }} + @@ -170,6 +172,7 @@ import { IonRow, IonSelect, IonSelectOption, + IonText, alertController, modalController, } from "@ionic/vue"; @@ -200,6 +203,7 @@ import emitter from '@/event-bus'; import { Actions, hasPermission } from '@/authorization' import CustomFrequencyModal from '@/components/CustomFrequencyModal.vue'; import JobParameterModal from '@/components/JobParameterModal.vue' +import LearnMoreModal from "@/components/LearnMoreModal.vue"; export default defineComponent({ name: "JobConfiguration", @@ -218,7 +222,8 @@ export default defineComponent({ IonRow, IonSelect, IonSelectOption, - IonCheckbox + IonCheckbox, + IonText }, data() { return { @@ -279,6 +284,13 @@ export default defineComponent({ const jobId = this.currentJob.jobId this.router.push({ name: 'DataManagerLogDetails', params: { jobId } }) }, + async openLearnMoreModal() { + const learnMoreModal = await modalController.create({ + component: LearnMoreModal, + componentProps: {currentJob: this.currentJob} + }) + return learnMoreModal.present() + }, getDateTime(time: any) { return DateTime.fromMillis(time).toISO() }, @@ -604,6 +616,10 @@ export default defineComponent({
{{ currentJob.description }}
{{ currentJob.description }} + {{ translate("Learn more") }} +