miltonio94 / desk_light_ui_client

0 stars 0 forks source link

PIXIE-10 Have state for when connected to device and when not connected #10

Open miltonio94 opened 1 year ago

miltonio94 commented 1 year ago

Right now our front end does not differentiate between when it's connected to our device and when it is not.

Differentiate between the two states

Data modelling wise a good starting point would be to have a type called State, with the a shape of State = Disconnected | Connected Model.

As for how it'd look like when disconnected, I was thinking that we could render divs in a way that resembles the NeoPixels, and animate it so the light turns on from left to right till the last pixels and then turns off and does it again until connected

miltonio94 commented 1 year ago

Syncing state was inspired by this article