Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Resolve project favicons from nested apps and return 204 when missing#38

Merged
rexlManu merged 1 commit intomainfrom
t3code/sidebar-favicon-monorepo-apps-search
Mar 10, 2026
Merged

Resolve project favicons from nested apps and return 204 when missing#38
rexlManu merged 1 commit intomainfrom
t3code/sidebar-favicon-monorepo-apps-search

Conversation

@rexlManu
Copy link
Copy Markdown
Owner

Summary

  • Refactored server favicon resolution into async helpers for clearer, more robust lookup flow.
  • Expanded favicon candidate discovery (including favicon-16x16/favicon-32x32) and icon link parsing from source files.
  • Added recursive apps/ search to resolve favicons from nested web app roots while skipping build/cache directories.
  • Replaced SVG fallback response with 204 No Content when no favicon exists.
  • Updated ProjectFavicon to reset loading state when cwd changes, validate loaded image dimensions, and support a configurable fallback icon.
  • Wired sidebar project rows to use real project favicons with the existing folder icon as fallback.

Testing

  • Added server tests for favicon resolution from apps/web/public/favicon.ico.
  • Added server tests for recursive nested app resolution via index.html icon link.
  • Added server tests to verify 204 response when no favicon is found.
  • bun lint: Not run
  • bun typecheck: Not run

- Search `apps/` recursively for web app roots and favicon candidates on the server
- Return `204` instead of serving an SVG fallback when no favicon exists
- Update sidebar favicon rendering to reset load state per project and use icon fallback reliably
@rexlManu rexlManu merged commit 35a9ac5 into main Mar 10, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant