bayan-api / src

Commit History

UI: swap nav order - pricing before editor (الأسعار then المحرر)
c7dd2cb
Running

youssefreda9 commited on

UI: remove pricing from nav, fix dialect colors to match theme, remove placeholder example
44c75fd

youssefreda9 commited on

revert: restore backend to 1a76471, keep all UI/UX improvements
28c3ee2

youssefreda9 commited on

revert: restore backend/model files to cf07939 state, keep UI/UX changes only
99bb8aa

youssefreda9 commited on

fix: tooltip shows original→correction format instead of confusing label
040028b

youssefreda9 commited on

fix: accept ص↔س/ض↔ظ/ذ↔ز spelling corrections (المدرصة→المدرسة), fix punctuation dup regex
347cc45

youssefreda9 commited on

fix: grammar/quran icons different, tooltip no strikethrough, punctuation no duplicate dots
2fbc71d

youssefreda9 commited on

UI: nav logo, bayyinah hover, quran icon, hero autocomplete shadow, clean tooltip, fix punctuation dup + hamza كان
9956549

youssefreda9 commited on

Full UI/UX modernization: fix hero examples, pricing beta, Apply All cursor/format fix, design polish
6c1e02d

youssefreda9 commited on

fix: block grammar كان→كأن + punctuation mid-word split (الدفت.ر)
035ff93

youssefreda9 commited on

feat: P1-P3 all 8 items - ta marbuta fix, UI feedback, caching, rate limiting, unit tests
7d927c5

youssefreda9 commited on

fix: move Bayyinah section inside max-w-7xl container to prevent stretching
4aae586

youssefreda9 commited on

fix: replace Bayyinah icons with actual book-open-text logo SVG
299a0c1

youssefreda9 commited on

fix: features page layout + update Bayyinah color to #14919b
f3c34a5

youssefreda9 commited on

feat: add Bayyinah RAG feature to home page + features page
9c990ff

youssefreda9 commited on

fix: remove extra closing div causing gap above editor
4257578

youssefreda9 commited on

update: replace Quran example with Yusuf:2 verse
c2645e2

youssefreda9 commited on

feat: add Quran verification + Dialect conversion features (UI only, no backend)
4501e8e

youssefreda9 commited on

feat: add Autocomplete feature to home page + features page
cf07939

youssefreda9 commited on

fix: block grammar model from removing/normalizing punctuation marks
c11349d

youssefreda9 commited on

revert: remove auto re-analyze after apply - causes grammar/punctuation cycle
c10d2f1

youssefreda9 commited on

fix: prevent analyze loop - skip redundant API calls when text unchanged
73d00c9

youssefreda9 commited on

fix: instant re-analyze after apply (direct analyzeText call, no debounce)
52101bf

youssefreda9 commited on

feat: P1-P3 improvements + auto re-analyze after apply
b946dc5

youssefreda9 commited on

fix: Pipeline hardening - 37 bugs + 10 edge cases (Round 1 + Round 2)
1a76471

youssefreda9 commited on

fix(spelling): strict ortho-only filter prevents word corruption
1b16784

youssefreda9 commited on

debug(punctuation): enhanced lock logging to show which owner blocks punctuation
5504f5b

youssefreda9 commited on

fix(punctuation): allow pure punctuation changes through stage lock
fd4ec34

youssefreda9 commited on

fix(autocomplete): only trigger after space - no partial words
a4527ea

youssefreda9 commited on

feat(autocomplete): threshold=0.05 + max 3 suggestions
e8c0cc2

youssefreda9 commited on

fix(autocomplete): replace beam search with sampling for diverse GPT-2 predictions
fb5f59a

youssefreda9 commited on

fix(autocomplete): GPT-2 now generates complete words, not BPE subword tokens
cf238dd

youssefreda9 commited on

fix(autocomplete): true context awareness - GPT-2 now adds own candidates + cache key uses 5 words
aebbd04

youssefreda9 commited on

fix(autocomplete): 3 user-reported issues - last word only, dropdown position, cursor after accept
87cfb6d

youssefreda9 commited on

fix(autocomplete): fix dropdown not showing - 3 critical bugs fixed
c789733

youssefreda9 commited on

feat(NLP-4): AutoComplete integration — hybrid bigram + GPT-2
c5cd479

