Skip to content
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

[MS] Order tracking client area #9111

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fabienSvtr
Copy link
Contributor

@fabienSvtr fabienSvtr commented Dec 4, 2024

Describe your changes

Added page for tracking order (Custom order).

image

Checklist

Before you submit this pull request, please make sure to:

  • Keep changes in the pull request as small as possible
  • Ensure the commit history is sanitized
  • Give a meaningful title to your PR
  • Describe your changes
  • Link any related issue in the description
  • Link any dependent pull request in the description

closes #7966

@fabienSvtr fabienSvtr requested a review from a team as a code owner December 4, 2024 12:47
@fabienSvtr fabienSvtr force-pushed the ms-order-tracking-client-area branch 2 times, most recently from 3fd0d01 to 61f236a Compare December 11, 2024 11:35
@fabienSvtr fabienSvtr force-pushed the ms-order-tracking-client-area branch from 61f236a to 3424490 Compare December 11, 2024 11:35
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/fr-FR.json Outdated Show resolved Hide resolved
client/src/locales/fr-FR.json Outdated Show resolved Hide resolved
client/src/locales/fr-FR.json Outdated Show resolved Hide resolved
client/src/locales/fr-FR.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/locales/fr-FR.json Show resolved Hide resolved
client/src/locales/fr-FR.json Outdated Show resolved Hide resolved
client/src/locales/en-US.json Outdated Show resolved Hide resolved
client/src/services/translation.ts Outdated Show resolved Hide resolved
client/src/services/translation.ts Show resolved Hide resolved
import { MsSpinner, MsReportText, MsReportTheme } from 'megashark-lib';
import { getCustomOrderStatusTranslationKey } from '@/services/translation';

const customOrderStatus = ref<CustomOrderStatusResultData>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Store only the status,

const customOrderStatus = ref(CustomOrderStatus.Unknown);
// and then when you get the value from the BMS
customOrderStatus.value = orgStatusResponse.data.status;

@@ -107,7 +107,10 @@
v-if="currentPage === ClientAreaPages.CustomOrderBillingDetails"
:organization="currentOrganization"
/>
<custom-order-processing-page v-if="currentPage === ClientAreaPages.CustomOrderProcessing" />
<custom-order-processing-page
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page will only be displayed if the status is at NothingLinked right now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can let this v-if but with the condition below. With ContractEnded, it will be display on the ContractPage later.

if (statusResp.data.status !== CustomOrderStatus.ContractEnded) {
   currentPage.value = ClientAreaPages.CustomOrderProcessing;
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Customer area - Sellsy] Order tracking
4 participants