keegan
(Keegan George)
1 مايو 2026، 10:13م
5
شكرًا لك يا لي!
لقد قمت ببعض الإصلاحات في وقت مبكر من صباح اليوم:
main ← ux-improve-ai-bot-composer
merged 05:18PM - 01 May 26 UTC
Previously, the AI bot docked composer showed the formatting toolbar by default,… had no visual affordance for scrolling to new content during streaming, and incorrectly reported a streaming-in-progress state after page refresh when the stream had already completed (caused by replaying a stale message bus chunk on subscribe).
This change hides the toolbar behind an animated toggle button, adds a scroll indicator above the composer (animated dots when streaming, chevron-down otherwise), moves the resize handle inside the editor box, suppresses the scroll fade gradient when already at the bottom of the page, and fixes the stale streaming state by detecting when a replayed message bus chunk refers to a post already rendered without a .streaming class.
https://github.com/user-attachments/assets/bae788d1-2105-4c47-93c1-08bb58dfd850
وأعددت طلب سحب (PR) يحتوي على بعض الإصلاحات والتحسينات بناءً على ما ذكرته هنا:
main ← docked-composer-patch
opened 08:07PM - 01 May 26 UTC
Previously, the AI bot docked composer had several mobile issues — the keyboard … covered the input, the timeline widget floated awkwardly, the layout had a misaligned left margin, and the edit pencil was completely broken because `#reply-control` was hidden unconditionally.
This change fixes keyboard handling by tracking visualViewport to position the composer above the software keyboard, hides the timeline/progress widget on mobile, removes the desktop content offset on small screens, allows the floating composer to appear for post edits, and adds left padding to prevent text from overlapping the toolbar toggle button.
| Before | After |
| ------ | ----- |
| https://github.com/user-attachments/assets/521768fb-7dbd-4dad-9c86-78f4a86db815 | https://github.com/user-attachments/assets/cf008970-03b6-4b70-adac-67a7d3746101 |
بمجرد دمج ذلك، سيتم حل مشكلة عدم القدرة على التعديل بالإضافة إلى تلك الأخطاء المتعلقة بالجوال.
بشأن هذا:
كان هذا في النهاية قرارًا تصميميًا. يُقصد بـ RTE أن يكون الطريقة الأساسية لاستخدام هذا المحرر المثبت، ومع ذلك، إذا فضلت الماركداون، فهو متاح، ولكن نظرًا لعدم توفر مساحة كافية، فإننا لا ندرج المعاينة. عندما قمت بتنفيذه لأول مرة، كان لدي زر لتبديل المعاينة تشغيلًا/إيقافًا، ولكن نظرًا لأن هذا كان في الأساس نفس تبديل RTE، فقد قمت بإزالته.
أيضًا بخصوص هذه النقاط:
Lilly:
عند محاولة اقتباس البوت، يبدو أن ذلك يكسر الشريط الجانبي إلى حد ما
في موقع Meta - يترك فجوة ضخمة ويختفي أحيانًا؛ وفي منتداي، يختفي الشريط الجانبي دائمًا
في بعض الأحيان، أدى الاقتباس أيضًا إلى حبسي في محادثة البوت بحيث أصبح زر العودة إلى المنتدى معطلًا
الاختفاء أحيانًا في المحرر بمجرد البدء في الكتابة
للأسف، لم أتمكن من إعادة إنتاج هذه المشاكل. إذا كان بإمكانك إعادة إنتاجها بعد كل هذه التغييرات، فيرجى إعلامي بذلك.
شكرًا لك!
إعجابَين (2)