From 991405c01576a0016bcb1f181f8edf1bae1267f1 Mon Sep 17 00:00:00 2001 From: Wilkin Santana <28665914+wilkinsantana@users.noreply.github.com> Date: Fri, 6 Nov 2026 18:24:44 -0500 Subject: [PATCH] Fix tagged consumer version check for preview 2 Signed-off-by: Wilkin Santana <28665914+wilkinsantana@users.noreply.github.com> --- HANDOFF.md | 4 +-- README.md | 6 ++--- ROADMAP.md | 2 +- api/public.json | 2 +- docs/development.md | 2 +- docs/quickstart.md | 2 +- docs/releases/2026.2.0-preview.2.md | 38 +++++++++++++++++++++++++++++ docs/tendui-migration.md | 2 +- examples/html/README.md | 2 +- tendui.go | 2 +- tests/release/consumer_test.go.txt | 5 +++- 11 files changed, 54 insertions(+), 13 deletions(-) create mode 100644 docs/releases/2026.2.0-preview.2.md diff --git a/HANDOFF.md b/HANDOFF.md index 01f495b..3904676 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -29,8 +29,8 @@ run `./tests/results/demos/tendui-demo -open` on a host with browser access. ## Release boundary -The current renamed preview is `v2026.2.0-preview.1`. Install that explicit tag; -see [release notes](docs/releases/2026.2.0-preview.1.md) and +The current renamed preview is `v2026.2.0-preview.2`. Install that explicit tag; +see [release notes](docs/releases/2026.2.0-preview.2.md) and [quickstarts](docs/quickstart.md). Historical pre-rename tags and evidence remain immutable and are clearly labeled. diff --git a/README.md b/README.md index 7faab62..15e10b1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ module, and this version does not support Go 1.21. Install the pinned TendUI preview (API changes remain possible before a stable release): ```sh -go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.1 +go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.2 ``` Generated `*_templ.go` files ship with the module, so consumers do not need @@ -526,12 +526,12 @@ intentional updates and the limits of this check. The [CI matrix](docs/ci.md) checks native Linux, macOS and Windows with Go 1.26.0 and 1.27.3, plus a vulnerability scan. Browser checks cover Chromium, Firefox and WebKit. These jobs must pass on the preview source; see -[preview release notes](docs/releases/2026.2.0-preview.1.md). The older +[preview release notes](docs/releases/2026.2.0-preview.2.md). The older [release verification](docs/release-verification.md) documents the pre-rename release only and is not evidence for the current preview. Versions follow `YEAR.RELEASE.FIX`, with SemVer prerelease suffixes for previews: -`v2026.2.0-preview.1`. Install the explicit tag; a preview is not a stable API promise. +`v2026.2.0-preview.2`. Install the explicit tag; a preview is not a stable API promise. Development builds use `git describe --tags --long --dirty`. Go treats 2026 as the semantic major version, so the module path ends in diff --git a/ROADMAP.md b/ROADMAP.md index 2d914e6..28ed687 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -71,7 +71,7 @@ The current preview has a complete documentation website, shared component catalog, examples and playground, plus passing native, security and browser verification. See [release verification](docs/release-verification.md) for historical pre-rename evidence. Current preview details are in -[preview release notes](docs/releases/2026.2.0-preview.1.md). +[preview release notes](docs/releases/2026.2.0-preview.2.md). The development tracks below describe continuing product work beyond this baseline. ## Next development tracks diff --git a/api/public.json b/api/public.json index 229368c..3e71af9 100644 --- a/api/public.json +++ b/api/public.json @@ -5,7 +5,7 @@ "AssetHandler": "func github.com/Tend-Stack/TendUI/v2026.AssetHandler() net/http.Handler", "AssetPath": "const github.com/Tend-Stack/TendUI/v2026.AssetPath untyped string = \"/tendui/static/\"", "StylesheetURL": "const github.com/Tend-Stack/TendUI/v2026.StylesheetURL untyped string = \"/tendui/static/tendui.css\"", - "Version": "const github.com/Tend-Stack/TendUI/v2026.Version untyped string = \"2026.2.0-preview.1\"" + "Version": "const github.com/Tend-Stack/TendUI/v2026.Version untyped string = \"2026.2.0-preview.2\"" }, "github.com/Tend-Stack/TendUI/v2026/components": { "(*Appearance).Attributes": "func() github.com/a-h/templ.Attributes", diff --git a/docs/development.md b/docs/development.md index 9a78257..27b228e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -97,7 +97,7 @@ check executes the binary locally, so this command is not a cross-build helper. Versions use year-based tags, such as `v2026.1.0`. With an appropriate tag, the build embeds `git describe --tags --long --dirty`. Before the first release tag, -it uses `-dev-g` (for example, `2026.2.0-preview.1-dev-g`). Untracked files also add `-dirty`. Malformed +it uses `-dev-g` (for example, `2026.2.0-preview.2-dev-g`). Untracked files also add `-dirty`. Malformed release identifiers are rejected. The command creates no tags or commits and publishes nothing. diff --git a/docs/quickstart.md b/docs/quickstart.md index 08218ba..ab74265 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -11,7 +11,7 @@ Use Go 1.26 or newer. mkdir my-tendui-app cd my-tendui-app go mod init example.com/my-tendui-app -go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.1 +go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.2 go install github.com/a-h/templ/cmd/templ@v0.3.1100 ``` diff --git a/docs/releases/2026.2.0-preview.2.md b/docs/releases/2026.2.0-preview.2.md new file mode 100644 index 0000000..136fc51 --- /dev/null +++ b/docs/releases/2026.2.0-preview.2.md @@ -0,0 +1,38 @@ +# TendUI 2026.2.0-preview.2 + +This preview corrects the release consumer version check from preview.1, whose +release publication was blocked by a stale test expectation. The earlier tag is +retained unchanged. This is not a stable API commitment. It introduces the renamed module and shared SiteHeader after the +historical pre-rename release. Old tags are not moved or rewritten. + +```sh +go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.2 +``` + +## Included + +- 37 templ components, 24 inline SVG icons, semantic CSS and 13 demo areas. +- Styles embedded in Go binaries; standalone CSS works with any HTML stack. +- Shared responsive header, configurable appearance, native workflows and bounded CSS motion. +- Complete Go/templ and plain HTML quickstarts; see [onboarding](../quickstart.md). +- Go 1.26 minimum, templ v0.3.1100 runtime, no Node/npm or bundled browser JavaScript. + +## Verification and limits + +Before tagging, require the native Go/OS matrix, security scan, browser suite, +generated-source check, recipe compilation and isolated consumer packaging proof. +The consumer check also compiles and tests the onboarding example outside the +library module. After tagging, verify installation from GitHub at the exact tag. +Record the exact commits and CI links in the GitHub prerelease notes. + +Automated browser checks include keyboard, reduced motion and accessibility +rules; manual screen-reader and physical-device testing remain outstanding. +One WebKit forced-color emulation case is unsupported and skipped. + +The privacy review found no Gitleaks credential matches in reachable history. +Older library documentation still contains private infrastructure references. +Review or remediate that history before making the repository public. This +preview release does not change visibility or rewrite history. + +See [migration notes](../tendui-migration.md) for import, stylesheet, CSS token +and preference-cookie changes. Previous release reports are historical only. diff --git a/docs/tendui-migration.md b/docs/tendui-migration.md index 5daa882..d126486 100644 --- a/docs/tendui-migration.md +++ b/docs/tendui-migration.md @@ -3,7 +3,7 @@ TendUI is the new name of this library. Install the renamed preview explicitly: ```sh -go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.1 +go get github.com/Tend-Stack/TendUI/v2026@v2026.2.0-preview.2 ``` The historical `v2026.1.0` tag retains its original module path and is not a diff --git a/examples/html/README.md b/examples/html/README.md index bb4241e..0ea0c3f 100644 --- a/examples/html/README.md +++ b/examples/html/README.md @@ -3,7 +3,7 @@ The CSS works with static HTML and any server or template engine. No Go, templ, Node.js, npm or JavaScript runtime is required. -From a checkout of `v2026.2.0-preview.1`, copy these two files into a new folder: +From a checkout of `v2026.2.0-preview.2`, copy these two files into a new folder: ```sh mkdir my-tendui-page diff --git a/tendui.go b/tendui.go index 4cf31e0..84d47ec 100644 --- a/tendui.go +++ b/tendui.go @@ -16,7 +16,7 @@ const ( // StylesheetURL is the stylesheet used by components.Layout. StylesheetURL = AssetPath + "tendui.css" // Version identifies the current release line; development binaries should use git describe. - Version = "2026.2.0-preview.1" + Version = "2026.2.0-preview.2" ) //go:embed static diff --git a/tests/release/consumer_test.go.txt b/tests/release/consumer_test.go.txt index d5cb950..d87b12a 100644 --- a/tests/release/consumer_test.go.txt +++ b/tests/release/consumer_test.go.txt @@ -4,6 +4,7 @@ import ( "bytes" "context" "net/http/httptest" + "os" "strings" "testing" @@ -13,7 +14,9 @@ import ( ) func TestPublishedModule(t *testing.T) { - if tendui.Version != "2026.1.0" { t.Fatalf("unexpected version %q", tendui.Version) } + expected := strings.TrimPrefix(os.Getenv("GITHUB_REF_NAME"), "v") + if expected == "" { t.Fatal("GITHUB_REF_NAME must identify the release under test") } + if tendui.Version != expected { t.Fatalf("version = %q, want %q", tendui.Version, expected) } var output bytes.Buffer button := components.Button(components.ButtonProps{Text: "Published ", Primary: true}) page := components.Layout(components.LayoutProps{Title: "Consumer", Language: "en", Theme: components.ThemeDark}, button)