Set up the user interface state model and set up the admin user onboarding #283
No reviewers
Labels
No Label
hex-grid
maintenance
music-player
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: savanni/monorepo#283
Loading…
Reference in New Issue
No description provided.
Delete Branch "visions-admin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In this MR, I'm setting up the onboarding flow for the admin user. On a new server, the first user going there will see this interface, prompting for an admin password:
After the admin password has been set, the users will be prompted to log in:
To make this happen, in the UI I had to finally work out state management and query/response server interactions. I've broken the Websocket connection in the interests of getting this part going.
State management is being done through a React state provider, like so:
And the state manager, which gets initialized in the
StateProvider
component, handles interacting with the server and dispatching messages to the store reducer: