33 Commits
Author SHA1 Message Date
terminarandClaude Opus 5.5 04ea1db1ab Modern style: navbar buttons stay on one line
A consumer's long left-hand navbar extra (yasta's config path) pushed
the right-hand buttons into two lines under the modern style's wider
button padding. The buttons now keep white-space: nowrap and the left
group may shrink, so the extra wraps instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.5.1
2026-11-28 11:33:44 +01:00
terminarandClaude Opus 5.5 33dfebab9e Modern style as the new default; style axis, slate palette, nav groups and icons
A third appearance axis, PageHeader.Style (<html data-style>), with
StyleModern -- the default when Style is empty -- and StyleClassic, the
look up to v0.4.x. The modern style is one [data-style="modern"] block
at the end of style.css over the classic rules: navbar without a rule,
the sidebar as a floating rounded card with group headings, icons and
a pill for the active entry, rounder and quieter Bootstrap components.
In it inactive sidebar links use the text color; #0b82b8 now only
colors them in the classic style (owner decision 2026-11-28).

- appearance menu: "Style"/"Stil" section, cookie yw_style
- palette slate (dark slate and lavender)
- NavItem.Group (sidebar group headings) and NavItem.Icon (names from
  the new NavIcons set, shown only in the modern style)
- cmd/webui-demo: a sample page for comparing styles, palettes and modes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.5.0
2026-11-28 11:11:28 +01:00
terminarandClaude Opus 5.5 7afb6a022a busweb: web UIs over the YAPL bus; httpsec.BearerTokens
busweb.Serve runs a <name>.web@N request (verse/web, D-200) against a
UI's http.Handler; Prefix/User/FromBus tell the handler where it is
mounted and who yasta says is logged in; WithPrefix serves the same
handler on a TCP port. httpsec.BearerTokens is the access control of a
UI without user management (a reverse proxy or yasta sends the token).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.4.0
2026-11-04 13:27:48 +01:00
terminarandClaude Opus 5.5 fb2cb7bcfa License: proprietary (LicenseRef-Proprietary)
Owner decision 2026-11-01: all own Yetano code is proprietary. LICENSE
carries the notice, the README says so, and the Yetanofile declares
LicenseRef-Proprietary. Bundled third-party files keep their licenses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:43:34 +01:00
terminarandClaude Opus 5.5 28db4f707f ApplyAppearance: keep a path StripPrefix already made relative
Behind http.StripPrefix the request path is relative to the base path,
so for base path /feeds the page /feeds was cut to / again. A path that
no longer matches RequestURI's is now taken as already stripped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.3.1
2026-10-31 23:32:24 +01:00
terminarandClaude Opus 5.5 0f9b40df9f README: every consumer is on v0.3.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 15:11:21 +01:00
terminarandClaude Opus 5.5 d6bf6f94d8 httpsec package and flash helpers
httpsec: security headers (yamase's set as default), Host gate (empty
Host rejected; active without login or with configured hosts), SafeNext,
CookiePath, SecureCookies. layout: FlashURL/RedirectFlash/ApplyFlash/
WithoutFlash over query parameters, an info kind, AppearanceBack without
the flash parameters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.3.0
2026-10-31 14:04:45 +01:00
terminarandClaude Opus 5.5 7d5feb21a1 Makefile: fmt, vet, test, vulncheck, ci
The library has nothing to build; the Makefile only checks, with
govulncheck pinned like in the programs (go run ...@v1.9.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:37:07 +01:00
terminarandClaude Opus 5.5 840e4e96e3 README: every consumer is on v0.2.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:26:20 +01:00
terminarandClaude Opus 5.5 f4d7e3b1ab README: template version per consumer, every one has the theme menu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:14:05 +01:00
terminarandClaude Opus 5.5 8774ef62ce no-sidebar: hide the sidebar column on pages without one
A page without a sidebar (a login page) sets BodyAttrs to
class="no-sidebar"; the layout always renders the sidebar column, so
style.css now hides it and gives <main> the full width. yaiam-web had
the rule in its own stylesheet, so yaiam-authd's login pages, which
only load this one, showed an empty column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.5
2026-10-30 17:25:23 +01:00
terminarandClaude Opus 5.5 e4f88485f2 Menu form: AppearanceFormHTML for a consumer's hidden fields
A consumer whose middleware demands a CSRF token on every POST
(yamase-web) had to exempt the menu's route; it can now put the hidden
token field into the form instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.4
2026-10-29 23:45:34 +01:00
terminarandClaude Opus 5.5 03a1ce56d8 README: every consumer is on v0.2.3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 23:16:07 +01:00
terminarandClaude Opus 5.5 c5d7bdfef0 contrast palette: cyan instead of yellow accent in dark mode
The dashboards use yellow as a status color (warning, "gelb"); a
yellow accent made accent badges and links read as warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.3
2026-10-29 23:04:13 +01:00
terminarandClaude Opus 5.5 e09effa2ca Default primary #2595c8, the family's button color
Every consumer styled .btn-primary as #2595c8 (hover #1d7baa) in its
own stylesheet; with that as the default palette's --yw-primary the
template's Bootstrap bridge matches it, and the consumers' hard-coded
rules can go so that the other palettes reach their buttons too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.2
2026-10-29 23:01:28 +01:00
terminarandClaude Opus 5.5 148062ec28 ApplyAppearance: cut BasePath only as a whole path segment
Behind http.StripPrefix the request path is already relative, and a
blind TrimPrefix turned /release-notes into "elease-notes" for
BasePath /r, sending the menu back to the start page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.1
2026-10-29 23:00:50 +01:00
terminarandClaude Opus 5.5 3af449e9f9 Palettes, light-dark() tokens, Bootstrap bridge and a theme menu
Every color token is now one light-dark(<light>, <dark>) pair; the
mode (data-theme) only sets color-scheme, so "system" no longer needs a
duplicated media-query block. RGB triplets and the url() icons Bootstrap
swaps in dark mode pick their value via the --yw-if-light/--yw-if-dark
switches.

Bootstrap's theme-dependent --bs-* variables and the components that
hard-code its primary blue are mapped onto --yw-*, so tables, forms,
links, buttons and alerts follow the theme. The navbar drops
navbar-dark, which pinned its colors to white in light mode.

New data-palette axis (PageHeader.Palette): default, graphite
(grey/violet, after nessajina.tv) and contrast. The default palette
keeps the #0b82b8 nav-link token; the others use their own.

appearance.go: ApplyAppearance reads the yw_theme/yw_palette cookies,
AppearanceHandler stores a choice (POST only, local redirects only),
and PageHeader.AppearancePath shows a script-free <details> menu in
the navbar.

TestPaletteTokens replaces TestThemeBlocksInSync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.2.0
2026-10-29 22:47:04 +01:00
terminarandClaude Opus 5.5 d0e49b2365 Navbar logout as a POST form instead of a GET link
A GET logout can be triggered from any foreign page (img/link) and by
link prefetchers. LogoutPath now renders <form method="post"> with a
submit button styled like the former link; consumers register the route
as POST only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.1.10
2026-10-26 15:27:10 +01:00
terminarandClaude Opus 5.5 b6a6298353 README: the yak/yamase mirrors are gone, consumers import this module directly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:03:33 +02:00
terminarandClaude Opus 5.5 6b40ff059c Add light and system themes next to dark
PageHeader.Theme now has three values (ThemeDark, ThemeLight,
ThemeSystem). "system" follows prefers-color-scheme. Unset Theme is
still the dark palette, but every block now also sets color-scheme,
so native controls and scrollbars match it. TestThemeBlocksInSync
keeps the duplicated light values and the property lists in step.
Persisting the choice stays the consumer's job (README, Theming).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.1.9
2026-10-22 19:10:53 +02:00
terminarandClaude Opus 5.5 000bb42240 Narrow screens: sidebar as a wrapping tab bar, wrapping navbar
Below the md breakpoint, where the sidebar column stacks above the
content, the sidebar becomes a row of tabs in the look of Bootstrap's
.nav-tabs (the active one underlined in the accent color) that wraps onto
further rows instead of scrolling sideways. The stacked row no longer
shares its extra height out to the tab bar (align-content: flex-start),
which left an empty band below the links, and the navbar's extras (a
config path, action buttons) wrap instead of widening the page past the
screen.

