Skip to content

Commit

Permalink
feat(com-pwa): add chat to tracking page
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Mar 6, 2023
1 parent 83e5ea6 commit c191e09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion uniquely/com-pwa/src/l18r/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"fetch_failed": "خطا در دریافت اطلاعات از اینترنت!",
"retry": "تلاش مجدد",
"loading": "درحال بارگذاری...",
"cancel": "لغو",

"order_status_draft": "پیش نویس",
"order_status_registered": "ثبت شده",
Expand Down Expand Up @@ -58,7 +59,8 @@
"order_detail_total_price": "قیمت کل",
"order_detail_shipping_price": "هزینه ارسال",

"cancel": "لغو",
"page_order_tracking_headline": "پیگیری سفارش",
"chat_text_input_placeholder": "پیام را بنویسید",

"submit_order_success": "سفارش شما با موفقیت ثبت شد.",
"submit_order_failed": "خطا در ثبت سفارش! لطفا مجدد تلاش کنید."
Expand Down
2 changes: 1 addition & 1 deletion uniquely/com-pwa/src/manager/controller/order-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {fetchOrderStorage} from '../context-provider/order-storage.js';
import {orderStorageContextConsumer, topAppBarContextProvider} from '../context.js';

import type {AlwatrDocumentStorage, ClickSignalType} from '@alwatr/type';
import type {Order} from '@alwatr/type/src/customer-order-management.js';
import type {Order} from '@alwatr/type/customer-order-management.js';

export const pageOrderListFsm = new FiniteStateMachine({
id: 'page-order-list',
Expand Down
8 changes: 3 additions & 5 deletions uniquely/com-pwa/src/page-order/page-order-tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import {message} from '@alwatr/i18n';
import '@alwatr/ui-kit/button/button.js';
import '@alwatr/ui-kit/card/surface.js';
import '@alwatr/ui-kit/chat/chat.js';
import '@alwatr/ui-kit/radio-group/radio-group.js';
import '@alwatr/ui-kit/text-field/text-field.js';

Expand Down Expand Up @@ -45,15 +46,12 @@ export class AlwatrPageOrderTracking extends LocalizeMixin(SignalMixin(Unresolve
super.connectedCallback();

topAppBarContextProvider.setValue({
type: 'medium',
headline: message('page_order_tracking_headline'),
startIcon: {icon: 'arrow-back-outline', flipRtl: true, clickSignalId: 'back-click-event'},
tinted: 2,
headlineKey: 'page_order_tracking_headline',
});
}

override render(): unknown {
this._logger.logMethod('render');
return html` order tracking `;
return html`<alwatr-chat></alwatr-chat>`;
}
}

0 comments on commit c191e09

Please sign in to comment.