feat(ui): add htmx ui foundation#188
Merged
angela-helios merged 4 commits intoJul 6, 2026
Merged
Conversation
smunini
requested changes
Jul 3, 2026
smunini
left a comment
Contributor
There was a problem hiding this comment.
@angela-helios I would prefer to name the crate 'ui' on disk instead of 'web' and have the crate name be 'helios-ui' instead of 'helios-web' I think web is too much of a generic term.
Contributor
|
NIT should we update CLAUDE.md? @angela-helios @smunini @mauripunzueta |
doug-helios
reviewed
Jul 3, 2026
doug-helios
approved these changes
Jul 3, 2026
angela-helios
added a commit
that referenced
this pull request
Jul 6, 2026
Plug the locale structure from feat/i18n-foundation into the helios-ui crate from #186 — the runtime wiring #187 deliberately deferred: - crates/ui/src/i18n.rs: negotiate_locale middleware producing one RequestLocale per request (?lang= override -> hfs_lang cookie -> Accept-Language via RFC 4647 Lookup -> en), an explicit ?lang= choice persisted in the cookie, Vary: Accept-Language, Cookie on responses, and the I18n Fluent lookup helper templates resolve keys through. - Catalogs embedded at compile time via fluent-templates static_loader (no runtime file/CDN dependency, same stance as the vendored assets), falling back negotiated locale -> en, key echo for unknown keys. - Templates now hold catalog keys, not prose; <html lang> reflects the negotiated locale; no-JS language switcher with aria-current. - New keys (home-lede, status-version, status-last-checked, action-refresh-status) seeded across en/es/de; en stays the source of truth and a test parses all three .ftl files to enforce key-set parity. - tests/i18n_http.rs drives the mounted router end to end: header negotiation, override cookie, persistence, localized htmx fragments. - docs/multi-language.md: crate name updated to helios-ui post-#188 review; point at the now-existing wiring.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a minimal HTMX-based UI foundation for HFS.
This introduces a new optional
helios-uicrate undercrates/ui, mounted by thehfsbinary when theuifeature is enabled. The UI currently exposes a small proof-of-concept page at/uithat displays the running HFS version, plus an HTMX-powered/ui/versionpartial refresh endpoint.The
headlessfeature path is also included so HFS can be built without compiling or mounting the UI.Changes
helios-uicrate for optional web UI codeuidefault feature tohelios-hfsheadlessfeature flag for no-UI builds/uiand/ui/versionfrom the HFS binary when UI is enabledTesting
cargo fmt --allcargo test -p helios-uicargo check -p helios-hfscargo check -p helios-hfs --no-default-features --features R4,sqlite,headless