You are browsing as a guest. Sign up (or log in) to start making projects!

5h 33m 41s logged

Devlog

Most of my time was spent working on the dashboard with Tailwind CSS. It took a lot of experimenting to find a design I actually like.

I also changed how HTMX updates the dashboard through WebSockets.

Before:

  • A dedicated template was rendered every time to update that part of the dashboard.

Now:

  • Only the text containing the updated value is replaced.

That said, in the future it won’t always be just text. For example, if the fuel type changes from hybrid to electric, the fuel level should disappear from the dashboard instead of just changing its value.

While working on this, I found a bug caused by HTMX sending boolean values as strings. This caused climate settings to be marked as invalid. I need to distinguish between an invalid value and an invalid attribute instead of always treating the entire attribute as invalid.

Note to myself

  • Add transitions.
  • Make all HTML pages use the same CSS file from now on.
  • Update the version on nest server and make a public companion instance

Aaand that’s all. Making websites is painfully slow.

0
10

Comments 0

No comments yet. Be the first!