Repository navigation
feat(ui): add collapsible navigation rail and curated haptic audio system - #2
Merged
Merged
Conversation
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 of Changes
This Pull Request delivers two major UI/UX and interaction enhancements to the DSA Living Documentation Portal (https://vadde.github.io/DSA/):
🌟 Key Highlights
Collapsible Navigation Rail (Desktop & Mobile):
#sidebar-close-btn): Prominently docked inside<aside class="sidebar">top header bar. Clicking it smoothly slides the sidebar away (margin-left: calc(-1 * var(--sidebar-width)); opacity: 0; visibility: hidden;) and expands the content area for distraction-free reading.#sidebar-dock-toggle): Positioned next to the brand badge in the top-left header for quick access.#floating-sidebar-toggle): When the sidebar is collapsed on desktop, a high-contrast frosted glass pill (🧭 NAVIGATION) smoothly slides into the left edge (top: calc(var(--topbar-height) + 14px); left: 14px;).⌘B(macOS),Ctrl+B(Windows/Linux), or[(when not focused in inputs) toggles the sidebar instantly.localStorage.getItem('dsa_sidebar_collapsed').#sidebar-close-btnsmoothly dismisses the mobile drawer.Curated Web Audio Haptic Feedback Engine (
HapticAudio):expand(): Ascending exponential sine ramp (540Hz → 880Hz,38ms) communicating unboxing and opening.collapse(): Descending exponential sine ramp (780Hz → 420Hz,38ms) communicating folding and latching shut.sidebarOpen(): Resonant triangle glide (440Hz → 760Hz,55ms) for sliding panel reveal.sidebarClose(): Mechanical latch click (680Hz → 320Hz,45ms) for solid closure.tap(): Snappy high-transient iOS-style tap (920Hz → 560Hz,22ms) for tabs, filter chips, and segmented controls.copySuccess(): Celebratory dual-tone chime (C6 1046Hz + E6 1318Hz,90ms) when copying solution code.searchOpen(): Holographic digital ping (1180Hz → 1480Hz,40ms) on ⌘K search launch.themeChange(): Cosmic harmonic frequency sweep (600Hz → 1200Hz,60ms).theaterOpen(): Cinematic workbench focus chord (440Hz → 880Hz,70ms).<details class="problem-card">), theory sections, and sidebar headers share the exact sameexpandandcollapseaudio profiles.STATE.isBatchExpandingstrictly mutes individual blips to prevent audio distortion and DOM thread starvation.dsa_audio_enabled !== 'false') for tactile interactivity, with persistent 🔊 / 🔇 muting in the HUD.Deterministic Quality Gate Auditing:
scripts/test-docs.shto permanently assert#sidebar-dock-toggle,#sidebar-close-btn,#floating-sidebar-toggle,dsa_sidebar_collapsed, andHapticAudioinvariants..agents/skills/dsa-docs-portal/SKILL.md) and PRD (SPEC-001).🧪 Verification Status
make ci): 100% Passedmake docs-test): 12 / 12 Gates Passedmake test-boxes): 43 / 43 Boxes Aligned[), and problem summary toggle in Chromium.