Suyious / purrr.frontend

Frontend for Purrr - Chat Application that connects randomly among online users
https://purrr.chat
1 stars 2 forks source link

Retain Username across sessions #18

Closed HarshNarayanJha closed 1 month ago

HarshNarayanJha commented 1 month ago

The PR provides the foundation for persisting username (and potentially more info in future) across their sessions on purrr chat, allowing them to not being asked for username again and again, improving UX.

This can be improved upon by allowing them to change it without deleting site data (which removes the keys).

Saving to localStorage is done in src/hooks/useChatSocket.tsx setUserName method, and Greeting Component tries to restore username and calls onSubmit if success.

Closes #10

netlify[bot] commented 1 month ago

Deploy Preview for purrrchat ready!

Name Link
Latest commit ca19bc4e5d5a65bea5d0479d3ccc27f4c669fbd0
Latest deploy log https://app.netlify.com/sites/purrrchat/deploys/66eec6fb1176bd0008fe6b46
Deploy Preview https://deploy-preview-18--purrrchat.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Suyious commented 1 month ago

Merging #18.