Feat/ai autcompletion#38
Conversation
…up isn't blocked on polar set up
…ries - Add autofill button (definition, root, morphology) on both add and edit pages - Add separate "Generate example" button in the examples section - Use gpt-4o via Cloudflare AI Gateway with caching for autofill, no-cache for examples - Add layered rate limiting (5/min, 50/hr, 150/day) with array support in middleware - Gate AI features behind Pro plan with tooltips for non-Pro users - Add error toasts for rate limits and failures - Fix inflection/gender Select components to use controlled `value` prop - Improve AI prompt: Arabic-only definitions, attested plurals only, omit gender for masadir - Remove unused AI adapter packages (anthropic, gemini, openai) - Add shimmer loading animation - Translate all new strings to Arabic Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add revlog recording for flashcard reviews and backlog clearing via new stats API routes. Fix Eden Treaty input types resolving as `any` by installing @types/bun in the web app (elysiajs/eden#189) and pinning elysia to 1.4.27 to deduplicate the package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace raw SQL queries and prepared statements with Drizzle's query builder for the clearBacklog generator. This gives us proper type inference on query results (e.g. direction is now correctly typed without manual casting). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fuzzy tolerance was calculated from the raw input length, but Orama applies it against stemmed tokens in the index. Arabic words that stem shorter (e.g. مهرجان→مهرج) got tolerance=2 on a 4-char stem, matching nearly everything. Also replaced exact:true with tolerance:0 since exact:true bypasses stemming on the query and never matched stemmed index tokens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sync-wasm doesn't support ON DELETE CASCADE, so flashcard rows were orphaned when a dictionary entry was deleted. This caused empty flashcards to appear in the review queue until the next remote sync. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- ts-ignore Polar SDK deep import that fails under Bundler moduleResolution - Add explicit return in userRateLimit middleware to satisfy noImplicitReturns - Cast response type in http-logger to access status property - Guard against undefined type in autofill mutation for add/edit routes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying bahar with
|
| Latest commit: |
1955a4d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5555bc65.bahar-5xu.pages.dev |
| Branch Preview URL: | https://feat-ai-autcompletion.bahar-5xu.pages.dev |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bahar-marketing | 1955a4d | Commit Preview URL | Apr 02 2026, 12:53 AM |
No description provided.