Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Rewrite in Svelte 5 #251

Merged
merged 60 commits into from
May 19, 2024
Merged

feat!: Rewrite in Svelte 5 #251

merged 60 commits into from
May 19, 2024

Conversation

aleksasiriski
Copy link
Member

@aleksasiriski aleksasiriski commented May 8, 2024

Closes #181
Closes #149
Closes #229

  • Rewrite in Svelte 5 (using runes for reactivity) and JSDoc (instead of TS)
  • Rewrite with latest TailwindCSS
  • Refactor CSS removing useless classes
  • Refactor HTML removing useless tags
  • Added <meta name="color-scheme" content="dark light" /> to <head>
  • Added PUBLIC_URI env var (for frontend)
  • ^ Added opensearch.xml endpoint
  • Switch image preview to use thumbnails - [BUG] Preview not working *sometimes* #181
  • Switch category to parameter (query takes precedence)
  • Sort query params before every fetch (highers the chance of a cache hit)
  • Added an indicator when API returns 0 results
  • Added timing of API fetch - [FEAT] Add a "results retrieved in x seconds" thingy #149
  • Made everything work w/o Javascript (removed response streaming, paginator for general and images, infinite loading when JS is available with preloading)
  • Shorten description to 500 chars and make it show full on button ... instead of on hover (w/ JS only, could have fallback to full desc and line-clamp-6 and onhover line-clamp-none) - [BUG] Long descriptions #229
  • Prevent empty query from fetching API (w/ JS only, could have fallback to input "required")
  • Focus searchbox on reset (w/ JS only, could have fallback to input type "search")
  • Added / animation to indicate loading
  • Added /search animation for general results to indicate loading
  • Added /search animation for images results to indicate loading
  • Switched to custom dark theme toggle instead of mode watcher (should be much improved upon with themes rewrite)

Investigate:

  • Wrong origin set, which breaks universal load func when running on server (it's set to the S3 bucket url instead of the Cloudfront host which is hearch.co)
  • Timing being overwritten during hydration (w/ universal loading only) - Because of current CORS issues a server load function is being used which doesn't have this bug, but it can still be seen here

@aleksasiriski aleksasiriski marked this pull request as draft May 8, 2024 17:33
…latency to that alongside API fetch"

This reverts commit afe67b8.
@aleksasiriski aleksasiriski marked this pull request as ready for review May 19, 2024 19:43
@aleksasiriski aleksasiriski merged commit 216cd6d into main May 19, 2024
3 checks passed
@aleksasiriski aleksasiriski deleted the as/feat/svelte-5-rewrite branch May 19, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant