bayan-api / src /js

Commit History

Update extension UI, app pipeline and model loaders
9c49fff

youssefreda9 commited on

Fix 30 NLP edge cases in Grammar, Spelling, and Punctuation (Phase 10 results and Extension UI improvements)
be32617

youssefreda9 commited on

feat(extension): update icons, fix logo in ui, and improve content script positioning/observers
e58b76f

youssefreda9 commited on

chore: revert frontend UI changes to 7aa0d90 to fix layout blowout
078df28

youssefreda9 commited on

fix: format toolbar wrapping and ignore all button logic
9751dc0

youssefreda9 commited on

fix: improve score sparkline aesthetics
b2519df

youssefreda9 commited on

fix: dismissAllFiltered bug, and make editor layout exactly 100vh with isolated internal scrolling
7fad09c

youssefreda9 commited on

Fix error filtering logic (add data-type to suggestion-card, fix querySelectors)
f3e25f2

youssefreda9 commited on

Wire up all 8 missing UI elements: Arabic tools dropdown, paragraph spacing, typewriter mode, version history buttons, error chart + sparkline hooks
c1ede9b

youssefreda9 commited on

Fix renderer.js null safety, rename duplicate walkTextNodes in format.js to avoid conflict
646c1ab

youssefreda9 commited on

Implement all 19 remaining UI features: toolbar tools, find/replace, focus mode, error tabs, donut chart, version history, Arabic tools, tab animations, etc.
76c4caf

youssefreda9 commited on

Enhanced toolbar: tab icons, section labels, custom tooltips, lists, RTL/LTR, link, line height
bf3ee58

youssefreda9 commited on

UI/UX: Add Quran standalone tab, summarize textarea, floating selection bar, fix clear editor, remove duplicate button
1f8ed9d

youssefreda9 commited on

Audit fixes: narrow FIX-35 suffixes, raise FIX-37 threshold, remove duplicate sort
417db6e

youssefreda9 commited on

FIX-32b: Add missing reverse sort in applyAllSuggestions
1502667

youssefreda9 commited on

FIX-33/34/35: Fix infinite loop — grammar corruption + spelling conflict
03cd504

youssefreda9 commited on

FIX-32: Fix word duplication bug in website frontend
f1671d1

youssefreda9 commited on

feat: Complete ALL plan items — gradient tokens, nav scroll glow, focus rings, dropdown keyboard nav, color reset, network delay indicator
7dcbabe

youssefreda9 commited on

fix: Correct toast types (warning/error) + analyze API error toast + cleanup
b201fcd

youssefreda9 commited on

feat: Custom confirm dialog for doc delete + improved empty state component
2cee1f0

youssefreda9 commited on

feat: Apply All button shows count + empty states already functional
edade2f

youssefreda9 commited on

fix: add undo support for autocomplete suggestions
85a2596

youssefreda9 commited on

fix: unified undo/redo - toolbar+keyboard use same stack, works with typing+formatting+Quran apply
cc7b377

youssefreda9 commited on

fix: Ctrl+Z/Y undo/redo works with Arabic keyboard (e.code instead of e.key)
bb8d753

youssefreda9 commited on

fix: placeholder no longer shows over quran-applied text
6285a1c

youssefreda9 commited on

fix: quran text excluded from analysis models + styled ref + score preserved
6453bf2

youssefreda9 commited on

feat: apply includes surah ref + quran-applied span protects from analysis models
5bb4bf0

youssefreda9 commited on

fix: tooltip shows original→correction format instead of confusing label
1052ad6

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

fix: prevent analyze loop - skip redundant API calls when text unchanged
5a4cea7

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

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 ✅
23b1721

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
9eaed94

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.
37fc5f3

youssefreda9 commited on

fix: Strip HTML formatting on paste into editor - Added paste event handler that converts clipboard to plain text - Prevents rich text styling (colors, opacity, fonts) from being carried over - Preserves paragraph structure with line breaks - Fixes ghost formatting when pasting from chat or web pages
df46576

youssefreda9 commited on

fix: Re-index suggestion spans after dismiss (keep as-is) - After filtering dismissed suggestion from array, span data-suggestion-id indices became stale - Adjacent error words became unclickable because findSuggestionById used wrong index - Now re-indexes all remaining spans to match updated array positions
383cd0a

youssefreda9 commited on

feat: Summary UI improvements + PDF fix - Swap short/long labels on summary length slider (RTL: long left, short right) - Remove 'تلخيص النص كاملاً' checkbox and button - Replace single export button with dropdown (TXT/DOCX/PDF) in summary - Hide format toolbar when on summary tab, show on writing tab - Fix PDF export freeze: use foreignObjectRendering:false + lower scale - Add loading toast during PDF export - Add summary DOCX and PDF export functions
010e380

youssefreda9 commited on