You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2026/09/03 16:42:15 UTC

(causeway) 06/16: feat(webcomponents): reconcile Vue Petclinic presentation

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch htmx
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 4f46b220d4f22438c92e405aea255247fd700ae8
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Sep 3 11:30:53 2026 +0100

    feat(webcomponents): reconcile Vue Petclinic presentation
---
 .../reconcile-vue-petclinic-with-htmx/tasks.md     |  56 ++--
 viewers/webcomponents/README.adoc                  |   1 +
 .../domain/PetClinicDataConfiguration.java         |   8 +-
 .../sample/petclinic/domain/ViewerFallback.java    |  76 +++++
 .../src/main/resources/menubars.layout.xml         |   0
 .../sample-vue-petclinic/PRESENTATION-PARITY.adoc  |  65 ++++
 .../webcomponents/sample-vue-petclinic/README.adoc |  14 +-
 .../sample-vue-petclinic/frontend/src/App.vue      |  72 +++-
 .../sample-vue-petclinic/frontend/src/main.ts      |   8 +-
 .../frontend/src/pages/HomePage.vue                |  85 +++++
 .../frontend/src/pages/PetOwnerPage.vue            | 208 +++++++-----
 .../frontend/src/pages/PetPage.vue                 |  72 ++++
 .../frontend/src/pages/VisitPage.vue               |  72 ++++
 .../frontend/src/petclinic.css                     | 373 +++++++++++++++++++--
 .../resources/static/vue/assets/index-BntyzeMN.js  |   2 -
 .../static/vue/assets/index-BntyzeMN.js.map        |   1 -
 .../resources/static/vue/assets/index-BuWcbzr4.css |   1 -
 .../resources/static/vue/assets/index-CklV2Pe0.js  |   2 +
 .../static/vue/assets/index-CklV2Pe0.js.map        |   1 +
 .../resources/static/vue/assets/index-CqcjgOE7.css |   1 +
 .../src/main/resources/static/vue/index.html       |   4 +-
 .../vue/petclinic/PetClinicVuePlaywrightTest.java  | 162 +++++++--
 .../PetClinicVueApplicationIntegTest.java          |  14 +
 23 files changed, 1122 insertions(+), 176 deletions(-)

diff --git a/openspec/changes/reconcile-vue-petclinic-with-htmx/tasks.md b/openspec/changes/reconcile-vue-petclinic-with-htmx/tasks.md
index 6c6dbc1c242..e67c61babd1 100644
--- a/openspec/changes/reconcile-vue-petclinic-with-htmx/tasks.md
+++ b/openspec/changes/reconcile-vue-petclinic-with-htmx/tasks.md
@@ -1,45 +1,45 @@
 ## 1. Freeze the HTMX presentation baseline
 
-- [ ] 1.1 Record a route-by-route parity matrix for the HTMX shell and HomePage, PetOwner, Pet, and Visit pages, including ordered landmarks, headings, selected members, actions, result outlets, collection declarations, paging values, and preview affordances.
-- [ ] 1.2 Add or extend headless assertions that protect the authoritative HTMX semantic composition without changing its rendered presentation.
-- [ ] 1.3 Record tolerant wide- and narrow-viewport invariants for header geometry, content inset, column relationships, breakpoint collapse, footer placement, palette, typography, focus treatment, and horizontal overflow.
-- [ ] 1.4 Diagnose why the Vue application currently reverses primary menus and exposes Logout, User, and Configuration separately from the HTMX System grouping, identifying the supported projection or application-configuration correction before changing code.
-- [ ] 1.5 Select an existing suitable unregistered logical type for generic-fallback acceptance, or specify a bounded menu-excluded acceptance fixture if none exists.
+- [x] 1.1 Record a route-by-route parity matrix for the HTMX shell and HomePage, PetOwner, Pet, and Visit pages, including ordered landmarks, headings, selected members, actions, result outlets, collection declarations, paging values, and preview affordances.
+- [x] 1.2 Add or extend headless assertions that protect the authoritative HTMX semantic composition without changing its rendered presentation.
+- [x] 1.3 Record tolerant wide- and narrow-viewport invariants for header geometry, content inset, column relationships, breakpoint collapse, footer placement, palette, typography, focus treatment, and horizontal overflow.
+- [x] 1.4 Diagnose why the Vue application currently reverses primary menus and exposes Logout, User, and Configuration separately from the HTMX System grouping, identifying the supported projection or application-configuration correction before changing code.
+- [x] 1.5 Select an existing suitable unregistered logical type for generic-fallback acceptance, or specify a bounded menu-excluded acceptance fixture if none exists.
 
 ## 2. Reconcile the Vue application shell
 
-- [ ] 2.1 Refactor `App.vue` to mirror the HTMX shell landmarks, branding, loading and announcement regions, shell result outlet, main-region semantics, and footer content while retaining Vue Router bindings and one stable GraphQL client.
-- [ ] 2.2 Reconcile menu order and utility grouping through supported semantic menu projection and application configuration, without hardcoded replacement actions or payload rewriting.
-- [ ] 2.3 Rework `petclinic.css` to use the HTMX Petclinic class vocabulary, foundation design tokens, wide shell geometry, responsive breakpoints, typography, palette, content spacing, and footer alignment.
-- [ ] 2.4 Reconcile document titles with the HTMX `· Pet Clinic` convention and replace the persistent route-container border with an accessible keyboard focus treatment.
-- [ ] 2.5 Add headless shell tests for wide and narrow layouts, menu keyboard operation, focus, reduced motion, overflow, title, footer, and stable provider and route boundaries.
+- [x] 2.1 Refactor `App.vue` to mirror the HTMX shell landmarks, branding, loading and announcement regions, shell result outlet, main-region semantics, and footer content while retaining Vue Router bindings and one stable GraphQL client.
+- [x] 2.2 Reconcile menu order and utility grouping through supported semantic menu projection and application configuration, without hardcoded replacement actions or payload rewriting.
+- [x] 2.3 Rework `petclinic.css` to use the HTMX Petclinic class vocabulary, foundation design tokens, wide shell geometry, responsive breakpoints, typography, palette, content spacing, and footer alignment.
+- [x] 2.4 Reconcile document titles with the HTMX `· Pet Clinic` convention and replace the persistent route-container border with an accessible keyboard focus treatment.
+- [x] 2.5 Add headless shell tests for wide and narrow layouts, menu keyboard operation, focus, reduced motion, overflow, title, footer, and stable provider and route boundaries.
 
 ## 3. Reconcile the PetOwner page
 
-- [ ] 3.1 Restructure `PetOwnerPage.vue` into the HTMX object heading, details column, and collections column with separate Identity, Contact, Details, Pets, and Visits sections in reference order.
-- [ ] 3.2 Restore the `noOwners` action, complete related-owner standalone result declaration, `daysSinceLastVisit`, member descriptions, label positions, and action parameter presentation from the HTMX page.
-- [ ] 3.3 Reconcile Pets and Visits collection columns, page sizes, filtering, sorting, actions, prompt styles, parameters, row previews, and nested preview collections with the HTMX declarations.
-- [ ] 3.4 Extend Vue acceptance tests to verify PetOwner semantic parity, column containment at wide width, single-column order at narrow width, action results, property edits, collection operations, previews, and both toolkit policies.
+- [x] 3.1 Restructure `PetOwnerPage.vue` into the HTMX object heading, details column, and collections column with separate Identity, Contact, Details, Pets, and Visits sections in reference order.
+- [x] 3.2 Restore the `noOwners` action, complete related-owner standalone result declaration, `daysSinceLastVisit`, member descriptions, label positions, and action parameter presentation from the HTMX page.
+- [x] 3.3 Reconcile Pets and Visits collection columns, page sizes, filtering, sorting, actions, prompt styles, parameters, row previews, and nested preview collections with the HTMX declarations.
+- [x] 3.4 Extend Vue acceptance tests to verify PetOwner semantic parity, column containment at wide width, single-column order at narrow width, action results, property edits, collection operations, previews, and both toolkit policies.
 
 ## 4. Add the remaining exact-type Vue pages
 
-- [ ] 4.1 Implement and register `HomePage.vue` with the HTMX object heading, two collection sections, declared columns, filters, sorting, page sizes, and row previews.
-- [ ] 4.2 Implement and register `PetPage.vue` with the HTMX breadcrumb, heading, Identity and Details grouping, selected properties, editability, and absence of technical or intentionally omitted members.
-- [ ] 4.3 Implement and register `VisitPage.vue` with the HTMX breadcrumb, heading, Appointment and Details grouping, temporal presentation, selected properties, editability, and absence of technical members.
-- [ ] 4.4 Add direct-link, refresh, history, semantic-structure, responsive-layout, and interaction coverage for each new exact-type page.
+- [x] 4.1 Implement and register `HomePage.vue` with the HTMX object heading, two collection sections, declared columns, filters, sorting, page sizes, and row previews.
+- [x] 4.2 Implement and register `PetPage.vue` with the HTMX breadcrumb, heading, Identity and Details grouping, selected properties, editability, and absence of technical or intentionally omitted members.
+- [x] 4.3 Implement and register `VisitPage.vue` with the HTMX breadcrumb, heading, Appointment and Details grouping, temporal presentation, selected properties, editability, and absence of technical members.
+- [x] 4.4 Add direct-link, refresh, history, semantic-structure, responsive-layout, and interaction coverage for each new exact-type page.
 
 ## 5. Preserve deliberate generic fallback
 
-- [ ] 5.1 Add the bounded shared-domain acceptance fixture selected in task 1.5 only if no existing logical type can safely demonstrate fallback, preserving Petclinic menu contents and established seed cardinalities.
-- [ ] 5.2 Move generic-page direct-link, refresh, and browser-history coverage from Pet or Visit to the deliberately unregistered acceptance type.
-- [ ] 5.3 Verify exact-type precedence for all four reconciled Petclinic routes and generic `<cw-object>` rendering for the fallback fixture.
+- [x] 5.1 Add the bounded shared-domain acceptance fixture selected in task 1.5 only if no existing logical type can safely demonstrate fallback, preserving Petclinic menu contents and established seed cardinalities.
+- [x] 5.2 Move generic-page direct-link, refresh, and browser-history coverage from Pet or Visit to the deliberately unregistered acceptance type.
+- [x] 5.3 Verify exact-type precedence for all four reconciled Petclinic routes and generic `<cw-object>` rendering for the fallback fixture.
 
 ## 6. Regression, generated assets, and documentation
 
-- [ ] 6.1 Add tolerant computed-style and bounding-box assertions for the agreed shell and route invariants rather than pixel-perfect screenshot comparisons.
-- [ ] 6.2 Verify invalid routes, absent objects, partial errors, stale-generation rejection, announcements, semantic navigation and results, and provider lifecycle still behave as before.
-- [ ] 6.3 Run the Vue package unit, declaration, build, pack, and clean-consumer checks and resolve any integration regression without changing public APIs unnecessarily.
-- [ ] 6.4 Regenerate and verify committed Vue production assets and confirm the stale-generated-output check passes.
-- [ ] 6.5 Run Vue and HTMX integration and headless Playwright suites, including native and Vaadin policies and representative wide and narrow viewports.
-- [ ] 6.6 Update the Vue Petclinic and web-components documentation to identify HTMX as the presentation reference and explain where generic fallback is demonstrated.
-- [ ] 6.7 Run relevant Maven verification, frontend tests, script syntax checks, Apache RAT, IDE inspections/build, and whitespace checks.
+- [x] 6.1 Add tolerant computed-style and bounding-box assertions for the agreed shell and route invariants rather than pixel-perfect screenshot comparisons.
+- [x] 6.2 Verify invalid routes, absent objects, partial errors, stale-generation rejection, announcements, semantic navigation and results, and provider lifecycle still behave as before.
+- [x] 6.3 Run the Vue package unit, declaration, build, pack, and clean-consumer checks and resolve any integration regression without changing public APIs unnecessarily.
+- [x] 6.4 Regenerate and verify committed Vue production assets and confirm the stale-generated-output check passes.
+- [x] 6.5 Run Vue and HTMX integration and headless Playwright suites, including native and Vaadin policies and representative wide and narrow viewports.
+- [x] 6.6 Update the Vue Petclinic and web-components documentation to identify HTMX as the presentation reference and explain where generic fallback is demonstrated.
+- [x] 6.7 Run relevant Maven verification, frontend tests, script syntax checks, Apache RAT, IDE inspections/build, and whitespace checks.
diff --git a/viewers/webcomponents/README.adoc b/viewers/webcomponents/README.adoc
index 0449054433d..96837849c2a 100644
--- a/viewers/webcomponents/README.adoc
+++ b/viewers/webcomponents/README.adoc
@@ -107,6 +107,7 @@ The preferred manual test serves the page and GraphQL endpoint from the same Cau
 This avoids cross-origin and authentication-cookie differences that can obscure component behavior.
 
 The repository provides HTMX and Vue Petclinic applications over one shared deterministic JPA/H2 domain and rich GraphQL contract, plus `viewers/webcomponents/sample-html` as the stable low-level vanilla-component fixture.
+The HTMX Petclinic application is the presentation reference for the Vue sample's application-owned shell and exact-type HomePage, PetOwner, Pet, and Visit pages.
 Start either Petclinic viewer from the repository root with:
 
 [source,shell]
diff --git a/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/PetClinicDataConfiguration.java b/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/PetClinicDataConfiguration.java
index 4b63f02dead..d59c0a19247 100644
--- a/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/PetClinicDataConfiguration.java
+++ b/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/PetClinicDataConfiguration.java
@@ -21,6 +21,8 @@
 import java.time.LocalDate;
 import java.time.LocalDateTime;
 
