Skip to content

8.0.1: BadgeExtension, cached/static navigation split#2

Merged
wtorsi merged 1 commit intomainfrom
8.0
Feb 20, 2026
Merged

8.0.1: BadgeExtension, cached/static navigation split#2
wtorsi merged 1 commit intomainfrom
8.0

Conversation

@wtorsi
Copy link
Contributor

@wtorsi wtorsi commented Feb 20, 2026

Summary

  • Split AbstractNavigation into a hierarchy: AbstractCachedNavigation (24h TTL, tags) and AbstractStaticNavigation (0 TTL, no tags) — the base AbstractNavigation is now a minimal abstract with no cache opinion
  • Add BadgeExtension — resolves badge option (int or Closure) into extras['badge'] at build time
  • Add Item::getBadge(): ?int convenience getter
  • Update README with navigation hierarchy docs, badges section, and corrected class references
  • Update CLAUDE.md to reflect new architecture

Test plan

  • All 140 tests pass
  • PHPStan level max — no errors
  • PHP-CS-Fixer — no violations

🤖 Generated with Claude Code

Introduce AbstractCachedNavigation (24h TTL, tags) and
AbstractStaticNavigation (0 TTL) as subclasses of a minimal
AbstractNavigation base. Add BadgeExtension to resolve badge
closures/ints into extras. Add Item::getBadge() convenience getter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wtorsi wtorsi merged commit 9d7b884 into main Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant