code: list+create improvements, expanded notes, added logging

This commit is contained in:
2024-02-07 13:37:35 +01:00
parent fdbc37db06
commit 1c6317808a
18 changed files with 293 additions and 90 deletions
+31 -4
View File
@@ -156,6 +156,7 @@ As I started by quickly using a django admin template with CSS to jump start the
### UiKit
in general really nice, but I got annoyed by uk- prefixes pretty fast.
Psychologically, "ui grid" seems nicer than "uk-grid", weird.
It would however seem to align with hx- prefixes of htmx?
### Tailwind/DaisyUI
@@ -175,11 +176,13 @@ As I started by quickly using a django admin template with CSS to jump start the
I think it is important to go into form validation or interactive things quickly with htmx to properly sort out which to use.
Why fomantic won was the lack of needing a btn class.
### Builder Pattern etc.
// consider builder: https://docs.rs/derive_builder/latest/derive_builder/
// downside of builders as macro: no intellisense!
// each repository has to implement a repo info.
consider builder: https://docs.rs/derive_builder/latest/derive_builder/
downside of builders as macro: no intellisense!
//#[derive(Builder)]
//#[builder(setter(into))]
@@ -235,4 +238,28 @@ let dynamic_field = Field::widget(Cow::Owned(dynamic_label));
- "object safe"
- the async dynamic dispatch.
- the building pattern debacle here
### Async Trait Adventure
What was not noted here was the few days gone by researching async Trait dilemmas.
Given I use dynamic dispatch, the only solution is async_trait crate for now
However I am aware that this is an ongoing topic in the rust world.
For the admin this works well, and in general, it makes sense in the axum world I guess.
Other solutions if this stops being the case:
- Channels like in Go with crossbeam: https://gsquire.github.io/static/post/a-rusty-go-at-channels/
- Watch Rust Development here: https://rust-lang.github.io/async-fundamentals-initiative/index.html
### For the occasional HTMX Reload on Error bug
The header being in the history, returns a partial that cannot insert itself into the browser's error page.
Maybe a hint for a cache control problem actually?
https://github.com/bigskysoftware/htmx/issues/854
Make axum log requests!
There is another crate, that uses some MIME detection middleware for cache-control, called axum-cc, which could inspire middlewares here.