Skip to content

Commit

Permalink
Improved: UI of the misc jobs, enumDescription to be shown in the his…
Browse files Browse the repository at this point in the history
…tory modal (#734)
  • Loading branch information
amansinghbais committed Dec 5, 2024
1 parent 1b873c4 commit d574f54
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
3 changes: 2 additions & 1 deletion src/components/JobHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ currentJob?.enumName ? currentJob.enumName : currentJob?.jobName ? currentJob.jobName : currentJob?.description }}</ion-title>
<ion-title v-if="isMaargJob">{{ currentJob?.enumDescription ? currentJob.enumDescription : currentJob.jobName }}</ion-title>
<ion-title v-else>{{ currentJob?.enumName ? currentJob.enumName : currentJob?.description }}</ion-title>
</ion-toolbar>
</ion-header>

Expand Down
49 changes: 24 additions & 25 deletions src/views/Miscellaneous.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,30 @@
<div v-else>
<ion-list>
<ion-list-header>{{ translate("Miscellaneous jobs") }}</ion-list-header>

<ion-card>
<ion-card-header>
<ion-card-title>{{ translate("Shopify bulk query") }}</ion-card-title>
</ion-card-header>

<ion-item button detail :disabled="!isMaargJobFound('BLK_SYS_MESS_SHPFY')" @click="viewMaargJobConfiguration('BLK_SYS_MESS_SHPFY')">
<ion-label>{{ translate("Send next bulk query system message in queue") }}</ion-label>
<ion-note slot="end" >{{ isMaargJobFound('BLK_SYS_MESS_SHPFY') ? getMaargJobStatus("BLK_SYS_MESS_SHPFY") : translate("Not found") }}</ion-note>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('BLK_RSLT_SHPFY')" @click="viewMaargJobConfiguration('BLK_RSLT_SHPFY')">
<ion-label>{{ translate("Poll current bulk operation query result") }}</ion-label>
<ion-note slot="end" >{{ isMaargJobFound('BLK_RSLT_SHPFY') ? getMaargJobStatus("BLK_RSLT_SHPFY") : translate("Not found") }}</ion-note>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('ALL_RCVD_SYS_MSG')" @click="viewMaargJobConfiguration('ALL_RCVD_SYS_MSG')">
<ion-label>{{ translate("Consume All Received System Messages") }}</ion-label>
<ion-note slot="end" >{{ isMaargJobFound('ALL_RCVD_SYS_MSG') ? getMaargJobStatus("ALL_RCVD_SYS_MSG") : translate("Not found") }}</ion-note>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('ALL_PRDCD_SYS_MSG')" @click="viewMaargJobConfiguration('ALL_PRDCD_SYS_MSG')">
<ion-label>{{ translate("Send All Produced System Messages") }}</ion-label>
<ion-note slot="end" >{{ isMaargJobFound('ALL_PRDCD_SYS_MSG') ? getMaargJobStatus("ALL_PRDCD_SYS_MSG") : translate("Not found") }}</ion-note>
</ion-item>
</ion-card>

<ion-item v-for="job in prepareMiscJobs" :key="job.jobId" @click="viewJobConfiguration(job)" detail button>
<ion-label>{{ job.jobName }}</ion-label>
<ion-note slot="end">{{ getJobRuntime(job) }}</ion-note>
Expand All @@ -34,31 +58,6 @@
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')"/>
</ion-infinite-scroll>
</div>

<div>
<ion-card>
<ion-card-header>
<ion-card-title>{{ translate("Shopify bulk query") }}</ion-card-title>
</ion-card-header>

<ion-item button detail :disabled="!isMaargJobFound('BLK_SYS_MESS_SHPFY')" @click="viewMaargJobConfiguration('BLK_SYS_MESS_SHPFY')">
<ion-label class="ion-text-wrap">{{ translate("Send next bulk query system message in queue") }}</ion-label>
<ion-label slot="end" >{{ isMaargJobFound('BLK_SYS_MESS_SHPFY') ? getMaargJobStatus("BLK_SYS_MESS_SHPFY") : translate("Not found") }}</ion-label>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('BLK_RSLT_SHPFY')" @click="viewMaargJobConfiguration('BLK_RSLT_SHPFY')">
<ion-label class="ion-text-wrap">{{ translate("Poll current bulk operation query result") }}</ion-label>
<ion-label slot="end" >{{ isMaargJobFound('BLK_RSLT_SHPFY') ? getMaargJobStatus("BLK_RSLT_SHPFY") : translate("Not found") }}</ion-label>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('ALL_RCVD_SYS_MSG')" @click="viewMaargJobConfiguration('ALL_RCVD_SYS_MSG')">
<ion-label class="ion-text-wrap">{{ translate("Consume All Received System Messages") }}</ion-label>
<ion-label slot="end" >{{ isMaargJobFound('ALL_RCVD_SYS_MSG') ? getMaargJobStatus("ALL_RCVD_SYS_MSG") : translate("Not found") }}</ion-label>
</ion-item>
<ion-item button detail :disabled="!isMaargJobFound('ALL_PRDCD_SYS_MSG')" @click="viewMaargJobConfiguration('ALL_PRDCD_SYS_MSG')">
<ion-label class="ion-text-wrap">{{ translate("Send All Produced System Messages") }}</ion-label>
<ion-label slot="end" >{{ isMaargJobFound('ALL_PRDCD_SYS_MSG') ? getMaargJobStatus("ALL_PRDCD_SYS_MSG") : translate("Not found") }}</ion-label>
</ion-item>
</ion-card>
</div>
</section>

<aside class="desktop-only" v-if="isDesktop" v-show="currentJob || Object.keys(currentMaargJob).length">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<ion-card>
<ion-card-header>
<ion-card-title>{{ translate("Generate Feed") }}</ion-card-title>
<ion-card-title>{{ translate("Feed") }}</ion-card-title>
</ion-card-header>
<ion-item button detail :disabled="!isMaargJobFound('GEN_BRKD_ORDITM_FEED')" @click="viewMaargJobConfiguration('GEN_BRKD_ORDITM_FEED')">
<ion-label class="ion-text-wrap">{{ translate("Generate Brokered order items feed") }}</ion-label>
Expand Down

0 comments on commit d574f54

Please sign in to comment.