You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
At the moment, the user can only access the chat of the currently logged in avatar. And routing is ... not predictable.
The viewer is build like a native App. But it is a Web-App! The URL should be used more.
Describe the solution you'd like
Allow the user to view all chat logs, once they unlocked the viewer.
This can be accomplished by removing work from the redux-store, and move it into React-hooks.
To load chats I could use usePouchDB. While Redux-Store would "only" store new chats & chat messages and handle a logged in avatar.
This would require to remove saving messages by a reactor. Which would make the anonymous avatar login more complicated. Thus I would remove it (for now).
The chats overview should also list all chats of that avatar.
New architecture:
Redux Store handles:
Account state?
Avatar session.
Everything from a grid session that is not stored in PouchDB.
Receiving, sending, parsing and saving of chat messages.
React-Hooks
Loading and displaying of chats/-messages.
Loading and displaying avatars
Adding avatars.
Loading, displaying and editing grids.
Routing.
Describe alternatives you've considered
I didn't.
Additional context
A user must be logged in. Else a sign up/sign in form will be shown.
Routs could be:
/ List of avatars
/new add new avatar
/grids list of grids
/grids/:gridname edit grid
/:avatarname_grid overview of the avatar.
/:avatarname_grid/chat current chat view
/:avatarname_grid/chat/:chat-id chat.
/:avatarname_grid/friends friends list (only for online avatar?)
/:avatarname_grid/groups groups list (only for online avatar?)
/account account info (old /profile)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
At the moment, the user can only access the chat of the currently logged in avatar. And routing is ... not predictable.
The viewer is build like a native App. But it is a Web-App! The URL should be used more.
Describe the solution you'd like
Allow the user to view all chat logs, once they unlocked the viewer.
This can be accomplished by removing work from the redux-store, and move it into React-hooks.
To load chats I could use usePouchDB. While Redux-Store would "only" store new chats & chat messages and handle a logged in avatar.
This would require to remove saving messages by a reactor. Which would make the anonymous avatar login more complicated. Thus I would remove it (for now).
The chats overview should also list all chats of that avatar.
New architecture:
Describe alternatives you've considered
I didn't.
Additional context
A user must be logged in. Else a sign up/sign in form will be shown.
Routs could be:
/
List of avatars/new
add new avatar/grids
list of grids/grids/:gridname
edit grid/:avatarname_grid
overview of the avatar./:avatarname_grid/chat
current chat view/:avatarname_grid/chat/:chat-id
chat./:avatarname_grid/friends
friends list (only for online avatar?)/:avatarname_grid/groups
groups list (only for online avatar?)/account
account info (old/profile
)The text was updated successfully, but these errors were encountered: