-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: NetSuite Integration Management UI(#37) #38
base: main
Are you sure you want to change the base?
Changes from 1 commit
af995a9
e9b8e71
443c2a5
671ed51
e17d912
195f076
792ee89
bef2a58
d332828
eecff71
4b38bdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,137 +9,111 @@ | |
</ion-button> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<main> | ||
<section class="analytics-header"> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">4</ion-label> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>Orders pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">15</ion-label> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>Customers pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">2</ion-label> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>Products pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
<ion-content class="ion-padding"> | ||
<section class="analytics-header"> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">4</ion-label> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-label>Orders pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">15</ion-label> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-label>Customers pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item lines="none"> | ||
<ion-label class="count-size">2</ion-label> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-label>Products pending sync</ion-label> | ||
</ion-item> | ||
</ion-card> | ||
</section> | ||
|
||
<div class="ion-margin-top"> | ||
<h1>Configuration</h1> | ||
<section> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openSftpModal()"> | ||
<ion-label>SFTP</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openProductStoreModal()"> | ||
<ion-label>Product Store</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openShipmentMethod()"> | ||
<ion-label>Shipping methods</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openFacilities()"> | ||
<ion-label>Facilities</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</section> | ||
|
||
<div class="ion-margin-top"> | ||
<ion-text>Configuration</ion-text> | ||
<section> | ||
<ion-card> | ||
<ion-item button @click="openSftpModal()"> | ||
<ion-label>SFTP</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openProductStoreModal()"> | ||
<ion-label>Product Store</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openShipmentMethod()"> | ||
<ion-label>Shipping methods</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openFacilities()"> | ||
<ion-label>Facilities</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
</section> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<ion-text>Products and Inventory</ion-text> | ||
<section class="netsuite-action-items"> | ||
<ion-card> | ||
<ion-item button @click="openInventoryVariances()"> | ||
<ion-label>Inventory variances</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
</section> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<ion-text>Orders and fulfillment</ion-text> | ||
<section> | ||
<ion-card> | ||
<ion-item button @click="openPaymentMethods()"> | ||
<ion-label>Payment method</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openPriceLevelModal()"> | ||
<ion-label>Price level</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openDiscountsModal()"> | ||
<ion-label>Discounts</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openDepartments()"> | ||
<ion-label>Departments</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button @click="openSalesChannel()"> | ||
<ion-label>Sales Channel</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
</section> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<ion-text>Transfer orders</ion-text> | ||
<section> | ||
<ion-card> | ||
<ion-item button> | ||
<ion-label>Transfer order fulfillment</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
<ion-card> | ||
<ion-item button> | ||
<ion-label>Transfer order receipt</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</ion-card> | ||
</section> | ||
</div> | ||
</main> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<h1>Products and Inventory</h1> | ||
<section> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openInventoryVariances()"> | ||
<ion-label>Inventory variances</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</section> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<h1>Orders and fulfillment</h1> | ||
<section> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openPaymentMethods()"> | ||
<ion-label>Payment method</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openPriceLevelModal()"> | ||
<ion-label>Price level</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openDiscountsModal()"> | ||
<ion-label>Discounts</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openDepartments()"> | ||
<ion-label>Departments</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button @click="openSalesChannel()"> | ||
<ion-label>Sales Channel</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</section> | ||
</div> | ||
|
||
<div class="ion-margin-top"> | ||
<h1>Transfer orders</h1> | ||
<section> | ||
<ion-item fill="outline" class="item-box" lines="none" button> | ||
<ion-label>Transfer order fulfillment</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
<ion-item fill="outline" class="item-box" lines="none" button> | ||
<ion-label>Transfer order receipt</ion-label> | ||
<ion-icon slot="end" :icon="chevronForwardOutline"/> | ||
</ion-item> | ||
</section> | ||
</div> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { IonButton, IonCard, IonContent, IonHeader, IonIcon, IonItem, IonLabel, IonPage, IonMenuButton, IonText, IonTitle, IonToolbar, modalController } from "@ionic/vue"; | ||
Check warning on line 116 in src/views/NetSuite.vue GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)
|
||
import { search, chevronForwardOutline } from "ionicons/icons"; | ||
import { translate } from "@/i18n"; | ||
import { useRouter } from "vue-router"; | ||
|
@@ -147,7 +121,7 @@ | |
import ProductStoreModal from "@/components/ProductStoreModal.vue"; | ||
import PriceLevelModal from "@/components/PriceLevelModal.vue"; | ||
import DiscountsModal from "@/components/DiscountsModal.vue"; | ||
import SalesChannel from "@/components/SalesChannel.vue"; | ||
Check warning on line 124 in src/views/NetSuite.vue GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)
|
||
|
||
const router = useRouter(); | ||
|
||
|
@@ -206,22 +180,25 @@ | |
</script> | ||
|
||
<style scoped> | ||
main { | ||
margin: 10px 0 10px 10px; | ||
ion-card { | ||
margin-inline: 0px; | ||
} | ||
|
||
.item-box::part(native) { | ||
border-radius: 8px; | ||
} | ||
|
||
section { | ||
display: grid; | ||
align-items: center; | ||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | ||
gap: 10px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use spacer variables here instead of hard coded value. I know you are recreating the default margin of ion card, but if you're replacing, it is recommended to use premade spacer. |
||
} | ||
|
||
.analytics-header { | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
} | ||
|
||
.count-size { | ||
height: 100%; | ||
font-size: 128px; | ||
} | ||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just use the ion item custom property for border radius?
https://ionicframework.com/docs/api/item#css-custom-properties-1
--border-radius