Skip to content

feat: cache stats dashboard card expansion#55

Merged
eclectic-coding merged 3 commits into
mainfrom
feat/cache-stats-card
May 26, 2026
Merged

feat: cache stats dashboard card expansion#55
eclectic-coding merged 3 commits into
mainfrom
feat/cache-stats-card

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds Oldest entry age to the Solid Cache overview card on the main dashboard (time_ago_in_words with exact timestamp on hover; hidden when cache is empty)
  • Entries inline stat on the main dashboard is now a link to the entry browser
  • Total Entries card on the Solid Cache overview page is now a link to the entry browser
  • oldest_entry added to the /metrics JSON payload as ISO 8601 (or null)

Closes #29

Test plan

  • bundle exec rake passes (223 examples, 0 failures)
  • Main dashboard cache card shows Entries (clickable → entry browser), Size, and Oldest age
  • Oldest stat is hidden when no cache entries exist
  • Oldest stat tooltip shows exact date/time on hover
  • Total Entries card on /cache overview links to /cache/entries
  • GET /metrics response includes oldest_entry as ISO 8601 when entries exist, null when empty

🤖 Generated with Claude Code

eclectic-coding and others added 3 commits May 26, 2026 09:49
CacheStats#to_h gains oldest_entry (SolidCache::Entry.minimum(:created_at)).
The cache card shows a time_ago_in_words value with the exact timestamp as
a title tooltip; stat is omitted entirely when no entries exist. Entries
stat is now a link to the entry browser. Metrics endpoint includes
oldest_entry as ISO 8601 (or null).

Closes #29

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 1833e42 into main May 26, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/cache-stats-card branch May 26, 2026 13:57
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.

[v0.5.0] Cache: stats dashboard card expansion

1 participant