Refactor "htmx" to "fetch action"#37208
Conversation
26187e7 to
b84f765
Compare
b84f765 to
b87c6af
Compare
|
One minor UX regression worth noting on This comment was written with the help of Claude Opus 4.6. |
Do you think the larger loading indicator is better than the small one on the button? Why the loading indicator should hide the whole left sidebar when "following"? |
|
I need to test, but intuitively, button loading state sounds cleaner. |
Isn't it what I asked for many time? Please show your thoughts, don't copy & paste AI's slop. Every time you don't read code or comment, or don't really try, I simply ask back. Isn't it wasting the time of us all? |
|
I checked that profile page button. It does not show a loading spinner because the condition Not sure if the absent spinner is intentional, but keep note that that condition will be always true for these elements: https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled If intentional, would refactor to a |
It is also done intentionally, I found that showing the loading spinner is very ugly on a button, "disabled" should be the best choice in my mind.
I don't see the requirement to make it more complex right now. If you introduce The current design is good enough and flexible enough, and it won't block future improvements (if there would be any) |
|
Fine if intentional. I generally also dislike loading spinners, especially short-lived ones because they only distract. Maybe a better framework is needed to only show loading spinners when a action takes > 1 second, but that's something for later. |
Yes, I also agree. However, if we'd like to introduce such a framework, we also need to do more like "avoid duplicate submit" between 0s ~ 1s. That's another topic. |
Yes, like a |
* main: Replace `dropzone` with `@deltablot/dropzone` (go-gitea#37237) Add `ExternalIDClaim` option for OAuth2 OIDC auth source (go-gitea#37229) Remove error returns from crypto random helpers and callers (go-gitea#37240) Use Content-Security-Policy: script nonce (go-gitea#37232) Remove htmx (go-gitea#37224) Refactor "htmx" to "fetch action" (go-gitea#37208) Fix UI regression (go-gitea#37218) Fix corrupted JSON caused by goccy library (go-gitea#37214) Add test for "fetch redirect", add CSS value validation for external render (go-gitea#37207) Fix incorrect concurrency check (go-gitea#37205) refactor: simplify ParseCatFileTreeLine and catBatchParseTreeEntries (go-gitea#37210) Update go js py dependencies (go-gitea#37204)

The only remaining (hard) part is "templates/repo/editor/edit.tmpl", see the FIXME
By the way: