Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/hotwax/job-manager into #2e…
Browse files Browse the repository at this point in the history
…bg32y
  • Loading branch information
adityasharma7 committed Nov 10, 2022
2 parents 25203da + 5d81099 commit 63c97a0
Show file tree
Hide file tree
Showing 20 changed files with 441 additions and 59 deletions.
3 changes: 3 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"hosting": {
"job-manager-dev": [
"job-manager-dev"
],
"job-manager-uat": [
"job-manager-uat"
]
}
}
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/firebase-hosting-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on release
'on':
push:
tags:
- '*' # Push events to every tag not containing / Refer https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout to latest release tag
run: |
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
- name: Install Dependencies
run: npm install
- name: Generate .env file
run: cp .env.example .env
- name: Build
run: npm run build
- name: Install Firebase
run: npm install -g firebase-tools
- name: Set Firebase project
run: firebase use default --token "$HOTWAX_PUBLIC_SECRET"
env:
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
- name: Deploy
run: firebase deploy --token "$HOTWAX_PUBLIC_SECRET" -m "Deploying via GitHub actions" --only hosting:job-manager-uat
env:
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
13 changes: 13 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@
"source": "**",
"destination": "/index.html"
}]
},
{
"target": "job-manager-uat",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [ {
"source": "**",
"destination": "/index.html"
}]
}
]
}
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@capacitor/ios": "^2.4.7",
"@casl/ability": "^5.4.4",
"@casl/vue": "^2.1.2",
"@ionic/core": "6.1.15",
"@ionic/vue": "6.1.15",
"@ionic/vue-router": "6.1.15",
"@ionic/core": "6.2.9",
"@ionic/vue": "6.2.9",
"@ionic/vue-router": "6.2.9",
"@types/file-saver": "^2.0.4",
"@types/papaparse": "^5.3.1",
"axios": "^0.21.1",
Expand Down
35 changes: 35 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# Release 1.2.0
## What's Changed
* Implemented: filters on pipeline page (#2uw73h5) by @k2maan in https://github.com/hotwax/job-manager/pull/246 and @shashwatbangar in https://github.com/hotwax/job-manager/pull/272
* Feature: Add confirmation buttons to date pickers by @franciscoemanuel in https://github.com/hotwax/job-manager/pull/256 and @k2maan in https://github.com/hotwax/job-manager/pull/269
* Fixed build fail by removing 'show-default-buttons = true' error in InititalJobConfiguration and JobConfiguration (#2zb7dhk) by @k2maan in https://github.com/hotwax/job-manager/pull/277
* Upgraded Ionic to 6.2(#2w9wz26) by @disha1202 in https://github.com/hotwax/job-manager/pull/273
* Implemented filter icon color update based on the type of filters applied and the segment selected (#2zb6ver) by @k2maan in https://github.com/hotwax/job-manager/pull/278

## New Contributors
* @franciscoemanuel made their first contribution in https://github.com/hotwax/job-manager/pull/256

**Full Changelog**: https://github.com/hotwax/job-manager/compare/v1.1.0...v1.2.0
# Release 1.1.0
## What's Changed
* Updated logic to fetch shopify config using fallback api for backward compatibility(#2r65b1c) by @disha1202 in https://github.com/hotwax/job-manager/pull/234
* Fixed: shop should be honored while fetching jobs (#2te9p7v) by @adityasharma7 in https://github.com/hotwax/job-manager/pull/236
* Improved: shop grp to be initially from 1 sequence and simlified query (#2te9p7v) by @adityasharma7 in https://github.com/hotwax/job-manager/pull/237
* Improved: Code to display message on miscellaneous page when no jobs found(#364ttxy) by @shashwatbangar in https://github.com/hotwax/job-manager/pull/235
* Improved: Add a message on miscellaneous page when no jobs found(#2t2wdhn) by @shashwatbangar in https://github.com/hotwax/job-manager/pull/239
* Fixed: error in console due to empty shopify configuration on logout(#2tky1f3) by @disha1202 in https://github.com/hotwax/job-manager/pull/238
* Implemented static UI for bulk editors page(#2vjxd96) by @disha1202 in https://github.com/hotwax/job-manager/pull/244
* Refactored: setEcomStore and setShopifyConfig actions to accept ID. (#2tzh44d) by @k2maan in https://github.com/hotwax/job-manager/pull/241
* Implemented: Validation to set only future date and time on setting runtime. (#2tzb5w4) by @k2maan in https://github.com/hotwax/job-manager/pull/240
* Upgraded version of ionic to 6.1.15(#2uaz29u) by @disha1202 in https://github.com/hotwax/job-manager/pull/248
* Fixed: used console.error instead of console.log by @divyanshugour in https://github.com/hotwax/job-manager/pull/252
* Implemented: Validation to set only future date and time on setting job runtime. (#2tzb5w4) by @k2maan in https://github.com/hotwax/job-manager/pull/255
* Fixed: runTime being set to current time while setting/updating time (#266) by @adityasharma7 in https://github.com/hotwax/job-manager/pull/267
* Refactored: removed extra API call when setting the same timezone again from the settings page. (#2yma7df) by @k2maan in https://github.com/hotwax/job-manager/pull/265

## New Contributors
* @k2maan made their first contribution in https://github.com/hotwax/job-manager/pull/241
* @divyanshugour made their first contribution in https://github.com/hotwax/job-manager/pull/252

**Full Changelog**: https://github.com/hotwax/job-manager/compare/v1.0.11...v1.1.0

# Release 1.0.11

## What's Changed
Expand Down
199 changes: 199 additions & 0 deletions src/components/Filters.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
<template>
<ion-menu side="end" content-id="main-content" type="overlay">
<ion-header>
<ion-toolbar>
<ion-title>{{ $t("Filters") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-list>
<section v-if="segmentSelected === 'history'">
<ion-item>
<ion-label class="ion-text-wrap">
<p>{{ $t("Status") }}</p>
</ion-label>
</ion-item>
<ion-item button v-for="(filter, index) in statusFilters" :key="index" @click="applyFilter(filter.statusId, 'status')">
<ion-icon slot="start" :ios="filter.iosIcon" :md="filter.mdIcon" />
<ion-label>{{ $t(filter.name) }}</ion-label>
<ion-checkbox slot="end" :checked="pipelineFilters.status.includes(filter.statusId)" />
</ion-item>
</section>

<section>
<ion-item>
<ion-label class="ion-text-wrap">
<p>{{ $t("Category") }}</p>
</ion-label>
</ion-item>
<ion-item button v-for="(filter, index) in categoryFilters" :key="index" @click="applyFilter(filter.enumTypeId, 'category')">
<ion-icon slot="start" :ios="filter.iosIcon" :md="filter.mdIcon" />
<ion-label>{{ $t(filter.name) }}</ion-label>
<ion-checkbox slot="end" :checked="pipelineFilters.category.includes(filter.enumTypeId)" />
</ion-item>
</section>

<section v-if="pinnedJobs && pinnedJobs.length">
<ion-item>
<ion-label class="ion-text-wrap">
<p>{{ $t("Pinned") }}</p>
</ion-label>
</ion-item>
<ion-item button v-for="(job, index) in pinnedJobs" :key="index" @click="applyFilter(job, 'enum')">
<ion-label>{{ getEnumName(job) }}</ion-label>
<ion-checkbox slot="end" :checked="pipelineFilters.enum.includes(job)" />
</ion-item>
</section>
</ion-list>
</ion-content>
</ion-menu>
</template>

<script lang="ts">
import {
IonCheckbox,
IonContent,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonMenu,
IonTitle,
IonToolbar
} from "@ionic/vue";
import { defineComponent } from "vue";
import { albumsOutline, banOutline, calendarNumberOutline, checkmarkDoneOutline, closeOutline, compassOutline, filterOutline, iceCreamOutline, libraryOutline, pulseOutline, sendOutline, settings, shirtOutline, ticketOutline } from "ionicons/icons";
import { mapGetters, useStore } from 'vuex'
export default defineComponent({
name: "Filters",
components: {
IonCheckbox,
IonContent,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonMenu,
IonTitle,
IonToolbar
},
props: ["segmentSelected", "queryString"],
setup() {
const store = useStore();
const statusFilters = [
{
name: "Finished",
statusId: "SERVICE_FINISHED",
iosIcon: checkmarkDoneOutline,
mdIcon: checkmarkDoneOutline,
},
{
name: "Cancelled",
statusId: "SERVICE_CANCELLED",
iosIcon: banOutline,
mdIcon: banOutline,
},
{
name: "Failed",
statusId: "SERVICE_FAILED",
iosIcon: closeOutline,
mdIcon: closeOutline,
},
];
const categoryFilters = [
{
name: "Orders",
iosIcon: ticketOutline,
mdIcon: ticketOutline,
enumTypeId: "ORDER_SYS_JOB"
},
{
name: "Pre-orders",
iosIcon: calendarNumberOutline,
mdIcon: calendarNumberOutline,
enumTypeId: "PRE_ORD_SYS_JOB"
},
{
name: "Inventory",
iosIcon: albumsOutline,
mdIcon: albumsOutline,
enumTypeId: "INVENTORY_SYS_JOB"
},
{
name: "Brokering",
iosIcon: compassOutline,
mdIcon: compassOutline,
enumTypeId: "BROKERING_SYS_JOB"
},
{
name: "Fulfillment",
iosIcon: sendOutline,
mdIcon: sendOutline,
enumTypeId: "FULFILLMENT_SYS_JOB"
},
{
name: "Product",
iosIcon: shirtOutline,
mdIcon: shirtOutline,
enumTypeId: "PRODUCT_SYS_JOB"
},
{
name: "Miscellaneous",
iosIcon: libraryOutline,
mdIcon: libraryOutline,
enumTypeId: "MISC_SYS_JOB"
},
];
return {
albumsOutline,
banOutline,
calendarNumberOutline,
checkmarkDoneOutline,
categoryFilters,
closeOutline,
filterOutline,
iceCreamOutline,
libraryOutline,
pulseOutline,
settings,
shirtOutline,
statusFilters,
store,
ticketOutline
};
},
computed: {
...mapGetters({
getEnumName: 'job/getEnumName',
currentEComStore: 'user/getCurrentEComStore',
pinnedJobs: 'user/getPinnedJobs',
pipelineFilters: 'job/getPipelineFilters'
})
},
unmounted() {
this.store.dispatch('job/clearPipelineFilters');
},
methods: {
applyFilter(value: any, type: string) {
this.store.dispatch('job/setPipelineFilters', { type, value });
this.segmentSelected === 'pending' ? this.getFilteredPendingJobs() :
this.segmentSelected === 'running' ? this.getFilteredRunningJobs() :
this.getFilteredJobHistory();
},
async getFilteredPendingJobs(viewSize = process.env.VUE_APP_VIEW_SIZE, viewIndex = '0') {
await this.store.dispatch('job/fetchPendingJobs', { eComStoreId: this.currentEComStore.productStoreId, viewSize, viewIndex, queryString: this.queryString, enumTypeId: this.pipelineFilters.category, systemJobEnumId: this.pipelineFilters.enum, statusId: this.pipelineFilters.status });
},
async getFilteredRunningJobs(viewSize = process.env.VUE_APP_VIEW_SIZE, viewIndex = '0') {
await this.store.dispatch('job/fetchRunningJobs', { eComStoreId: this.currentEComStore.productStoreId, viewSize, viewIndex, queryString: this.queryString, enumTypeId: this.pipelineFilters.category, systemJobEnumId: this.pipelineFilters.enum, statusId: this.pipelineFilters.status });
},
async getFilteredJobHistory(viewSize = process.env.VUE_APP_VIEW_SIZE, viewIndex = '0') {
await this.store.dispatch('job/fetchJobHistory', { eComStoreId: this.currentEComStore.productStoreId, viewSize, viewIndex, queryString: this.queryString, enumTypeId: this.pipelineFilters.category, systemJobEnumId: this.pipelineFilters.enum, statusId: this.pipelineFilters.status });
},
},
});
</script>
Loading

0 comments on commit 63c97a0

Please sign in to comment.