feat: cache entry detail page#26
Merged
Merged
Conversation
Shows key, byte size, and created-at for any cache entry. Value body is gated behind SolidStackWeb.allow_value_preview (default false); when enabled, displays up to 4 KB of the raw serialized value. 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>
format_cache_value helper tries JSON.parse; on success renders JSON.pretty_generate with a JSON badge, otherwise falls back to plain text with a Text badge. Truncation and the disabled-state message are unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #26 +/- ##
==========================================
- Coverage 99.19% 99.00% -0.19%
==========================================
Files 30 30
Lines 496 505 +9
==========================================
+ Hits 492 500 +8
- Misses 4 5 +1
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /cache/entries/:id— shows full key, byte size, created-at, and optionally the raw serialized valueSolidStackWeb.allow_value_previewconfig toggle (defaultfalse) gates the value section; when enabled, displays up to 4 KB with JSON pretty-printing and a format badge (JSON / Text)allow_value_preview = trueset in the dummy app initializer for local testingTest plan
bundle exec rakepasses (219 examples, 0 failures)allow_value_preview = false— value section shows the disabled message with config hintallow_value_preview = truein dummy app — JSON values render pretty-printed with JSON badge; plain-text values render with Text badge/cache/entries🤖 Generated with Claude Code