Skip to content

Releases: codervisor/lean-spec-docs

v0.2.4 - Bug Fixes and UI Improvements

17 Nov 15:31
8670526

Choose a tag to compare

Fixed

  • CLI lean-spec ui pnpm flow - Removed pnpm dlx --prefer-offline forcing offline cache, so the UI command now fetches @leanspec/ui on demand and no longer fails when the package is missing locally.
  • Web filesystem relationship parsing - UI development mode now respects the SPECS_DIR environment variable, so relationships and sub-spec counts resolve correctly when serving specs from an external workspace (fixes ENOENT errors when pointing the UI at another repo).
  • Web sidebar scroll position drift - Eliminated scroll position jumping during navigation
    • Fixed React 19 useSyncExternalStore infinite loop by stabilizing server snapshot references
    • Isolated scroll persistence to prevent global store re-renders on every scroll event
    • Implemented component-local scroll management with useIsomorphicLayoutEffect for flicker-free restoration
    • Added guarded auto-anchoring that centers active spec on page refresh without disrupting user scrolling
    • Validated smooth scrolling for 100+ spec lists with no drift during rapid navigation or filtering
  • Web spec detail page sub-specs display - Fixed missing sub-specs tabs and count indicator
    • Sub-specs tabs now correctly display when available
    • Sidebar shows sub-spec count (e.g., "+3") for specs with additional markdown files
    • Added getSpecsWithSubSpecCount() function for efficient sub-spec counting
    • Enhanced SidebarSpec type to include subSpecsCount field
  • @leanspec/ui package build - Fixed static asset bundling for npm distribution
    • Changed from symlinks to copying static assets into standalone build
    • Ensures Next.js static files and public assets are included in published package
    • Fixed 404 errors for /_next/static/* and /public/* assets
    • Cross-platform compatible (Windows, macOS, Linux)

Full Changelog: https://github.com/codervisor/lean-spec/blob/main/CHANGELOG.md\#024---2025-11-17