Conversation
Example pages linked from an index gave no hint of which example they showed: the link text was not repeated on the page, and the browser title was a generic, often stale, per-application string. WicketExamplePage now renders the example's title as a heading and as the browser title. The title is read from the resource key <simple class name>.title, kept in a wicket-package.properties per example application, and index pages use the same keys for their link texts. The hard-coded <title> tags and headings duplicating the new title are removed from the example markup, and a test checks that every example page has a title. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1603 +/- ##
============================================
- Coverage 61.88% 61.87% -0.01%
+ Complexity 11231 11229 -2
============================================
Files 1247 1247
Lines 48338 48338
Branches 6783 6783
============================================
- Hits 29913 29911 -2
- Misses 15717 15718 +1
- Partials 2708 2709 +1 🚀 New features to boost your workflow:
|
|
I see this in the logs expected? |
|
Hello @reiern70 There seems to be different logic for each In such case I would propose to list package classes dynamically instead of hardcoding them into static list with the code like this in the this way examples can be "just added" without maintaining various lists :) |
Very good idea. I will do so. Thanks for feedback. |
Example pages linked from an index gave no hint of which example they showed: the link text was not repeated on the page, and the browser title was a generic, often stale, per-application string.
WicketExamplePage now renders the example's title as a heading and as the browser title. The title is read from the resource key .title, kept in a wicket-package.properties per example application, and index pages use the same keys for their link texts. The hard-coded <title> tags and headings duplicating the new title are removed from the example markup, and a test checks that every example page has a title.