Commit Graph

10 Commits

Author SHA1 Message Date
valknarness
bbe7f9a22d feat: implement comprehensive UI/UX improvements
This commit implements 7 requested improvements:

1. Add footer component to all pages
   - Created reusable AppFooter component
   - Added to layout.tsx with flex-1 main container
   - Includes links to Legal, Disclaimer, Imprint, GitHub

2. Change search highlight from yellow to more discreet color
   - Updated mark styling with purple theme colors
   - Uses color-mix for theme-aware transparency
   - Added subtle border-bottom for better visibility

3. Strip markdown from search results
   - Created stripMarkdown function
   - Removes HTML tags, markdown links, images, formatting
   - Shows clean text descriptions only

4. Add page number links to pagination
   - Created getPageNumbers function with smart ellipsis
   - Shows current page ±2 pages with first/last always visible
   - Example: 1 ... 5 6 [7] 8 9 ... 20

5. Adjust README badge display to be inline
   - Custom marked renderer detects badges (shields.io, badgen, etc.)
   - Applies inline-block with !my-0 !mx-1 align-middle classes
   - Badges now display inline in paragraph flow

6. Fix relative image URLs in READMEs
   - Custom image renderer converts relative to absolute GitHub URLs
   - Handles ./path and path patterns
   - Converts to raw.githubusercontent.com URLs
   - Also handles /blob/ URLs conversion

7. Fix command menu highlight contrast
   - Reuses mark styling from search highlights
   - Consistent purple theme colors across app

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 09:27:01 +01:00
valknarness
109d82ed23 fix: search results now link to repository detail page
Changed search results to link to internal /repository/{id} page
instead of external GitHub URL, matching command menu behavior.
Users can now view READMEs directly from search results.

GitHub link remains available as a secondary external link icon.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 08:00:18 +01:00
valknarness
d7c095fdb7 fix: search API FTS join and error handling
Fixed 500 Internal Server Error in search API by correcting the FTS5
full-text search query join. The previous query incorrectly joined
fts.rowid directly to repositories.id, but FTS rowid corresponds to
the readmes table. Now properly joins through readmes table first.

Also enhanced error logging with detailed error messages in development
mode for easier debugging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 06:52:08 +01:00
valknarness
018eb46d64 fix: readme typography 2025-10-27 21:19:49 +01:00
valknarness
f4cfcf804e fic: flickering 2025-10-27 19:24:17 +01:00
valknarness
51b42fe625 fix: icons 2025-10-26 22:53:16 +01:00
valknarness
da107d1833 fix: workflow build 2025-10-26 15:47:02 +01:00
valknarness
8a6e4b085d fix: workflow 2025-10-26 15:39:50 +01:00
valknarness
6ee26db0ba fix: make it build 2025-10-26 00:02:56 +02:00
valknarness
b63592f153 a new start 2025-10-25 16:09:02 +02:00