forgejo/templates/shared
Gusted 14d9c386fd
[UI] Fix HTMX support for profile card
- There were two issues with the profile card since the introduction of
HTMX in 3e8414179c. If an HTMX request
resulted in a flash message, it wasn't being shown and HTMX was
replacing all the HTML content instead of morphing it into the existing
DOM which caused event listeners to be lost for buttons.
- Flash messages are now properly being shown by using `hx-swap-oob`
and sending the alerts on a HTMX request, this does mean it requires
server-side changes in order to support HTMX requests like this, but
it's luckily not a big change either.
- Morphing is now enabled for the profile card by setting
`hx-swap="morph"`, and weirdly, the morphing library was already
installed and included as a dependency. This solves the issue of buttons
losing their event listeners.
- This patch also adds HTMX support to the modals feature, which means
that the blocking feature on the profile card now takes advantage of
HTMX.
- Added a E2E test.
2024-07-17 01:41:32 +02:00
..
actions Optimize runner-tags layout to enhance visual experience (#31258) 2024-06-09 16:04:57 +02:00
search fix(code search): various ui/ux improvements raised by user research (#4332) 2024-07-10 05:25:32 +00:00
secrets
user [UI] Fix HTMX support for profile card 2024-07-17 01:41:32 +02:00
variables
webhook
blocked_users_list.tmpl
combomarkdowneditor.tmpl Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
issueicon.tmpl ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
issuelist.tmpl Fix long branch name overflows (https://github.com/go-gitea/gitea/pull/30345) 2024-05-24 22:11:37 +05:00
label_filter.tmpl
repo_search.tmpl
searchbottom.tmpl
searchfile.tmpl fix(code search): various ui/ux improvements raised by user research (#4332) 2024-07-10 05:25:32 +00:00