Here’s the new structure of the app:
There was a lot of code cleanup and reorganization but the major updates were the following:
I removed the
NotFoundroute. There is a
NotFoundpage but a
NotFoundroute didn’t seem to make any sense and it led to an illegal state showing up in my
Route.hreffunction. What URL should
Route.NotFoundmap to? Now, the question can’t even be asked.
I started using http-server-spa for local development which I first encountered in the “Elm in Action” book. This means that when developing locally I can now jump to any URL in the app and my front-end routing will work.
For production, I switched from GitHub pages to Netlify and got front-end routing working there as well. So now I can send you directly to this page, if I wanted.
Finally, I tweaked the various widgets so that they can better serve as examples for writing reusable views.