diff --git a/controller/internal/web/app_page_test.go b/controller/internal/web/app_page_test.go index dde32ee..cb26ecb 100644 --- a/controller/internal/web/app_page_test.go +++ b/controller/internal/web/app_page_test.go @@ -149,8 +149,13 @@ func TestAppPage_DeployedDefaultsToSettings(t *testing.T) { // The header does not. This is the whole point of the Mukodes card: the three buttons used to // sit in the page header and read as menu items. - header := body[strings.Index(body, `class="page-header"`):] - header = header[:strings.Index(header, `class="app-hero"`)] + // The header is everything before the hero block; app-info-hero is the design system's existing + // hero class, which the shell reuses rather than inventing one with no rules behind it. + hi, hj := strings.Index(body, `class="page-header"`), strings.Index(body, `class="app-info-hero"`) + if hi < 0 || hj < 0 || hj < hi { + t.Fatalf("the shell's header/hero markers are gone (page-header=%d app-info-hero=%d)", hi, hj) + } + header := body[hi:hj] if strings.Contains(header, "stackAction(") { t.Errorf("the page header must carry no state-change button, got: %q", header) } diff --git a/controller/internal/web/templates/app_shell.html b/controller/internal/web/templates/app_shell.html index 76dbca1..9988911 100644 --- a/controller/internal/web/templates/app_shell.html +++ b/controller/internal/web/templates/app_shell.html @@ -28,11 +28,11 @@ -
{{.AppInfo.Tagline}}
{{else}}{{.Meta.Description}}
{{end}}Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Titkosított jegyzetek.
Titkosított szövegmegosztás.
Házi készletnyilvántartó.
Egy teszt alkalmazás leírása
Titkosított szövegmegosztás.
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása
Egy teszt alkalmazás leírása