sync: Redis caching for browse/skill API, progress bar on search, default sort by stars

- Add Redis caching to browse search results and skill detail API
- Show progress bar on homepage search
- Default sort to stars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
airano
2026-02-22 16:32:07 +03:30
parent d19113795e
commit 328520bb70
6 changed files with 73 additions and 41 deletions

View File

@@ -15,8 +15,9 @@ export function HeroSearch({ placeholder, locale }: HeroSearchProps) {
const handleSubmit = (e: FormEvent) => {
e.preventDefault();
window.dispatchEvent(new Event('progressbar:start'));
if (query.trim()) {
router.push(`/${locale}/browse?q=${encodeURIComponent(query.trim())}`);
router.push(`/${locale}/browse?q=${encodeURIComponent(query.trim())}&sort=stars`);
} else {
router.push(`/${locale}/browse`);
}