mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:41:08 +02:00
feat: unify QuickInputBar across all apps with locale + deferSearch
- Add `locale` prop to all 6 apps using QuickInputBar (todo, contacts, zitare, citycorners, questions, calendar) - Enable `deferSearch` on apps with create flow (contacts, zitare, questions) to match todo behavior - Pass locale through Calendar's UnifiedBar wrapper - Questions: default to 'en' locale (English-first app) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
534b55b566
commit
436e92c560
6 changed files with 15 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
import { browser } from '$app/environment';
|
||||
import { locale } from 'svelte-i18n';
|
||||
import { authStore, collectionsStore, questionsStore } from '$lib/stores';
|
||||
import { apiClient } from '$lib/api/client';
|
||||
import { questionsApi } from '$lib/api/questions';
|
||||
|
|
@ -212,9 +213,12 @@
|
|||
placeholder="New question or search..."
|
||||
emptyText="No questions found"
|
||||
searchingText="Searching..."
|
||||
searchText="Search"
|
||||
onCreate={handleCreate}
|
||||
onParseCreate={handleParseCreate}
|
||||
createText="Create"
|
||||
deferSearch={true}
|
||||
locale={$locale || 'en'}
|
||||
appIcon="help-circle"
|
||||
bottomOffset={isMobile ? '70px' : '70px'}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue