mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 19:26:42 +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
|
|
@ -32,6 +32,8 @@
|
|||
isMobile?: boolean;
|
||||
/** Hide the entire bar (e.g. immersive mode) */
|
||||
hidden?: boolean;
|
||||
/** Locale for syntax highlighting (e.g., 'de', 'en') */
|
||||
locale?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
|
|
@ -53,6 +55,7 @@
|
|||
showCalendarLayers = false,
|
||||
isMobile = false,
|
||||
hidden = false,
|
||||
locale = 'de',
|
||||
}: Props = $props();
|
||||
|
||||
const flyConfig = { duration: 250, easing: quintOut, y: 40 };
|
||||
|
|
@ -141,6 +144,7 @@
|
|||
{searchingText}
|
||||
{createText}
|
||||
{appIcon}
|
||||
{locale}
|
||||
bottomOffset="0px"
|
||||
hasFabRight={showCalendarLayers}
|
||||
{defaultOptions}
|
||||
|
|
|
|||
|
|
@ -473,6 +473,7 @@
|
|||
searchingText="Suche..."
|
||||
createText="Erstellen"
|
||||
appIcon="calendar"
|
||||
locale={$locale || 'de'}
|
||||
defaultOptions={calendarOptions}
|
||||
selectedDefaultId={selectedDefaultCalendarId}
|
||||
defaultOptionLabel="Standard-Kalender"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue