samagra-comms / uci-web-channel

Web channel for UCI
https://uci-web-channel-prod.vercel.app/#/
11 stars 49 forks source link

[UCI-Web-Channel] Unstarted Chats Notification #139

Open aakashyadav-kgp opened 1 year ago

aakashyadav-kgp commented 1 year ago

Description: Highlight unread chats.

Acceptance Criteria:

  1. We want to highlight any new/unread chats that user gets/has.
  2. Once the user clicks on the chat the highlight gets removed.
  3. Highlight is dark blue dot on top right corner.

Design: TBA

karntrehan commented 1 year ago

Flow will be NL <> Android <> Web channel driven. UCI will not be used to do this.

Flow: Bot conversation start on web channel -> Trigger event from Web Channel to Android -> Save Started Bot from Android to NL BE -> Next Launch -> Get full bot list & started bot list from NL BE on Android -> If there is a delta in counts, animate icon -> User launches web channel -> Push both lists to Web channel from Android -> Highlight unstarted bots on web channel

For first launch, we will be marking all bots as started bots for all users.

karntrehan commented 1 year ago

Expected data from Android in addition to botList & other items: unstartedBotList: ["XYZ", "ABC"]

geeky-abhishek commented 1 year ago

event to trigger once botRequest is triggered onConvStarted(botid,timeinstance)

chinmoy12c commented 1 year ago

Blocked on Android dev.

karntrehan commented 1 year ago

Android implementation complete. To add build and test.

aakashyadav-kgp commented 1 year ago

Approach finalised to implement unread bots on release.

chinmoy12c commented 1 year ago

UI to be updated for the final build.

chinmoy12c commented 1 year ago

Changes to be done as pointed out by @aakashyadav-kgp .