eternagame / HTML-Chat

HTML5 implementation of chat to replace the legacy Flash-based implementation
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Improved login UI/UX on test page #46

Open luxaritas opened 7 years ago

luxaritas commented 7 years ago

I'm not entirely happy with how this functions right now, especially if it should act as a demo as in #36.

First off, I'd like to see a styled login modal, using Eterna's styling (I've fussed around with the Eterna stylesheets before, so I should be able to track down whatever is needed). It should use radio buttons to either use the demo channel (#test, I'd use this for the default for alignment with #36), the main Eterna channel (#global), or a specified channel (which would have an input box next to it). Of course, until history is properly implemented for all channels (ie #6 and the new channel history implemented for txircd, currently on the dev branch, in https://github.com/ElementalAlchemist/txircd/commit/181ff2eabfccd82fea183937276c14afe405ae28), it needs to be made clear that history is always from #global, especially with #test being defaulted. There should also be radio buttons for whether or not the user has an account, probably defaulting to no (again, #36), where if yes is clicked, username/password input boxes would show (clicking no again would hide them). Failed login should show an error message next to the bad input(s), and turn those input(s) red.

Also, to make testing less of a pain, I'd like to see something saved to localstorage so that you don't have to re-enter the channel/login info each time (maybe for a limited amount of time, I'm open to discussion on the best approach here). This would mean some sort of log out/change channel button or something along those lines would need to be overlayed on the chat iframe, clearing that localstorage and then reloading the page.

Would be nice to see if we can implement the Facebook login since some people solely use that on Eterna, but I have no idea what that involves, and it may not be possible to tie it with Eterna accounts - it's not critical, but should look into it.

guyguy2001 commented 7 years ago

Can't we do what getsat does and just use the cookies of eterna to login here? Also, couldn't we just litteraly grab the login page of the real site and change some stuff to fit the chat, which would come together with facebook?