+import jakarta.persistence.EntityManager;
+
 import org.springframework.boot.ApplicationRunner;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -37,8 +39,12 @@ ApplicationRunner loadPetClinicData(
             final TransactionService transactionService,
             final ClockService clockService,
             final PetOwnerRepository ownerRepository,
-            final VisitRepository visitRepository) {
+            final VisitRepository visitRepository,
+            final EntityManager entityManager) {
         return args -> transactionService.runTransactional(Propagation.REQUIRED, () -> {
+            if (entityManager.find(ViewerFallback.class, ViewerFallback.ID) == null) {
+                entityManager.persist(new ViewerFallback(ViewerFallback.ID, "Rendered by the generic Vue page."));
+            }
             if (ownerRepository.findById(PetOwner.MARY_ID) != null) {
                 return;
             }
diff --git a/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/ViewerFallback.java b/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/ViewerFallback.java
new file mode 100644
index 00000000000..70a65d94843
--- /dev/null
+++ b/viewers/webcomponents/sample-petclinic-domain/src/main/java/org/apache/causeway/viewer/webcomponents/sample/petclinic/domain/ViewerFallback.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *       https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.causeway.viewer.webcomponents.sample.petclinic.domain;
+
+import jakarta.inject.Named;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
+import jakarta.persistence.Version;
+
+import org.apache.causeway.applib.annotation.DomainObject;
+import org.apache.causeway.applib.annotation.DomainObjectLayout;
+import org.apache.causeway.applib.annotation.ObjectSupport;
+
+@Entity
+@Table(name = "petclinic_viewer_fallback")
+@Named(PetClinicDomainModule.NAMESPACE + ".ViewerFallback")
+@DomainObject
+@DomainObjectLayout
+public class ViewerFallback {
+
+    public static final String ID = "viewer-fallback";
+
+    @Id
+    @Column(nullable = false, length = 40)
+    private String id;
+
+    @Version
+    @Column(nullable = false)
+    private long version;
+
+    @Column(nullable = false, length = 80)
+    private String message;
+
+    protected ViewerFallback() {
+    }
+
+    public ViewerFallback(final String id, final String message) {
+        this.id = id;
+        this.message = message;
+    }
+
+    @ObjectSupport
+    public String title() {
+        return "Generic viewer fallback";
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public long getVersion() {
+        return version;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+}
diff --git a/viewers/webcomponents/sample-htmx-petclinic/src/main/resources/menubars.layout.xml b/viewers/webcomponents/sample-petclinic-domain/src/main/resources/menubars.layout.xml
similarity index 100%
rename from viewers/webcomponents/sample-htmx-petclinic/src/main/resources/menubars.layout.xml
rename to viewers/webcomponents/sample-petclinic-domain/src/main/resources/menubars.layout.xml
diff --git a/viewers/webcomponents/sample-vue-petclinic/PRESENTATION-PARITY.adoc b/viewers/webcomponents/sample-vue-petclinic/PRESENTATION-PARITY.adoc
new file mode 100644
index 00000000000..a56be09d2f9
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/PRESENTATION-PARITY.adoc
@@ -0,0 +1,65 @@
+= Petclinic presentation parity
+
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
+// See the NOTICE file distributed with this work for additional information regarding copyright ownership.
+// The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 .
+// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and limitations under the License.
+
+The HTMX Petclinic application is the presentation authority for the Vue Petclinic application.
+Parity means equivalent information architecture, declared semantic members, ordering, grouping, responsive relationships, and application theme; framework wrappers and exact rendered pixels need not match.
+
+== Shell baseline
+
+At a wide viewport the shell presents one 3.25rem navigation row with the `C` mark and `Pet Clinic` brand, followed by `Pet Owners`, `Visits`, and the utility grouping defined by the shared `menubars.layout.xml` resource.
+The route and footer use one-space-unit side insets, the main region uses the reference vertical spacing, and the footer places `Powered by Apache Causeway` opposite the viewer label.
+Document titles use the authoritative object title followed by ` · Pet Clinic`.
+Programmatic route focus does not draw a persistent frame around the whole page, while ordinary interactive controls and the skip-link target retain visible keyboard focus.
+At widths of 48rem or less shell navigation wraps vertically, and at widths of 60rem or less route grids collapse to one column without horizontal page overflow.
+
+== Route baseline
+
+[cols="1,2,2,2,2",options="header"]
+|===
+|Route
+|Ordered sections
+|Declared properties
+|Actions and results
+|Collections
+
+|`petclinic.HomePage`
+|Object header; Pet owners; Upcoming visits
+|None
+|None
+|`petOwners`: page 5, sortable, filterable, preview, Owner/Telephone/Email; `futureVisits`: page 10, filterable, preview, When/Reason/Notes
+
+|`petclinic.PetOwner`
+|Breadcrumbs; object heading; Identity; Contact; Details; Pets; Visits
+|Identity: name and knownAs; Contact: telephoneNumber and emailAddress; Details: notes, lastVisit, and daysSinceLastVisit
+|Page result; allOwners; noOwners; relatedOwners with Owner/Known as/Notes standalone result; delete; updateName inline; addPet sidebar; removePet; bookVisit modal
+|`pets`: page 5, sortable, filterable, preview, Name/Species/Notes; nested preview visits: page 10, When/Reason; owner `visits`: page 8, preview, When/Reason/Notes
+
+|`petclinic.Pet`
+|Page result; breadcrumbs; object header; Identity; Details
+|Identity: petOwner and name; Details: species and editable multiline notes
+|Sidebar result
+|None
+
+|`petclinic.Visit`
+|Page result; breadcrumbs; object header; Appointment; Details
+|Appointment: pet and visitAt; Details: editable reason and editable multiline notes
+|Dialog result
+|None
+|===
+
+Technical `id` and `version` properties and members not listed above are intentionally absent from the four exact-type pages.
+The unregistered `petclinic.ViewerFallback` fixture, with stable identifier `s_viewer-fallback`, demonstrates generic `<cw-object>` fallback independently of those routes.
+
+== Regression strategy
+
+Headless tests assert semantic structure, route boundaries, menu labels, title and footer content, and member declarations for every route.
+Computed-style checks use tolerant ranges and relationships for header height, shell inset, grid columns, responsive collapse, focus treatment, and overflow rather than screenshot equality.
+Native and Vaadin policies are exercised where toolkit rendering can alter presentation.
diff --git a/viewers/webcomponents/sample-vue-petclinic/README.adoc b/viewers/webcomponents/sample-vue-petclinic/README.adoc
index 7d8f3cb55e8..faea2a1879d 100644
--- a/viewers/webcomponents/sample-vue-petclinic/README.adoc
+++ b/viewers/webcomponents/sample-vue-petclinic/README.adoc
@@ -7,6 +7,7 @@
 This module is the executable reference application for the generic Vue web-component viewer.
 It uses the shared deterministic Petclinic domain, the Causeway GraphQL endpoint, Vue 3, Vue Router 4, and the framework-neutral `cw-` elements.
 The Vue application owns its HTML document, stable shell, router, history fallback, theme, and exact logical-type page registration.
+Its application-owned presentation follows the HTMX Petclinic shell and page compositions documented in link:PRESENTATION-PARITY.adoc[`PRESENTATION-PARITY.adoc`].
 The semantic web components remain authoritative for metadata, values, validation, interactions, collections, previews, and results.
 
 == Run
@@ -22,8 +23,10 @@ Open these URLs after Spring Boot starts:
 
 * `http://localhost:8080/vue/` uses the default Vaadin component policy.
 * `http://localhost:8080/vue/?toolkit=native` uses the native component policy.
-* `http://localhost:8080/vue/object/petclinic.PetOwner/s_owner-mary` opens Mary Smith through the custom Vue owner page.
-* `http://localhost:8080/vue/object/petclinic.Pet/s_pet-basil` opens Basil through the generic `<cw-object>` fallback page.
+* `http://localhost:8080/vue/object/petclinic.PetOwner/s_owner-mary` opens Mary Smith through the exact-type Vue owner page.
+* `http://localhost:8080/vue/object/petclinic.Pet/s_pet-basil` opens Basil through the exact-type Vue pet page.
+* `http://localhost:8080/vue/object/petclinic.Visit/s_visit-basil-checkup` opens Basil's visit through the exact-type Vue visit page.
+* `http://localhost:8080/vue/object/petclinic.ViewerFallback/s_viewer-fallback` demonstrates the generic `<cw-object>` fallback page.
 * `http://localhost:8080/graphiql` opens GraphiQL.
 
 Pass Maven properties to the script when needed.
@@ -56,7 +59,7 @@ Install Playwright Chromium on the first run when necessary:
 ./viewers/webcomponents/sample-vue-petclinic/test.sh --install-browser
 ----
 
-The browser suite covers the stable application shell, direct links, refresh, back and forward navigation, custom-page precedence, generic fallback, invalid and absent objects, semantic navigation and results, menus, keyboard skip navigation, and both toolkit policies.
+The browser suite covers the HTMX presentation baseline, wide and narrow layout invariants, the four exact-type pages, stable application shell, direct links, refresh, back and forward navigation, generic fallback, invalid and absent objects, semantic navigation and results, menus, keyboard skip navigation, and both toolkit policies.
 Set `-Dplaywright.headless=false` only when deliberately debugging in a visible browser.
 Set `-Dplaywright.chromium.executable=/absolute/path/to/chromium` or `-Dplaywright.chromium.channel=chrome` to use an installed browser.
 Any arguments after `--install-browser` are passed to the Maven test invocation.
@@ -81,8 +84,9 @@ The frontend config treats `cw-` names as native custom elements and deduplicate
 
 `frontend/index.html` is the application-owned HTML document.
 `frontend/src/App.vue` declares the stable GraphQL provider, menus, loading and announcement regions, default result outlet, and keyed router view.
-`frontend/src/pages/PetOwnerPage.vue` is an exact-type custom page for `petclinic.PetOwner`.
-Other domain types remain unregistered and therefore demonstrate the generic route-page fallback.
+The files under `frontend/src/pages` provide exact-type application compositions for `petclinic.HomePage`, `petclinic.PetOwner`, `petclinic.Pet`, and `petclinic.Visit`.
+The menu layout is shared with HTMX through the framework-neutral Petclinic domain resources.
+The deliberately unregistered `petclinic.ViewerFallback` fixture demonstrates the generic route-page fallback without making a user-visible Petclinic route inconsistent.
 `PetClinicVueRouteController` forwards only the intended client routes to the production `index.html` without capturing GraphQL or static assets.
 
 The generic Vue viewer package and its application integration contract are documented in `../vue/README.adoc`.
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/App.vue b/viewers/webcomponents/sample-vue-petclinic/frontend/src/App.vue
index 9b0df234a7a..c7a90ed9d95 100644
--- a/viewers/webcomponents/sample-vue-petclinic/frontend/src/App.vue
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/App.vue
@@ -7,7 +7,7 @@
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
 
-      https://www.apache.org/licenses/LICENSE-2.0
+       https://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
@@ -17,43 +17,85 @@
   under the License.
 -->
 <script setup lang="ts">
-import {ref} from 'vue';
+import {onBeforeUnmount, onMounted, ref} from 'vue';
 import {RouterView, useRoute} from 'vue-router';
 import {useCausewayShell, useCausewayViewer} from '@apache-causeway/vue-viewer';
 
 const viewer = useCausewayViewer();
 const route = useRoute();
 const shell = useCausewayShell(ref<HTMLElement | null>(null));
+let titleObserver: MutationObserver | undefined;
+
+function applyApplicationTitle(): void {
+  const title = document.title.trim();
+  if (title && !title.endsWith(' · Pet Clinic')) {
+    document.title = `${title} · Pet Clinic`;
+  }
+}
+
+onMounted(() => {
+  applyApplicationTitle();
+  const titleElement = document.querySelector('title');
+  if (titleElement) {
+    titleObserver = new MutationObserver(applyApplicationTitle);
+    titleObserver.observe(titleElement, {childList: true});
+  }
+});
+
+onBeforeUnmount(() => titleObserver?.disconnect());
 </script>
 
 <template>
-  <div ref="shell" class="petclinic-vue-shell" data-testid="petclinic-vue-application-shell">
-    <a class="petclinic-skip-link" href="#causeway-vue-route">Skip to main content</a>
+  <div ref="shell" class="causeway-app-shell" data-testid="petclinic-vue-application-shell">
+    <a class="causeway-skip-link" href="#causeway-vue-route">Skip to main content</a>
     <cw-graphql-client data-causeway-shell-client :endpoint="viewer.endpoint">
-      <header class="petclinic-navbar">
-        <a class="petclinic-brand" href="/vue/" @click.prevent="viewer.router.push('/')">
-          <span aria-hidden="true">C</span>
-          <span>Pet Clinic</span>
-        </a>
-        <cw-menubars />
+      <header class="causeway-shell-header">
+        <div class="causeway-shell-navbar">
+          <a class="causeway-shell-brand" href="/vue/" aria-label="Pet Clinic home" @click.prevent="viewer.router.push('/')">
+            <span class="causeway-shell-mark" aria-hidden="true">C</span>
+            <span>Pet Clinic</span>
+          </a>
+          <cw-menubars />
+        </div>
       </header>
-      <div data-causeway-route-loading class="petclinic-route-loading" role="status" aria-live="polite" hidden>
+      <div
+        data-causeway-route-loading
+        class="causeway-route-loading"
+        role="status"
+        aria-live="polite"
+        hidden
+      >
         Loading page…
       </div>
-      <div data-causeway-route-announcement class="petclinic-visually-hidden" aria-live="polite" aria-atomic="true" />
+      <div
+        data-causeway-route-announcement
+        class="causeway-visually-hidden"
+        aria-live="polite"
+        aria-atomic="true"
+      />
       <cw-action-results
+        id="causeway-result"
         data-causeway-shell-result
-        class="petclinic-shell-results"
+        class="causeway-shell-result"
         aria-label="Application action results"
         aria-live="polite"
         hidden
       />
-      <main id="causeway-vue-route" data-causeway-router-view class="petclinic-main" aria-busy="false" tabindex="-1">
+      <main
+        id="causeway-vue-route"
+        data-causeway-router-view
+        class="causeway-shell-main"
+        aria-busy="false"
+        tabindex="-1"
+      >
         <RouterView v-slot="{ Component }">
           <component :is="Component" :key="route.path" />
         </RouterView>
       </main>
-      <footer class="petclinic-footer">Powered by Apache Causeway · Vue viewer</footer>
+      <footer class="causeway-shell-footer">
+        <span>Powered by Apache Causeway</span>
+        <span>Vue viewer</span>
+      </footer>
     </cw-graphql-client>
   </div>
 </template>
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/main.ts b/viewers/webcomponents/sample-vue-petclinic/frontend/src/main.ts
index aa1e9bb0cb3..39814f53db0 100644
--- a/viewers/webcomponents/sample-vue-petclinic/frontend/src/main.ts
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/main.ts
@@ -25,7 +25,10 @@ import {
 } from '@apache-causeway/vue-viewer';
 import '@apache-causeway/vue-viewer/theme.css';
 import App from './App.vue';
+import HomePage from './pages/HomePage.vue';
 import PetOwnerPage from './pages/PetOwnerPage.vue';
+import PetPage from './pages/PetPage.vue';
+import VisitPage from './pages/VisitPage.vue';
 import './petclinic.css';
 
 const toolkit = new URLSearchParams(location.search).get('toolkit') === 'native' ? 'native' : 'vaadin';
@@ -52,7 +55,10 @@ const viewer = createCausewayVueViewer({
   endpoint: '/graphql',
   basePath: '/vue',
   pages: {
-    'petclinic.PetOwner': PetOwnerPage
+    'petclinic.HomePage': HomePage,
+    'petclinic.PetOwner': PetOwnerPage,
+    'petclinic.Pet': PetPage,
+    'petclinic.Visit': VisitPage
   },
   policies: {
     error(error) {
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/HomePage.vue b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/HomePage.vue
new file mode 100644
index 00000000000..39719ec0f21
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/HomePage.vue
@@ -0,0 +1,85 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+       https://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<script setup lang="ts">
+import type {CausewayRoutePageProps} from '@apache-causeway/vue-viewer';
+
+defineProps<CausewayRoutePageProps>();
+</script>
+
+<template>
+  <section
+    class="causeway-vue-route-page causeway-route-page causeway-route-object"
+    data-causeway-route-page
+    data-testid="petclinic-vue-home-page"
+    data-page-kind="home"
+    data-route-state="loading"
+    tabindex="-1"
+    aria-label="Object page"
+  >
+    <cw-object-context
+      data-causeway-route-context
+      :logical-type="logicalTypeName"
+      :object-id="objectId"
+    >
+      <article class="petclinic-page petclinic-dashboard" data-testid="petclinic-custom-home">
+        <cw-object-header />
+        <div class="petclinic-dashboard-grid">
+          <section aria-labelledby="petclinic-owner-heading">
+            <h2 id="petclinic-owner-heading">Pet owners</h2>
+            <cw-collection id="petOwners" label="Pet owners" active paged="5" sortable filterable>
+              <cw-peek>
+                <section class="petclinic-preview" aria-label="Owner preview">
+                  <cw-object-header />
+                  <cw-property id="knownAs" editable />
+                  <cw-property id="telephoneNumber" />
+                  <cw-property id="emailAddress" />
+                  <cw-action id="updateName" named="Change owner name" />
+                  <cw-collection id="pets" named="Companion animals" active paged="2">
+                    <cw-collection-column id="name" label="Name" />
+                    <cw-collection-column id="species" label="Species" />
+                  </cw-collection>
+                </section>
+              </cw-peek>
+              <cw-collection-column id="name" label="Owner" />
+              <cw-collection-column id="telephoneNumber" label="Telephone" />
+              <cw-collection-column id="emailAddress" label="Email" />
+            </cw-collection>
+          </section>
+          <section aria-labelledby="petclinic-visit-heading">
+            <h2 id="petclinic-visit-heading">Upcoming visits</h2>
+            <cw-collection id="futureVisits" named="Next appointments" active paged="10" filterable>
+              <cw-peek>
+                <section class="petclinic-preview" aria-label="Visit preview">
+                  <cw-object-header />
+                  <cw-property id="visitAt" named="Appointment" />
+                  <cw-property id="reason" editable />
+                  <cw-property id="notes" editable multi-line="3" />
+                </section>
+              </cw-peek>
+              <cw-collection-column id="visitAt" label="When" />
+              <cw-collection-column id="reason" label="Reason" />
+              <cw-collection-column id="notes" label="Notes" />
+            </cw-collection>
+          </section>
+        </div>
+      </article>
+      <cw-interaction-controller data-causeway-route-interactions />
+    </cw-object-context>
+  </section>
+</template>
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetOwnerPage.vue b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetOwnerPage.vue
index 72b59f2f0a0..f1477a726c4 100644
--- a/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetOwnerPage.vue
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetOwnerPage.vue
@@ -7,7 +7,7 @@
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
 
-      https://www.apache.org/licenses/LICENSE-2.0
+       https://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
@@ -24,95 +24,153 @@ defineProps<CausewayRoutePageProps>();
 
 <template>
   <section
-    class="causeway-vue-route-page petclinic-owner-page"
+    class="causeway-vue-route-page causeway-route-page causeway-route-object"
     data-causeway-route-page
     data-testid="petclinic-vue-owner-page"
     data-page-kind="pet-owner"
     data-route-state="loading"
     tabindex="-1"
-    aria-label="Pet owner page"
+    aria-label="Object page"
   >
     <cw-object-context
       data-causeway-route-context
       :logical-type="logicalTypeName"
       :object-id="objectId"
     >
-      <cw-action-results
-        data-causeway-page-result
-        class="petclinic-card"
-        aria-label="Pet owner action results"
-        hidden
-      />
-      <cw-breadcrumbs data-testid="petclinic-vue-breadcrumbs" />
-      <div class="petclinic-owner-heading">
-        <cw-object-header />
-        <div class="petclinic-toolbar" aria-label="Owner actions">
-          <cw-action id="allOwners" named="Show all owners" />
-          <cw-action id="relatedOwners" named="Show related owners">
-            <cw-standalone-collection named="Related owners">
-              <cw-collection-column id="name" label="Owner" />
-              <cw-collection-column id="knownAs" label="Known as" />
-            </cw-standalone-collection>
-          </cw-action>
-          <cw-action id="delete" named="Remove this owner" />
+      <article class="petclinic-page petclinic-owner-page" data-testid="petclinic-owner-page">
+        <cw-action-results
+          data-causeway-page-result
+          class="petclinic-card"
+          aria-label="Pet owner action results"
+          data-testid="petclinic-action-results"
+          hidden
+        />
+        <cw-breadcrumbs data-testid="petclinic-breadcrumbs" />
+        <div class="petclinic-object-heading">
+          <cw-object-header />
+          <div class="petclinic-page-toolbar" aria-label="Owner actions">
+            <cw-action id="allOwners" named="Show all owners" />
+            <cw-action id="noOwners" named="Show empty owner result" />
+            <cw-action id="relatedOwners" named="Show related owners">
+              <cw-standalone-collection named="Related owners">
+                <cw-collection-column id="name" label="Owner" />
+                <cw-collection-column id="knownAs" label="Known as" />
+                <cw-collection-column id="notes" label="Notes" />
+              </cw-standalone-collection>
+            </cw-action>
+            <cw-action id="delete" named="Remove this owner" />
+          </div>
         </div>
-      </div>
 
-      <div class="petclinic-owner-grid">
-        <section class="petclinic-card" aria-labelledby="owner-details-heading">
-          <h2 id="owner-details-heading">Owner details</h2>
-          <cw-property id="name" named="Full name">
-            <cw-action id="updateName" named="Change the owner's name" prompt-style="INLINE">
-              <cw-parameter id="name" named="Owner's full name" />
-            </cw-action>
-          </cw-property>
-          <cw-property id="knownAs" editable />
-          <cw-property id="telephoneNumber" editable />
-          <cw-property id="emailAddress" editable />
-          <cw-property id="notes" editable multi-line="5" />
-          <cw-property id="lastVisit" editable label-position="TOP" min="2000-01-01" max="today" />
-        </section>
+        <div class="petclinic-object-grid">
+          <div class="petclinic-object-details">
+            <section class="petclinic-card" aria-labelledby="petclinic-owner-identity-heading">
+              <h2 id="petclinic-owner-identity-heading">Identity</h2>
+              <div class="petclinic-field-list">
+                <cw-property id="name" named="Full name">
+                  <cw-action id="updateName" named="Change the owner's name" prompt-style="INLINE">
+                    <cw-parameter
+                      id="name"
+                      named="Owner's full name"
+                      described-as="The complete name used to identify this pet owner."
+                      description-as="tooltip"
+                    />
+                  </cw-action>
+                </cw-property>
+                <cw-property
+                  id="knownAs"
+                  editable
+                  described-as="The familiar or preferred name used by this owner."
+                />
+              </div>
+            </section>
 
-        <section class="petclinic-card" aria-labelledby="owner-pets-heading">
-          <h2 id="owner-pets-heading">Pets</h2>
-          <cw-collection id="pets" named="Companion animals" active paged="5" sortable filterable>
-            <cw-peek>
-              <section class="petclinic-preview" aria-label="Pet preview">
-                <cw-object-header />
-                <cw-property id="name" />
-                <cw-property id="species" />
-                <cw-property id="notes" editable multi-line="3" />
-                <cw-action id="clearNotes" named="Clear pet notes" />
-                <cw-collection id="visits" named="Pet visits" active paged="10">
-                  <cw-collection-column id="visitAt" label="When" />
-                  <cw-collection-column id="reason" label="Reason" />
-                </cw-collection>
-              </section>
-            </cw-peek>
-            <cw-collection-column id="name" label="Name" />
-            <cw-collection-column id="species" label="Species" />
-            <cw-collection-column id="notes" label="Notes" />
-            <cw-action id="addPet" named="Register a pet" prompt-style="DIALOG_SIDEBAR">
-              <cw-parameter id="name" named="Pet name" />
-            </cw-action>
-            <cw-action id="removePet" />
-          </cw-collection>
-        </section>
+            <section class="petclinic-card" aria-labelledby="petclinic-owner-contact-heading">
+              <h2 id="petclinic-owner-contact-heading">Contact</h2>
+              <div class="petclinic-field-list">
+                <cw-property id="telephoneNumber" editable />
+                <cw-property id="emailAddress" editable />
+              </div>
+            </section>
 
-        <section class="petclinic-card" aria-labelledby="owner-visits-heading">
-          <h2 id="owner-visits-heading">Visits</h2>
-          <cw-collection id="visits" named="Visit history" active paged="8">
-            <cw-peek />
-            <cw-collection-column id="visitAt" label="When" />
-            <cw-collection-column id="reason" label="Reason" />
-            <cw-action id="bookVisit" prompt-style="DIALOG_MODAL">
-              <cw-parameter id="visitDate" min="tomorrow" />
-              <cw-parameter id="visitTime" min="08:00" max="17:00" />
-              <cw-parameter id="reason" multi-line="3" />
-            </cw-action>
-          </cw-collection>
-        </section>
-      </div>
+            <section class="petclinic-card" aria-labelledby="petclinic-owner-details-heading">
+              <h2 id="petclinic-owner-details-heading">Details</h2>
+              <div class="petclinic-field-list">
+                <cw-property id="notes" editable multi-line="5" />
+                <cw-property id="lastVisit" editable label-position="TOP" min="2000-01-01" max="today" />
+                <cw-property id="daysSinceLastVisit" />
+              </div>
+            </section>
+          </div>
+
+          <div class="petclinic-object-collections">
+            <section class="petclinic-card" aria-labelledby="petclinic-owner-pets-heading">
+              <h2 id="petclinic-owner-pets-heading">Pets</h2>
+              <cw-collection id="pets" named="Companion animals" active paged="5" sortable filterable>
+                <cw-peek>
+                  <section class="petclinic-preview" aria-label="Pet preview">
+                    <cw-object-header />
+                    <cw-property id="name" />
+                    <cw-property id="species" />
+                    <cw-property id="notes" editable multi-line="3" />
+                    <cw-action id="clearNotes" named="Clear pet notes" />
+                    <cw-collection id="visits" named="Pet visits" active paged="10">
+                      <cw-collection-column id="visitAt" label="When" />
+                      <cw-collection-column id="reason" label="Reason" />
+                    </cw-collection>
+                  </section>
+                </cw-peek>
+                <cw-collection-column id="name" label="Name" />
+                <cw-collection-column id="species" label="Species" />
+                <cw-collection-column id="notes" label="Notes" />
+                <cw-action id="addPet" named="Register a pet" prompt-style="DIALOG_SIDEBAR">
+                  <cw-parameter
+                    id="name"
+                    named="Pet name"
+                    described-as="The name used for this companion animal."
+                    description-as="label"
+                  />
+                </cw-action>
+                <cw-action id="removePet" />
+              </cw-collection>
+            </section>
+
+            <section class="petclinic-card" aria-labelledby="petclinic-owner-visits-heading">
+              <h2 id="petclinic-owner-visits-heading">Visits</h2>
+              <cw-collection
+                id="visits"
+                named="Visit history"
+                described-as="All visits recorded for this owner's pets."
+                active
+                paged="8"
+              >
+                <cw-peek>
+                  <section class="petclinic-preview" aria-label="Visit preview">
+                    <cw-object-header />
+                    <cw-property id="visitAt" named="Appointment" />
+                    <cw-property id="reason" editable />
+                    <cw-property id="notes" editable multi-line="3" />
+                  </section>
+                </cw-peek>
+                <cw-collection-column id="visitAt" label="When" />
+                <cw-collection-column id="reason" label="Reason" />
+                <cw-collection-column id="notes" label="Notes" />
+                <cw-action id="bookVisit" prompt-style="DIALOG_MODAL">
+                  <cw-parameter id="visitDate" min="tomorrow" />
+                  <cw-parameter id="visitTime" min="08:00" max="17:00" />
+                  <cw-parameter
+                    id="reason"
+                    named="Reason for visit"
+                    described-as="Describe the purpose of the appointment."
+                    description-as="label"
+                    multi-line="3"
+                  />
+                </cw-action>
+              </cw-collection>
+            </section>
+          </div>
+        </div>
+      </article>
       <cw-interaction-controller data-causeway-route-interactions />
     </cw-object-context>
   </section>
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetPage.vue b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetPage.vue
new file mode 100644
index 00000000000..6b225ff12f3
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/PetPage.vue
@@ -0,0 +1,72 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+       https://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<script setup lang="ts">
+import type {CausewayRoutePageProps} from '@apache-causeway/vue-viewer';
+
+defineProps<CausewayRoutePageProps>();
+</script>
+
+<template>
+  <section
+    class="causeway-vue-route-page causeway-route-page causeway-route-object"
+    data-causeway-route-page
+    data-testid="petclinic-vue-pet-page"
+    data-page-kind="pet"
+    data-route-state="loading"
+    tabindex="-1"
+    aria-label="Object page"
+  >
+    <cw-object-context
+      data-causeway-route-context
+      :logical-type="logicalTypeName"
+      :object-id="objectId"
+    >
+      <article class="petclinic-page petclinic-pet-page" data-testid="petclinic-pet-page">
+        <cw-action-results
+          data-causeway-page-result
+          aria-label="Pet action results"
+          presentation-style="SIDEBAR"
+          data-testid="petclinic-sidebar-results"
+          hidden
+        />
+        <cw-breadcrumbs data-testid="petclinic-breadcrumbs" />
+        <cw-object-header />
+
+        <div class="petclinic-object-grid">
+          <section class="petclinic-card" aria-labelledby="petclinic-pet-identity-heading">
+            <h2 id="petclinic-pet-identity-heading">Identity</h2>
+            <div class="petclinic-field-list">
+              <cw-property id="petOwner" />
+              <cw-property id="name" />
+            </div>
+          </section>
+
+          <section class="petclinic-card" aria-labelledby="petclinic-pet-details-heading">
+            <h2 id="petclinic-pet-details-heading">Details</h2>
+            <div class="petclinic-field-list">
+              <cw-property id="species" />
+              <cw-property id="notes" editable multi-line="5" />
+            </div>
+          </section>
+        </div>
+      </article>
+      <cw-interaction-controller data-causeway-route-interactions />
+    </cw-object-context>
+  </section>
+</template>
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/VisitPage.vue b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/VisitPage.vue
new file mode 100644
index 00000000000..9c6a13e1897
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/pages/VisitPage.vue
@@ -0,0 +1,72 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+       https://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<script setup lang="ts">
+import type {CausewayRoutePageProps} from '@apache-causeway/vue-viewer';
+
+defineProps<CausewayRoutePageProps>();
+</script>
+
+<template>
+  <section
+    class="causeway-vue-route-page causeway-route-page causeway-route-object"
+    data-causeway-route-page
+    data-testid="petclinic-vue-visit-page"
+    data-page-kind="visit"
+    data-route-state="loading"
+    tabindex="-1"
+    aria-label="Object page"
+  >
+    <cw-object-context
+      data-causeway-route-context
+      :logical-type="logicalTypeName"
+      :object-id="objectId"
+    >
+      <article class="petclinic-page petclinic-visit-page" data-testid="petclinic-visit-page">
+        <cw-action-results
+          data-causeway-page-result
+          aria-label="Visit action results"
+          presentation-style="DIALOG"
+          data-testid="petclinic-dialog-results"
+          hidden
+        />
+        <cw-breadcrumbs data-testid="petclinic-breadcrumbs" />
+        <cw-object-header />
+
+        <div class="petclinic-object-grid">
+          <section class="petclinic-card" aria-labelledby="petclinic-visit-appointment-heading">
+            <h2 id="petclinic-visit-appointment-heading">Appointment</h2>
+            <div class="petclinic-field-list">
+              <cw-property id="pet" />
+              <cw-property id="visitAt" />
+            </div>
+          </section>
+
+          <section class="petclinic-card" aria-labelledby="petclinic-visit-details-heading">
+            <h2 id="petclinic-visit-details-heading">Details</h2>
+            <div class="petclinic-field-list">
+              <cw-property id="reason" editable />
+              <cw-property id="notes" editable multi-line="5" />
+            </div>
+          </section>
+        </div>
+      </article>
+      <cw-interaction-controller data-causeway-route-interactions />
+    </cw-object-context>
+  </section>
+</template>
diff --git a/viewers/webcomponents/sample-vue-petclinic/frontend/src/petclinic.css b/viewers/webcomponents/sample-vue-petclinic/frontend/src/petclinic.css
index f44f742a475..582563df292 100644
--- a/viewers/webcomponents/sample-vue-petclinic/frontend/src/petclinic.css
+++ b/viewers/webcomponents/sample-vue-petclinic/frontend/src/petclinic.css
@@ -17,33 +17,358 @@
  * under the License.
  */
 
-* { box-sizing: border-box; }
-body { margin: 0; background: var(--causeway-color-surface-subtle, #f3f6fa); font-family: system-ui, sans-serif; }
-.petclinic-vue-shell { min-height: 100vh; }
-.petclinic-skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; }
-.petclinic-skip-link:focus { top: 1rem; padding: 0.7rem; background: white; color: #075ea8; }
-.petclinic-navbar { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem clamp(1rem, 4vw, 3rem); background: #183b65; color: white; }
-.petclinic-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: white; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
-.petclinic-brand > span:first-child { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #fff; color: #183b65; }
-.petclinic-navbar cw-menubars { flex: 1 1 auto; min-width: 0; }
-.petclinic-route-loading { padding: 0.5rem 2rem; background: #fff4ce; color: #543f00; }
-.petclinic-main { width: 100%; min-height: 65vh; padding: clamp(1rem, 3vw, 2rem); }
-.petclinic-owner-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
-.petclinic-toolbar { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.5rem; }
-.petclinic-owner-grid { display: grid; grid-template-columns: minmax(18rem, 0.8fr) minmax(25rem, 1.2fr); gap: 1rem; align-items: start; }
-.petclinic-card { display: block; min-width: 0; margin-block: 1rem; padding: 1rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; background: var(--causeway-vue-surface, white); }
-.petclinic-preview { padding: 1rem; border-inline-start: 0.25rem solid #4d7cab; }
-.petclinic-shell-results { margin: 1rem clamp(1rem, 3vw, 2rem) 0; }
-.petclinic-footer { padding: 1rem 2rem; color: #526176; text-align: center; }
-.petclinic-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
+:root {
+  --causeway-content-width: 100%;
+  --causeway-shell-width: 100%;
+}
+
+* {
+  box-sizing: border-box;
+}
+
+body {
+  margin: 0;
+  background: var(--causeway-page-background);
+  color: var(--causeway-text);
+  font-family: var(--causeway-font-family);
+  font-size: var(--causeway-font-size-base);
+  line-height: var(--causeway-line-height);
+}
+
+.causeway-app-shell {
+  min-height: 100vh;
+  margin: 0;
+  background: var(--causeway-page-background);
+  color: var(--causeway-text);
+}
+
+.causeway-app-shell > cw-graphql-client {
+  min-height: 100vh;
+  display: grid;
+  grid-template-rows: auto auto auto 1fr auto;
+}
+
+.causeway-skip-link {
+  position: fixed;
+  z-index: 10000;
+  inset-block-start: var(--causeway-space-2);
+  inset-inline-start: var(--causeway-space-2);
+  padding: var(--causeway-space-2) var(--causeway-space-3);
+  border-radius: var(--causeway-radius-sm);
+  background: var(--causeway-surface);
+  color: var(--causeway-link);
+  transform: translateY(-180%);
+}
+
+.causeway-skip-link:focus {
+  transform: translateY(0);
+}
+
+.causeway-shell-header {
+  position: sticky;
+  z-index: 100;
+  inset-block-start: 0;
+  color: var(--causeway-nav-text);
+  background: var(--causeway-nav-background);
+  box-shadow: var(--causeway-shadow-sm);
+}
+
+.causeway-shell-navbar {
+  width: min(100%, var(--causeway-shell-width));
+  min-height: var(--causeway-nav-height);
+  margin-inline: auto;
+  padding-inline: var(--causeway-space-4);
+  display: flex;
+  align-items: center;
+  gap: var(--causeway-space-3);
+}
+
+.causeway-shell-navbar > cw-menubars {
+  min-width: 0;
+  flex: 1 1 auto;
+  flex-direction: row;
+  align-items: stretch;
+}
+
+.causeway-shell-navbar > cw-menubars > cw-menubar-primary {
+  min-width: 0;
+  flex: 1 1 auto;
+}
+
+.causeway-shell-navbar > cw-menubars > :is(cw-menubar-secondary, cw-menubar-tertiary) {
+  flex: 0 1 auto;
+}
+
+.causeway-shell-brand {
+  min-height: 2.75rem;
+  display: inline-flex;
+  flex: 0 0 auto;
+  align-items: center;
+  gap: var(--causeway-space-2);
+  color: var(--causeway-nav-text);
+  font-size: var(--causeway-font-size-lg);
+  font-weight: 650;
+  text-decoration: none;
+}
+
+.causeway-shell-brand:hover {
+  color: var(--causeway-nav-text);
+  text-decoration: none;
+}
+
+.causeway-shell-mark {
+  width: 2rem;
+  height: 2rem;
+  display: inline-grid;
+  place-items: center;
+  border: 2px solid currentColor;
+  border-radius: 50%;
+  font-weight: 800;
+}
+
+.causeway-route-loading {
+  position: fixed;
+  z-index: 120;
+  inset-block-start: calc(var(--causeway-nav-height) + var(--causeway-space-2));
+  inset-inline-end: var(--causeway-space-4);
+  padding: var(--causeway-space-2) var(--causeway-space-3);
+  border: 1px solid var(--causeway-border);
+  border-radius: var(--causeway-radius-pill);
+  background: var(--causeway-surface);
+  color: var(--causeway-text);
+  box-shadow: var(--causeway-shadow-md);
+}
+
+.causeway-shell-result,
+.causeway-shell-main,
+.causeway-shell-footer {
+  width: min(calc(100% - (2 * var(--causeway-space-4))), var(--causeway-content-width));
+  margin-inline: auto;
+}
+
+.causeway-shell-result {
+  margin-block-start: var(--causeway-space-4);
+  padding: var(--causeway-space-4);
+  border: 1px solid var(--causeway-border);
+  border-inline-start: 0.3rem solid var(--causeway-info);
+  border-radius: var(--causeway-radius-md);
+  background: var(--causeway-surface);
+  box-shadow: var(--causeway-shadow-sm);
+}
+
+.causeway-shell-result[hidden] {
+  display: none;
+}
+
+.causeway-shell-main {
+  min-width: 0;
+  padding-block: var(--causeway-space-5) var(--causeway-space-8);
+}
+
+.causeway-shell-main:focus-visible {
+  outline: 0.2rem solid var(--causeway-focus);
+  outline-offset: -0.2rem;
+}
+
+.causeway-shell-main .causeway-object-identity {
+  display: none;
+}
+
+.causeway-shell-footer {
+  padding-block: var(--causeway-space-4);
+  display: flex;
+  justify-content: space-between;
+  gap: var(--causeway-space-3);
+  border-block-start: 1px solid var(--causeway-border);
+  color: var(--causeway-muted);
+  font-size: var(--causeway-font-size-sm);
+}
+
+.causeway-route-page,
+.causeway-route-page:focus-visible,
+.causeway-vue-route-page:focus-visible {
+  min-width: 0;
+  outline: none;
+}
+
+.petclinic-dashboard-grid {
+  display: grid;
+  grid-template-columns: repeat(2, minmax(0, 1fr));
+  gap: var(--causeway-space-4);
+}
+
+.petclinic-dashboard-grid > section {
+  min-width: 0;
+}
+
+.petclinic-dashboard-grid > section > h2 {
+  margin: 0;
+  padding: var(--causeway-space-3) var(--causeway-space-4);
+  border: 1px solid var(--causeway-border);
+  border-block-end: 0;
+  border-radius: var(--causeway-radius-md) var(--causeway-radius-md) 0 0;
+  background: var(--causeway-surface-subtle);
+  font-size: 1rem;
+}
+
+.petclinic-dashboard-grid > section > cw-collection :is(.causeway-collection-label, .causeway-collection-description) {
+  position: absolute !important;
+  width: 1px !important;
+  height: 1px !important;
+  padding: 0 !important;
+  margin: -1px !important;
+  overflow: hidden !important;
+  clip: rect(0, 0, 0, 0) !important;
+  white-space: nowrap !important;
+  border: 0 !important;
+}
+
+.petclinic-dashboard-grid > section > cw-collection .causeway-collection {
+  border-start-start-radius: 0;
+  border-start-end-radius: 0;
+}
+
+.petclinic-page {
+  display: grid;
+  gap: var(--causeway-space-4);
+  min-width: 0;
+  max-width: 100%;
+  overflow-x: clip;
+}
+
+.petclinic-page,
+.petclinic-page * {
+  box-sizing: border-box;
+}
+
+.petclinic-page cw-property,
+.petclinic-page cw-collection {
+  min-width: 0;
+  max-width: 100%;
+}
+
+.petclinic-object-grid {
+  display: grid;
+  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
+  gap: var(--causeway-space-4);
+  align-items: start;
+}
+
+.petclinic-object-details,
+.petclinic-object-collections,
+.petclinic-field-list {
+  display: grid;
+  gap: var(--causeway-space-3);
+  min-width: 0;
+}
+
+.petclinic-field-list {
+  --causeway-property-label-column: minmax(7.5rem, 2fr);
+}
+
+.petclinic-card {
+  display: grid;
+  gap: var(--causeway-space-3);
+  min-width: 0;
+  padding: var(--causeway-space-4);
+  border: 1px solid var(--causeway-border);
+  border-radius: var(--causeway-radius-md);
+  background: var(--causeway-surface);
+}
+
+.petclinic-card > h2 {
+  margin: 0;
+  font-size: 1rem;
+}
+
+.petclinic-object-heading {
+  align-items: center;
+  border-block-end: 1px solid var(--causeway-border);
+  display: flex;
+  flex-wrap: wrap;
+  gap: var(--causeway-space-5);
+  min-width: 0;
+}
+
+.petclinic-object-heading > cw-object-header {
+  flex: 0 1 auto;
+}
+
+.petclinic-object-heading .causeway-object-header {
+  border-block-end: 0;
+  margin-block-end: 0;
+}
+
+.petclinic-page-toolbar {
+  align-items: center;
+  display: flex;
+  flex: 0 1 auto;
+  flex-wrap: wrap;
+  gap: var(--causeway-space-2);
+}
+
+.petclinic-preview {
+  padding: var(--causeway-space-4);
+  border-inline-start: 0.25rem solid var(--causeway-info);
+}
+
+.causeway-visually-hidden {
+  position: absolute;
+  width: 1px;
+  height: 1px;
+  margin: -1px;
+  padding: 0;
+  overflow: hidden;
+  clip: rect(0 0 0 0);
+  white-space: nowrap;
+  border: 0;
+}
+
+@media (max-width: 60rem) {
+  .petclinic-dashboard-grid,
+  .petclinic-object-grid {
+    grid-template-columns: minmax(0, 1fr);
+  }
+}
 
 @media (max-width: 48rem) {
-  .petclinic-navbar, .petclinic-owner-heading { align-items: stretch; flex-direction: column; }
-  .petclinic-toolbar { justify-content: start; }
-  .petclinic-owner-grid { grid-template-columns: minmax(0, 1fr); }
-  .petclinic-main { padding: 0.75rem; }
+  .causeway-shell-navbar {
+    min-height: auto;
+    padding-block: var(--causeway-space-2);
+    align-items: flex-start;
+    flex-wrap: wrap;
+  }
+
+  .causeway-shell-navbar > cw-menubars {
+    flex-basis: 100%;
+    flex-direction: column;
+  }
+
+  .causeway-shell-result,
+  .causeway-shell-main,
+  .causeway-shell-footer {
+    width: min(calc(100% - (2 * var(--causeway-space-3))), var(--causeway-content-width));
+  }
+
+  .causeway-shell-main {
+    padding-block-start: var(--causeway-space-4);
+  }
+
+  .causeway-shell-footer {
+    flex-direction: column;
+  }
 }
 
 @media (prefers-reduced-motion: reduce) {
-  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
+  *,
+  *::before,
+  *::after {
+    scroll-behavior: auto !important;
+    animation-duration: 0.01ms !important;
+    transition-duration: 0.01ms !important;
+  }
+
+  .causeway-skip-link {
+    transition: none;
+  }
 }
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js
deleted file mode 100644
index dcbb1709f55..00000000000
--- a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referr [...]
-//# sourceMappingURL=index-BntyzeMN.js.map
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js.map b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js.map
deleted file mode 100644
index 68a543c41f2..00000000000
--- a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BntyzeMN.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index-BntyzeMN.js","sources":["../../../../../../frontend/node_modules/@vue/shared/dist/shared.esm-bundler.js","../../../../../../frontend/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../../../../../../frontend/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../../../../../../frontend/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../../../../../../frontend/node_modules/vue-router/dist/devtools-EWN81iOl.mjs","../../ [...]
\ No newline at end of file
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BuWcbzr4.css b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BuWcbzr4.css
deleted file mode 100644
index 11356c7e0ed..00000000000
--- a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-BuWcbzr4.css
+++ /dev/null
@@ -1 +0,0 @@
-:root{--causeway-vue-surface: #ffffff;--causeway-vue-text: #1f2937;--causeway-vue-muted: #596579;--causeway-vue-border: #d7dee8;--causeway-vue-danger: #9b1c1c;--causeway-vue-focus: #075ea8;color-scheme:light dark}.causeway-vue-route-page{box-sizing:border-box;min-width:0;width:100%;color:var(--causeway-vue-text)}.causeway-vue-route-page:focus-visible,[data-causeway-router-view]:focus-visible{outline:.2rem solid var(--causeway-vue-focus);outline-offset:.2rem}.causeway-vue-status{margin:1r [...]
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js
new file mode 100644
index 00000000000..9955a28b772
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js
@@ -0,0 +1,2 @@
+(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referr [...]
+//# sourceMappingURL=index-CklV2Pe0.js.map
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js.map b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js.map
new file mode 100644
index 00000000000..87a5b0c0cbc
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CklV2Pe0.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index-CklV2Pe0.js","sources":["../../../../../../frontend/node_modules/@vue/shared/dist/shared.esm-bundler.js","../../../../../../frontend/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../../../../../../frontend/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../../../../../../frontend/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../../../../../../frontend/node_modules/vue-router/dist/devtools-EWN81iOl.mjs","../../ [...]
\ No newline at end of file
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CqcjgOE7.css b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CqcjgOE7.css
new file mode 100644
index 00000000000..e940b94c261
--- /dev/null
+++ b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/assets/index-CqcjgOE7.css
@@ -0,0 +1 @@
+:root{--causeway-vue-surface: #ffffff;--causeway-vue-text: #1f2937;--causeway-vue-muted: #596579;--causeway-vue-border: #d7dee8;--causeway-vue-danger: #9b1c1c;--causeway-vue-focus: #075ea8;color-scheme:light dark}.causeway-vue-route-page{box-sizing:border-box;min-width:0;width:100%;color:var(--causeway-vue-text)}.causeway-vue-route-page:focus-visible,[data-causeway-router-view]:focus-visible{outline:.2rem solid var(--causeway-vue-focus);outline-offset:.2rem}.causeway-vue-status{margin:1r [...]
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/index.html b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/index.html
index 9ad4ffdc303..fa4b8b83fb4 100644
--- a/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/index.html
+++ b/viewers/webcomponents/sample-vue-petclinic/src/main/resources/static/vue/index.html
@@ -26,8 +26,8 @@
   <link rel="stylesheet" href="/causeway-webcomponents/component-styles.css">
   <link rel="stylesheet" href="/causeway-webcomponents/theme.css">
   <link rel="stylesheet" href="/webjars/font-awesome/7.3.0/css/all.min.css">
-  <script type="module" crossorigin src="/vue/assets/index-BntyzeMN.js"></script>
-  <link rel="stylesheet" crossorigin href="/vue/assets/index-BuWcbzr4.css">
+  <script type="module" crossorigin src="/vue/assets/index-CklV2Pe0.js"></script>
+  <link rel="stylesheet" crossorigin href="/vue/assets/index-CqcjgOE7.css">
 </head>
 <body>
   <div id="app"></div>
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/playwright/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVuePlaywrightTest.java b/viewers/webcomponents/sample-vue-petclinic/src/playwright/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVuePlaywrightTest.java
index e94e1d5422b..de80c48a92e 100644
--- a/viewers/webcomponents/sample-vue-petclinic/src/playwright/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVuePlaywrightTest.java
+++ b/viewers/webcomponents/sample-vue-petclinic/src/playwright/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVuePlaywrightTest.java
@@ -78,7 +78,13 @@ void openPage() {
         page.onPageError(error -> browserFailures.add(error));
         page.onConsoleMessage(message -> {
             if ("error".equals(message.type()) && !message.text().contains("favicon.ico")) {
-                browserFailures.add(message.text());
+                browserFailures.add("console: " + message.text());
+            }
+        });
+        page.onRequestFailed(request -> {
+            final var failure = request.failure();
+            if (!(request.url().contains("/graphql") && failure != null && failure.contains("ERR_ABORTED"))) {
+                browserFailures.add("request: " + request.method() + " " + request.url() + " " + failure);
             }
         });
     }
@@ -103,30 +109,132 @@ void customOwnerPageUsesOneStableShellAndDeclarativeRouteBoundary() {
     }
 
     @Test
-    void semanticNavigationUsesGenericFallbackAndBrowserHistory() {
-        open("/vue/object/petclinic.PetOwner/s_owner-mary");
-        page.locator("[data-route-state='ready']").waitFor();
-        page.evaluate("""
-                document.querySelector('[data-testid="petclinic-vue-application-shell"]').dispatchEvent(
-                  new CustomEvent('causeway-navigation-request', {
-                    bubbles: true,
-                    composed: true,
-                    cancelable: true,
-                    detail: {target: {logicalTypeName: 'petclinic.Pet', id: 's_pet-basil'}}
-                  }))
-                """);
-        page.waitForURL("**/vue/object/petclinic.Pet/s_pet-basil");
-        page.locator("[data-page-kind='generic'][data-route-state='ready']").waitFor();
-        page.waitForFunction("document.body.innerText.includes('Basil')");
+    void semanticNavigationUsesExactPagesGenericFallbackAndBrowserHistory() {
+        open("/vue/object/petclinic.Pet/s_pet-basil");
+        page.locator("[data-page-kind='pet'][data-route-state='ready']").waitFor();
         assertThat(page.locator("body").innerText()).contains("Basil");
 
+        navigateTo("petclinic.ViewerFallback", "s_viewer-fallback");
+        page.waitForURL("**/vue/object/petclinic.ViewerFallback/s_viewer-fallback");
+        page.locator("[data-page-kind='generic'][data-route-state='ready']").waitFor();
+        page.waitForFunction("() => document.body.innerText.includes('Generic viewer fallback')");
+        assertThat(page.locator("body").innerText()).contains("Generic viewer fallback", "Message");
+
         page.goBack();
-        page.locator("[data-page-kind='pet-owner'][data-route-state='ready']").waitFor();
-        assertThat(page.url()).endsWith("/vue/object/petclinic.PetOwner/s_owner-mary");
+        page.locator("[data-page-kind='pet'][data-route-state='ready']").waitFor();
+        assertThat(page.url()).endsWith("/vue/object/petclinic.Pet/s_pet-basil");
 
         page.goForward();
         page.locator("[data-page-kind='generic'][data-route-state='ready']").waitFor();
-        assertThat(page.url()).endsWith("/vue/object/petclinic.Pet/s_pet-basil");
+        assertThat(page.url()).endsWith("/vue/object/petclinic.ViewerFallback/s_viewer-fallback");
+    }
+
+    @Test
+    void exactPetclinicPagesMatchTheHtmxSemanticComposition() {
+        open("/vue/");
+        page.locator("[data-page-kind='home'][data-route-state='ready']").waitFor();
+        page.waitForFunction("() => document.querySelector('cw-collection#petOwners')?.collectionState?.rows?.length === 5");
+        page.waitForFunction("() => document.querySelector('cw-collection#futureVisits')?.collectionState?.rows?.length === 10");
+        assertThat(page.locator(".petclinic-dashboard-grid > section > h2")
+                .evaluateAll("elements => elements.map(element => element.textContent.trim()).join(',')"))
+                .isEqualTo("Pet owners,Upcoming visits");
+        assertThat(page.locator("cw-collection#petOwners").getAttribute("paged")).isEqualTo("5");
+        assertThat(page.locator("cw-collection#futureVisits").getAttribute("paged")).isEqualTo("10");
+        assertThat(page.locator("cw-collection#petOwners > cw-peek").count()).isEqualTo(1);
+        assertThat(page.locator("cw-collection#futureVisits > cw-peek").count()).isEqualTo(1);
+        assertThat(page.locator("cw-collection#petOwners [data-causeway-peek-toggle]").count()).isGreaterThan(0);
+        assertThat(page.title()).endsWith(" · Pet Clinic");
+
+        open("/vue/object/petclinic.PetOwner/s_owner-mary");
+        page.locator("[data-page-kind='pet-owner'][data-route-state='ready']").waitFor();
+        page.waitForFunction("() => document.querySelector('.petclinic-object-collections > section:last-child cw-collection#visits')?.collectionState?.rows?.length === 2");
+        assertThat(page.locator(".petclinic-owner-page h2")
+                .evaluateAll("elements => elements.map(element => element.textContent.trim()).join(',')"))
+                .isEqualTo("Identity,Contact,Details,Pets,Companion animals,Visits,Visit history");
+        assertThat(page.locator(".petclinic-page-toolbar > cw-action")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("allOwners,noOwners,relatedOwners,delete");
+        assertThat(page.locator("cw-action#relatedOwners cw-standalone-collection > cw-collection-column")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("name,knownAs,notes");
+        assertThat(page.locator(".petclinic-object-details cw-property")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("name,knownAs,telephoneNumber,emailAddress,notes,lastVisit,daysSinceLastVisit");
+        assertThat(page.locator(".petclinic-object-collections > section").count()).isEqualTo(2);
+        assertThat(page.locator("cw-collection#visits > cw-collection-column")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("visitAt,reason,notes");
+        assertThat(page.locator("cw-collection#visits").getAttribute("paged")).isEqualTo("8");
+        assertThat(page.locator("cw-collection#visits > cw-peek").count()).isEqualTo(1);
+        assertThat(page.locator("cw-collection#visits [data-causeway-peek-toggle]").count()).isGreaterThan(0);
+
+        open("/vue/object/petclinic.Pet/s_pet-basil");
+        page.locator("[data-page-kind='pet'][data-route-state='ready']").waitFor();
+        assertThat(page.locator(".petclinic-pet-page h2")
+                .evaluateAll("elements => elements.map(element => element.textContent.trim()).join(',')"))
+                .isEqualTo("Identity,Details");
+        assertThat(page.locator(".petclinic-pet-page cw-property")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("petOwner,name,species,notes");
+        assertThat(page.locator(".petclinic-pet-page cw-property#id, .petclinic-pet-page cw-property#version").count()).isZero();
+
+        open("/vue/object/petclinic.Visit/s_visit-basil-checkup");
+        page.locator("[data-page-kind='visit'][data-route-state='ready']").waitFor();
+        assertThat(page.locator(".petclinic-visit-page h2")
+                .evaluateAll("elements => elements.map(element => element.textContent.trim()).join(',')"))
+                .isEqualTo("Appointment,Details");
+        assertThat(page.locator(".petclinic-visit-page cw-property")
+                .evaluateAll("elements => elements.map(element => element.id).join(',')"))
+                .isEqualTo("pet,visitAt,reason,notes");
+        assertThat(page.locator(".petclinic-visit-page cw-property#id, .petclinic-visit-page cw-property#version").count()).isZero();
+    }
+
+    @Test
+    void shellAndOwnerLayoutMatchTheWideAndNarrowReferenceInvariants() {
+        open("/vue/object/petclinic.PetOwner/s_owner-mary");
+        page.locator("[data-route-state='ready']").waitFor();
+        page.locator("cw-menubars[data-menu-state='ready']").waitFor();
+
+        final var wide = (List<Number>) page.locator("[data-testid='petclinic-vue-application-shell']").evaluate("""
+                shell => {
+                  const header = shell.querySelector('header').getBoundingClientRect();
+                  const main = shell.querySelector('main').getBoundingClientRect();
+                  const details = shell.querySelector('.petclinic-object-details').getBoundingClientRect();
+                  const collections = shell.querySelector('.petclinic-object-collections').getBoundingClientRect();
+                  return [header.height, main.left, details.left, details.right, collections.left, collections.top - details.top,
+                    document.documentElement.scrollWidth - document.documentElement.clientWidth];
+                }
+                """);
+        assertThat(wide.get(0).doubleValue()).isBetween(50.0, 54.0);
+        assertThat(wide.get(1).doubleValue()).isBetween(15.0, 17.0);
+        assertThat(wide.get(4).doubleValue()).isGreaterThanOrEqualTo(wide.get(3).doubleValue());
+        assertThat(Math.abs(wide.get(5).doubleValue())).isLessThan(1.0);
+        assertThat(wide.get(6).intValue()).isZero();
+        assertThat(page.locator("header.causeway-shell-header").evaluate("element => getComputedStyle(element).backgroundColor"))
+                .isEqualTo("rgb(23, 105, 170)");
+        assertThat(page.locator("body").evaluate("element => getComputedStyle(element).fontFamily"))
+                .asString().contains("Inter");
+        assertThat(page.locator("cw-menubars").innerText()).containsSubsequence("Pet Owners", "Visits", "System");
+        assertThat(page.locator("footer").innerText()).contains("Powered by Apache Causeway", "Vue viewer");
+        assertThat(page.locator(".causeway-object-identity").isVisible()).isFalse();
+        assertThat(page.locator("[data-causeway-route-page]").evaluate("element => getComputedStyle(element).outlineStyle"))
+                .isEqualTo("none");
+
+        page.setViewportSize(500, 900);
+        page.waitForFunction("() => { const grid = document.querySelector('.petclinic-object-grid'); return getComputedStyle(grid).gridTemplateColumns.split(' ').length === 1; }");
+        final var narrow = (List<Number>) page.locator("[data-testid='petclinic-vue-application-shell']").evaluate("""
+                shell => {
+                  const details = shell.querySelector('.petclinic-object-details').getBoundingClientRect();
+                  const collections = shell.querySelector('.petclinic-object-collections').getBoundingClientRect();
+                  const footer = shell.querySelector('footer');
+                  return [collections.top - details.bottom,
+                    document.documentElement.scrollWidth - document.documentElement.clientWidth,
+                    getComputedStyle(footer).flexDirection === 'column' ? 1 : 0];
+                }
+                """);
+        assertThat(narrow.get(0).doubleValue()).isGreaterThanOrEqualTo(0.0);
+        assertThat(narrow.get(1).intValue()).isZero();
+        assertThat(narrow.get(2).intValue()).isEqualTo(1);
     }
 
     @Test
@@ -151,9 +259,9 @@ void scalarActionResultsUseTheActivePageOutlet() {
     @Test
     void directRefreshAndInvalidRoutesRemainWithinTheApplicationShell() {
         open("/vue/object/petclinic.Pet/s_pet-basil");
-        page.locator("[data-page-kind='generic'][data-route-state='ready']").waitFor();
+        page.locator("[data-page-kind='pet'][data-route-state='ready']").waitFor();
         page.reload();
-        page.locator("[data-page-kind='generic'][data-route-state='ready']").waitFor();
+        page.locator("[data-page-kind='pet'][data-route-state='ready']").waitFor();
         assertThat(page.locator("cw-graphql-client[data-causeway-shell-client]").count()).isEqualTo(1);
 
         open("/vue/invalid-route");
@@ -184,6 +292,18 @@ void bothToolkitPoliciesPreserveAccessibleShellLandmarksAndMenus() {
         }
     }
 
+    private void navigateTo(final String logicalTypeName, final String id) {
+        page.evaluate("""
+                ([logicalTypeName, id]) => document.querySelector('[data-testid="petclinic-vue-application-shell"]').dispatchEvent(
+                  new CustomEvent('causeway-navigation-request', {
+                    bubbles: true,
+                    composed: true,
+                    cancelable: true,
+                    detail: {target: {logicalTypeName, id}}
+                  }))
+                """, List.of(logicalTypeName, id));
+    }
+
     private void open(final String path) {
         page.navigate("http://localhost:" + port + path);
         page.locator("[data-testid='petclinic-vue-application-shell']").waitFor();
diff --git a/viewers/webcomponents/sample-vue-petclinic/src/test/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVueApplicationIntegTest.java b/viewers/webcomponents/sample-vue-petclinic/src/test/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVueApplicationIntegTest.java
index 69d9918f09f..fbf8a58e610 100644
--- a/viewers/webcomponents/sample-vue-petclinic/src/test/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVueApplicationIntegTest.java
+++ b/viewers/webcomponents/sample-vue-petclinic/src/test/java/org/apache/causeway/viewer/webcomponents/sample/vue/petclinic/PetClinicVueApplicationIntegTest.java
@@ -24,13 +24,18 @@
 import java.net.http.HttpResponse;
 import java.util.regex.Pattern;
 
+import jakarta.persistence.EntityManager;
+
 import org.junit.jupiter.api.Test;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.boot.test.web.server.LocalServerPort;
+import org.springframework.core.io.ResourceLoader;
 
 import org.apache.causeway.viewer.webcomponents.sample.petclinic.domain.PetOwner;
 import org.apache.causeway.viewer.webcomponents.sample.petclinic.domain.PetOwnerRepository;
+import org.apache.causeway.viewer.webcomponents.sample.petclinic.domain.ViewerFallback;
 import org.apache.causeway.viewer.webcomponents.sample.petclinic.domain.VisitRepository;
 
 import static org.assertj.core.api.Assertions.assertThat;
@@ -51,6 +56,12 @@ class PetClinicVueApplicationIntegTest {
     @Autowired
     private VisitRepository visitRepository;
 
+    @Autowired
+    private EntityManager entityManager;
+
+    @Autowired
+    private ResourceLoader resourceLoader;
+
     @Test
     void reusesDeterministicPetclinicDomain() {
         final var mary = ownerRepository.findById(PetOwner.MARY_ID);
@@ -58,6 +69,9 @@ void reusesDeterministicPetclinicDomain() {
         assertThat(mary.getName()).isEqualTo("Mary Smith");
         assertThat(ownerRepository.findAll()).hasSize(10);
         assertThat(visitRepository.findByPetOwner(mary)).hasSize(2);
+        assertThat(entityManager.find(ViewerFallback.class, ViewerFallback.ID).getMessage())
+                .isEqualTo("Rendered by the generic Vue page.");
+        assertThat(resourceLoader.getResource("classpath:menubars.layout.xml").exists()).isTrue();
     }
 
     @Test