Dictation: a mic button in the add field uses the Web Speech API (es-AR) and
shows the partial transcript in the input. POST /api/voice/split asks Gemma 4
(Gemini API, plain fetch) to split the sentence into one string per item,
written the way the existing parser reads typed text; each string then goes
through the usual add flow. The endpoint never fails because of the model:
missing key, timeout, 429 or invalid JSON fall back to splitting on commas,
semicolons, " y " and " e ". A toast offers "Deshacer" for the whole dictation;
if the request fails, the transcript is added as a single item.
UI: "+" instead of the search icon, quantity tags ("2 L", "×12", "1 kg"), the
list name with a list switcher and the pending/bought count in the header,
"Comprados (N)" folded by default, and a bottom sheet to edit name, quantity
(− / + and unit), note and delete. PATCH items now accepts a name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
1.2 KiB
JSON
61 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://turborepo.com/schema.json",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
|
"outputs": ["dist/**"],
|
|
"env": ["VITE_API_URL"]
|
|
},
|
|
"lint": {},
|
|
"typecheck": {},
|
|
"test": {
|
|
"env": [
|
|
"NODE_ENV",
|
|
"DATABASE_URL",
|
|
"BETTER_AUTH_SECRET",
|
|
"BETTER_AUTH_URL",
|
|
"CORS_ORIGIN",
|
|
"RESEND_API_KEY",
|
|
"MAIL_FROM",
|
|
"WEB_APP_URL",
|
|
"GEMINI_API_KEY",
|
|
"GEMINI_MODEL",
|
|
"GEMINI_TIMEOUT_MS"
|
|
]
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true,
|
|
"passThroughEnv": [
|
|
"DATABASE_URL",
|
|
"PORT",
|
|
"CORS_ORIGIN",
|
|
"BETTER_AUTH_SECRET",
|
|
"BETTER_AUTH_URL",
|
|
"NODE_ENV",
|
|
"RESEND_API_KEY",
|
|
"MAIL_FROM",
|
|
"WEB_APP_URL",
|
|
"GEMINI_API_KEY",
|
|
"GEMINI_MODEL",
|
|
"GEMINI_TIMEOUT_MS",
|
|
"VITE_API_URL"
|
|
]
|
|
},
|
|
"db:generate": {
|
|
"cache": false,
|
|
"env": ["DATABASE_URL"]
|
|
},
|
|
"db:migrate": {
|
|
"cache": false,
|
|
"env": ["DATABASE_URL"]
|
|
},
|
|
"db:studio": {
|
|
"cache": false,
|
|
"persistent": true,
|
|
"env": ["DATABASE_URL"]
|
|
}
|
|
}
|
|
}
|