README: add yet ("yet serve") to the migration status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.1.8
2026-10-18 15:46:37 +02:00
terminarandClaude Sonnet 5 31af3819b4 Ignore local resume.sh helper script
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-08 23:10:20 +02:00
terminar 8875062fc5 Prepare theming: PageHeader.Theme -> <html data-theme>, explicit dark block
Zero behavior change for every current consumer (Theme defaults to "",
which resolves to the unchanged bare :root block). Adds the seam a
future second theme slots into: its own :root[data-theme="..."] block
in static/style.css, nothing else in this module changes. See
README.md's expanded Theming section for the concrete mechanism.
v0.1.7
2026-09-01 22:24:58 +02:00
terminar adea139888 Update migration-status table: yamocir migrated, yaais deliberately not 2026-09-01 22:11:15 +02:00
terminar ef0714e213 Extract the color palette into --yw-* custom properties (a formal theme)
Preparation for the yamocir migration: same computed colors as before,
now expressed as reusable, documented tokens instead of literals baked
into each rule. Also documents scope in README.md's new Theming
section -- this module ships exactly one theme; per-project theming
(e.g. yaais's light/dark toggle) belongs in that project, not here.
v0.1.6
2026-09-01 21:40:28 +02:00
terminar 5d7f67b3d3 Update README: all five projects migrated, v0.1.5, versioning note 2026-09-01 17:48:08 +02:00
terminar 84a9faff29 Rename PageHeader.Name to AppName to avoid a field collision
A consuming project's own per-page data struct commonly embeds both
PageHeader and a domain type that has its own Name field (e.g. a
Kubernetes resource's name, as in yakwui's node/deployment/pod detail
pages) -- two same-depth promoted "Name" fields make html/template's
".Name" an ambiguous selector that only fails at execution time, not
at parse time.
v0.1.5
2026-09-01 14:11:33 +02:00
terminar 1c1878cfca Add PageHeader.Lang, BodyAttrs, SidebarAttrs escape hatches
Lang: <html lang> override (defaults to "en") for a non-English UI.
BodyAttrs/SidebarAttrs: raw extra attributes spliced into <body> and
the sidebar's <nav> tag, typed template.HTMLAttr (not template.HTML --
the contextual autoescaper requires the attribute-list sentinel type
in this position or it silently drops the value). Needed by yakwui's
Alpine.js-driven collapsible mobile sidebar, which has no other way to
carry x-data state onto a common ancestor of the toggle button and the
sidebar nav.
v0.1.4
2026-09-01 09:40:26 +02:00
terminar c99b000b1d Add PageHeader.BodyAttrs/SidebarAttrs escape hatches
Needed by yakwui's Alpine.js-based collapsible sidebar (x-data on
<body>, :class binding on the sidebar <nav>) -- the shared markup has
no generic opinion about a consumer's own client-side framework state.
v0.1.3
2026-08-31 14:13:01 +02:00
terminar 671d9bd92d Add PageHeader.NavbarBeforeBrand for a pre-brand navbar element
Needed by yakwui's mobile sidebar-toggle button, which renders before
the brand link rather than after Subtitle.
v0.1.2
2026-08-31 10:21:15 +02:00
terminar d3e900389f Add Renderer.ExecuteNamed for rendering a non-base named block
Needed by yasta's SSE system-status stream, which re-renders just its
own fragment block on every tick instead of the full page.
v0.1.1
2026-08-29 00:46:28 +02:00
terminar e712ce14fa Correct README sync instructions (root merge, not subtree --prefix) 2026-08-29 00:28:22 +02:00
terminar d722592379 Initial extraction of shared webui layout (base/navbar/sidebar/footer)
Pilot module for the shared design used by yasta, yasl, yaiam, yakwui,
and yamase-web: server-rendered Bootstrap dashboard chrome, imported as
a Go module instead of copy-pasted per project.
2026-08-29 00:19:06 +02:00