-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add toggle button to show/hide raw cache headers #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: serhalp <[email protected]>
Co-authored-by: serhalp <[email protected]>
Co-authored-by: serhalp <[email protected]>
@copilot try again |
Co-authored-by: serhalp <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to work, just need to iterate on the design
app/components/RunDisplay.vue
Outdated
v-if="runs.length > 0" | ||
class="controls-container" | ||
> | ||
<label class="toggle-raw-headers-label"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's still really ugly:

maybe you aren't taking into account the global styles the app loads in the nuxt config file? maybe your permissions are blocking it from loading or something?
now that I think about it, maybe the "Reset" button and this toggle should be grouped together somehow? they're both controls. maybe make a visually nice controls section somewhere? the only constraint is it shouldn't take much vertical space, ideally zero somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed the design feedback by creating a clean controls bar that groups the toggle and clear button together. The toggle is now a modern switch instead of a basic checkbox, with better styling that should work with the global styles. The controls are positioned logically above the run panels and take minimal vertical space. (a728e60)
Co-authored-by: serhalp <[email protected]>
This PR adds a toggle button to the RunPanel component that allows users to show or hide the raw cache headers display, improving the UI by reducing clutter while still providing access to detailed header information when needed.
Changes Made
RunPanel Component Updates
showRawHeaders
reactive state (defaults tofalse
- headers hidden by default)RawCacheHeaders
component usingv-if="showRawHeaders"
Test Coverage
RunPanel.test.ts
with 7 test casesCacheAnalysis
,RawCacheHeaders
,NuxtLink
)Behavior
Validation
Before this change, raw headers were always visible, taking up significant screen space. Now users have control over when to view this detailed information.
Fixes #85.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.