A page that clears NavItems (yasta's login page) still got the empty
nav container, which the modern style draws as a card: an empty frame
where the sidebar would be. The container is now left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
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.
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.
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.