mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Add a preview modal so users can read a skill's SKILL.md content before installing. Clicking a search result card or table row opens the modal; the Install button is now inside the modal. Backend: - New GET /api/preview?source=owner/repo/path endpoint - FetchSkillContent fetches SKILL.md from GitHub Contents API - Git Tree API fallback for hub sources where the install shorthand doesn't match the repo's actual file path - In-memory TTL cache (5 min) via sync.Map - Proper 404/429/500 error handling with rate-limit support Frontend: - SkillPreviewModal component (DialogShell-based, lazy-fetch) - Cards and table rows clickable to open preview - Graceful fallback: if fetch fails but hub metadata exists, show description + tags instead of error - Hide Stars column in table view for hub mode - Fix Card component missing onClick prop passthrough - Fix IntersectionObserver not reconnecting after loading more items - Prevent background scroll when any modal is open (DialogShell) - i18n keys added to all 11 locales Closes #141