ထုတ်ကုန် လုပ်ဆောင်ချက်
လုပ်ငန်းရှင်များနှင့် dashboard operator များ
အသိပေးချက်များ
အရေးကြီးသော လုပ်ငန်းဖြစ်ရပ်၊ unread state၊ deep link၊ setting၊ browser push နှင့် dashboard bell preview တို့အတွက် real-time လုပ်ငန်းရှင်အသိပေးစနစ်
အကျဉ်းချုပ်
Notifications သည် လုပ်ငန်းအတွင်း ဖြစ်ပျက်နေသောအရာများကို လုပ်ငန်းရှင် သိရှိနေစေသည် AI က စာပြန်နိုင်ခြင်း၊ ဖောက်သည်က အော်ဒါတင်နိုင်ခြင်းနှင့် operator များ dashboard အနီးတွင် မရှိနိုင်ခြင်းတို့ကြောင့် အရေးကြီးသောဖြစ်ရပ်များက တာဝန်ရှိသူထံ ယုံကြည်စိတ်ချရစွာ ပြန်ရောက်ရန် လိုအပ်သည်
Release လုပ်ထားသော notification surface တွင် notifications စာမျက်နှာအပြည့်၊ topbar bell preview၊ unread count၊ mark-read control၊ live socket update၊ notification setting နှင့် browser push subscription တို့ ပါဝင်သည် လုပ်ငန်းရှင် dashboard အသုံးပြုနေချိန်နှင့် offline browser push လိုအပ်ချိန် နှစ်မျိုးလုံးတွင် အလုပ်လုပ်ရန် ဒီဇိုင်းဆွဲထားသည်
အလုပ်လုပ်ပုံ
Notifications route သည် လုပ်ငန်းတစ်ခုချင်းစီအလိုက် သီးခြားဖြစ်ပြီး NOTIFICATIONS feature flag ဖြင့် ထိန်းချုပ်ထားသည် စာမျက်နှာအပြည့်နှင့် dashboard bell နှစ်ခုလုံးက လက်ရှိလုပ်ငန်းအတွက် owner notification cache တစ်ခုတည်းကို ဖတ်သည် Notification တစ်ခုကို read လုပ်ခြင်း သို့မဟုတ် အားလုံးကို read လုပ်ခြင်းက shared state ကို update လုပ်သည်
Live notification frame များကို dashboard shell တွင် တစ်ကြိမ်သာ mount လုပ်ထားသည် Frame အသစ်များကို validate လုပ်ခြင်း၊ duplicate ဖယ်ခြင်း၊ cache ရှေ့ဆုံးသို့ ထည့်ခြင်းနှင့် toast၊ sound feedback ဖြင့် အသိပေးခြင်းတို့ လုပ်ဆောင်သည် စာမျက်နှာနှင့် bell က cache တစ်ခုတည်းမျှဝေသောကြောင့် နှစ်ခုလုံး တစ်ပြိုင်နက် update ဖြစ်သည်
Notification setting များသည် settings area အောက်တွင် ရှိသည် လုပ်ငန်းရှင်က notification ကို ဖွင့်ပိတ်ခြင်း၊ အမျိုးအစားအလိုက် preference သတ်မှတ်ခြင်း၊ လက်ရှိ browser ကို push delivery အတွက် subscribe လုပ်ခြင်းနှင့် push delivery စမ်းသပ်ခြင်းတို့ ပြုလုပ်နိုင်သည်
အစိတ်အပိုင်းများ
Notification Feed
Feed သည် မဖတ်ရသေးသောနှင့် ဖတ်ပြီးသော notification များကို တစ်နေရာတည်းတွင် ပြသည် Row တစ်ခုစီကို read လုပ်ပြီးနောက် သက်ဆိုင်ရာ အော်ဒါ၊ ဖောက်သည် သို့မဟုတ် လုပ်ငန်း path သို့ deep-link လုပ်နိုင်သည်
Dashboard Bell
Bell သည် အမြဲတမ်းရှိသော dashboard shell ထဲတွင် ကျစ်လျစ်သည့် preview ကို ပေးသည် Full feed နှင့် data တူညီသောကြောင့် product တစ်လျှောက် unread state တစ်သမတ်တည်း ရှိနေသည်
Live Update များ
Notification socket သည် frame အသစ်ဝင်လာချိန်တွင် RTK Query cache ကို patch လုပ်သည် Duplicate သို့မဟုတ် format မမှန်သော frame များကို ပယ်ပြီး မှန်ကန်သော frame အသစ်များက unread count တိုးကာ local feedback ကို ဖွင့်ပေးသည်
Push Setting များ
Push subscription က dashboard မဖွင့်ထားချိန်တွင် server မှ notification ပို့နိုင်စေသည် Browser subscription ကို service worker မှ register လုပ်ပြီး push API မှ သိမ်းဆည်းသည်
လက်တွေ့အလုပ်လုပ်ပုံ
အရေးကြီးသော event များက feed၊ dashboard bell၊ unread state နှင့် push setting များထဲသို့ ရောက်လာသည်
လုပ်ငန်းရှင်က module တိုင်းကို အမြဲဖွင့်ထားစရာမလိုဘဲ အလုပ်ဖြစ်နေသည်ကို သိနိုင်ရန် ဒီ flow ကို တည်ဆောက်ထားသည်
ဆက်စပ်စာမျက်နှာများ
- Feature: Order Management
- Feature: Customer Management
- Feature: Dashboard Analytics