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 Page #9234

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
441 changes: 441 additions & 0 deletions client/src/components/client-area/OrderInProgress.vue

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion client/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,13 @@
"new": {
"title": "You need to create a new organization?",
"button": "New request",
"sent": "Your request has been sent."
"sent": "Your request has been sent.",
"details": "Order details",
"date": "Date",
"membersNeed": "Amount of members",
"dataNeeded": "Amount of data",
"startDate": "Starting date",
"endDate": "Ending date"
},
"request": {
"title": "Request a new on-premise contract",
Expand Down Expand Up @@ -1727,6 +1733,19 @@
},
"connectionFailure": "An error occured (Failed to contact the server).",
"serverFailure": "An error occured (server request refused."
},
"progress": {
"orderNumber": "Order n°{number}",
"noOrder": "You don't have any order yet"
},
"passed": {
"header": {
"orderNumber": "Order number",
"period": "Period",
"members": "Members number",
"storage": "Storage",
"status": "Status"
}
}
}
},
Expand Down
21 changes: 20 additions & 1 deletion client/src/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,13 @@
"new": {
"title": "Vous avez besoin de créer une nouvelle organisation ?",
"button": "Nouvelle demande",
"sent": "Votre demande a bien été envoyée."
"sent": "Votre demande a bien été envoyée.",
"details": "Détails de la demande",
"date": "Date de la demande",
"membersNeed": "Nombre de membres",
"dataNeeded": "Volume de données",
"startDate": "Date de début",
"endDate": "Date de fin"
},
"request": {
"title": "Demande d'un contrat sur-mesure",
Expand Down Expand Up @@ -1727,6 +1733,19 @@
},
"connectionFailure": "Un problème est survenu (connexion au serveur impossible).",
"serverFailure": "Un problème est survenu (requête serveur refusée)."
},
"progress": {
"orderNumber": "Commande n°{number}",
"noOrder": "Vous n'avez pas de commande en cours."
},
"passed": {
"header": {
"orderNumber": "Numéro de commande",
"period": "Période",
"members": "Nombre de membres",
"storage": "Volume de données",
"status": "Statut"
}
}
}
},
Expand Down
84 changes: 43 additions & 41 deletions client/src/services/bms/mockApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,47 +219,49 @@ export const MockedBmsApi = {
return {
status: 200,
isError: false,
type: DataType.GetCustomOrderRequests,
requests: [
{
id: 'XX-1',
describedNeeds: 'I wanna rock!',
users: 50,
storage: 1000,
status: CustomOrderRequestStatus.Processing,
comment: 'Turn it down you say, nut all I got to say to you is time and time again I say no (no), no no, no no, no.',
orderDate: DateTime.now().minus({ months: 2 }),
},
{
id: 'XX-2',
describedNeeds: 'I want to hold your hand',
users: 50,
storage: 1000,
organizationId: 'The Beatles',
status: CustomOrderRequestStatus.Received,
comment: "I think you'll understand",
orderDate: DateTime.now().minus({ days: 4 }),
},
{
id: 'XX-3',
describedNeeds: 'I want to break free!',
users: 300,
storage: 9999,
organizationId: 'Queen',
status: CustomOrderRequestStatus.Finished,
comment: "I've fallen in love",
orderDate: DateTime.now().minus({ months: 6 }),
},
{
id: 'XX-4',
describedNeeds: 'I want you to want me',
users: 9999,
storage: 100,
status: CustomOrderRequestStatus.Cancelled,
comment: 'I need you to need me',
orderDate: DateTime.now().minus({ days: 6 }),
},
],
data: {
type: DataType.GetCustomOrderRequests,
requests: [
{
id: 'XX-1',
describedNeeds: 'I wanna rock!',
users: 50,
storage: 1000,
status: CustomOrderRequestStatus.Processing,
comment: 'Turn it down you say, nut all I got to say to you is time and time again I say no (no), no no, no no, no.',
orderDate: DateTime.now().minus({ months: 2 }),
},
{
id: 'XX-2',
describedNeeds: 'I want to hold your hand',
users: 50,
storage: 1000,
organizationId: 'The Beatles',
status: CustomOrderRequestStatus.Received,
comment: "I think you'll understand",
orderDate: DateTime.now().minus({ days: 4 }),
},
{
id: 'XX-3',
describedNeeds: 'I want to break free!',
users: 300,
storage: 9999,
organizationId: 'Queen',
status: CustomOrderRequestStatus.Finished,
comment: "I've fallen in love",
orderDate: DateTime.now().minus({ months: 6 }),
},
{
id: 'XX-4',
describedNeeds: 'I want you to want me',
users: 9999,
storage: 100,
status: CustomOrderRequestStatus.Cancelled,
comment: 'I need you to need me',
orderDate: DateTime.now().minus({ days: 6 }),
},
],
},
};
},
async (_token: AuthenticationToken) => {
Expand Down
1 change: 1 addition & 0 deletions client/src/services/bms/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export {
CustomOrderStatusResultData,
DataType,
DeletePaymentMethodQueryData,
GetCustomOrderRequestsResultData,
InvoiceStatus,
ListOrganizationsResultData,
LoginQueryData,
Expand Down
2 changes: 1 addition & 1 deletion client/src/theme/components/action-bar.scss
Copy link
Author

Choose a reason for hiding this comment

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

Forgotten updated class

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* contextual menu button */

.contextual-menu {
.action-bar {
.counter {
flex-shrink: 0;
}
Expand Down
4 changes: 0 additions & 4 deletions client/src/views/client-area/BmsLogin.vue
Copy link
Author

Choose a reason for hiding this comment

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

Useless code inside the app

Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ async function onLoginClicked(): Promise<void> {
height: 2.5rem;
border-radius: var(--parsec-radius-6);
border: 1px solid transparent;

&:hover {
border: 1px solid var(--parsec-color-light-secondary-contrast);
}
}

.skeleton-login-button {
Expand Down
Loading
Loading