darcydriscoll / chat-room

A small chat room made w/ Vue, Tailwind, MySQL, and PHP.
MIT License
0 stars 0 forks source link

Implement smooth transitions between other screens and the primary room #31

Closed darcydriscoll closed 2 years ago

darcydriscoll commented 2 years ago

šŸ–ļø Definition of done

šŸ•ļø Problem-solving

šŸŽ  Explore the problem

Are Vue transitions accessible?

How do we make transitions 'smooth'?

i.e. how do we replace one screen with another without it glitching?

šŸ›« Method

šŸ“ Notes

darcydriscoll commented 2 years ago

We should probably authenticate the user through a Vue Router navigation guard rather than the Vue created() function

darcydriscoll commented 2 years ago

Whoops...

darcydriscoll commented 2 years ago

We need to remove the user authentication from the ChatRoom component!

darcydriscoll commented 2 years ago

We need to remove the user authentication from the ChatRoom component!

Done. Also, realised I didn't implement the navigation guard user authentication properly. I needed to ensure that the verifyAccess() function returned a Promise, make the navigation guard function async, and return an awaited function invocation in that navigation guard function.

darcydriscoll commented 2 years ago

Done!