youssefreda9 commited on

fix(critical): stop spelling from corrupting correct words + fix pronoun agreement + reject hallucinations
8c081a3

youssefreda9 commited on

fix: re-label grammar spelling fixes + handle prefix in hamza whitelist
d298517

youssefreda9 commited on

fix: all model bugs — S1 S2 S3 G1 P1 (6 fixes across 4 files)
5739cc3

youssefreda9 commited on

fix: QA sweep — 6 issues resolved (sidebar chips, corrected field, input sanitization, punc cap, docs, tests)
d708991

youssefreda9 commited on

fix: Tooltip shows no correction buttons for grammar/punctuation — empty array is truthy in JS
986038a

youssefreda9 commited on

fix: Grammar Gradio client retry with exponential backoff (3 attempts, 2s/4s/8s)
18fd927

youssefreda9 commited on

fix: Grammar retry on rate-limit + cursor position after correction
9f629f4

youssefreda9 commited on

feat: Pipeline Hardening v3.3 — stage ownership, punctuation safety, UUID migration
f9e3e99

youssefreda9 commited on

ui: Clean up editor placeholder text and alignment (top-right)
3c20b28

youssefreda9 commited on

fix: Green traffic light (fullscreen) now works - Wrong selector: .editor-main-layout → .editor-layout - Grid override: grid-template-columns: 1fr !important - Hide both docs-panel and sidebar-desktop
b3bd37c

youssefreda9 commited on

feat: Complete UI/UX audit — all 20 fixes implemented Critical: - #1 Text duplication on consecutive apply (re-index spans) ✅ - #2 Apply All button (remove confirm() dialog, direct apply) ✅ - #3 Backend suggestion categorization (noted, minor) ✅ UX Fixes: - #4 Toolbar RTL verified correct ✅ - #5 Punctuation highlight: blinking insertion marker instead of bg ✅ - #6 Document title truncation with ellipsis ✅ - #7 Sidebar scrollable (score circle visible) ✅ - #8 Empty editor placeholder RTL alignment ✅ Design: - #9 Hero CTA button contrast (border 0.35 + glow) ✅ - #10 Features demos already complete for all 4 features ✅ - #11 Pricing cards equal heights (flex layout) ✅ - #12 Footer GitHub link with icon + Arabic text ✅ - #13 Pricing button text corrected ✅ - #14 بيّنة nav link: pill badge, smaller, visually distinct ✅ - #15 Scroll-to-top already correct (st > 400) ✅ Text/Content: - #16 Arabic text verified correct (خصيصًا) ✅ - #17 Traffic lights functional (red=close, yellow=collapse, green=fullscreen) ✅ - #18 Stats font size increased ✅ - #19 Dark mode already excellent ✅ - #20 Light mode: toolbar, tabs, cards, stats all improved ✅
2d00cd6

youssefreda9 commited on

fix: UI/UX audit fixes (10 items addressed) Critical: - Fix text duplication on consecutive suggestion apply (re-index spans) - Suggestion list now updates after apply (counters + cards refresh) UX Fixes: - Sidebar scrollable (score circle always accessible) - Suggestions max-height reduced: 420→320px - Stat items: larger font + better contrast in dark mode Text: - Pricing: 'الترقية للاحترافي' → 'الترقية للخطة الاحترافية' Undo/Redo: - formatUndo/Redo now use custom stack (unified) - Formatting commands save undo state before applying - Typing tracked via debounced pushUndoStateDebounced
772d314

youssefreda9 commited on

fix: New document starts empty instead of inheriting old content Previously createDocument() used getEditorText() to save current content into the new doc. Now it creates with empty string and calls loadDocumentText('') to clear the editor.
b7efad8

youssefreda9 commited on

feat: NLP-3.5 Hardening Sprint — Performance + Overlap Resolver TASK 2: Per-stage timing instrumentation (spelling_ms, grammar_ms, punctuation_ms, total_ms) TASK 3: Smart text processing — skip AraSpell for texts > 300 chars TASK 4+5: Global overlap resolver with priority system grammar(3) > punctuation(2) > spelling(1) > autocomplete(0) Full span collision detection (exact + partial overlaps) TASK 6: AutoComplete priority hook prepared (priority=0)
25c1f6c

youssefreda9 commited on