Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to not logged in avatars #310

Open
Terreii opened this issue Dec 16, 2020 · 0 comments
Open

Access to not logged in avatars #310

Terreii opened this issue Dec 16, 2020 · 0 comments

Comments

@Terreii
Copy link
Owner

Terreii commented Dec 16, 2020

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant