bacloud22 / Highest-priest-GPT

Highest priest GPT
https://wizard-gpt.pages.dev/
6 stars 13 forks source link

No Message Persistence #1

Closed bacloud22 closed 1 month ago

bacloud22 commented 1 month ago

Issue: Currently, messages are ephemeral. Users cannot retrieve past questions/answers if they reload the page or lose connection.

Improvement: Add message persistence (either using PubNub’s storage feature or native local storage a local DB like PouchDB) so users can see previous conversations when they reconnect.

moo-light commented 1 month ago

hey i want to try this issue it seem really cool.

i also want to add a way for questioner to join the chat before establish a connection but i don't have a good text to add to the button yet. Any suggestion? image

bacloud22 commented 1 month ago

I don't understand you at all.

moo-light commented 1 month ago

Issue: Currently, messages are ephemeral. Users cannot retrieve past questions/answers if they reload the page or lose connection.

Improvement: Add message persistence (either using PubNub’s storage feature or native local storage a local DB like PouchDB) so users can see previous conversations when they reconnect.

it mean i like the above issue you're given

i also have another idea to have people who joined the channel to have a username displayed on the chat log image

but if i want to do that i need to implement user join channel action image but currently i don't know what text should i add to the button so i put it as joinChannel_text for now

bacloud22 commented 1 month ago

Please don't. Because a user joining a channel event is already logged. Plus, if you talking about the questioner role not displaying logs, it means you didn't understand what this app is about.

moo-light commented 1 month ago

okay thank you for pulling me back before i messed up

i would like to try improve the message persistent.

bacloud22 commented 1 month ago

How would you do it?

moo-light commented 1 month ago

I going to try to do it but saving it to localstorage everytime mesage log updated Then when user load the chanel with the id it will check the id and append the message log only once If the user switch to a different language it will switch to that language too

for storage clean up the system will delete the localstorage data if the lastest message is appended 1 day ago

bacloud22 commented 1 month ago

very nice ! let's go.

bacloud22 commented 1 month ago

still on it?

bacloud22 commented 1 month ago

@moo-light Last check before unassign

moo-light commented 1 month ago

yes i'm still on it kinda busy irl

Really sorry for the wait

bacloud22 commented 1 month ago

No worries

moo-light commented 1 month ago

yeah i guess this will be a big update