Skip to content

feat(WebApp): "בקשו מהסוכן לחלץ" — הכפתור של החילוץ בחיפוש בתיעוד נראה כמו כפתור ומזמין ללחוץ - #3756

Merged
amirbiron merged 1 commit into
mainfrom
claude/awesome-turing-qv9tz2
Nov 29, 2026

Conversation

@amirbiron

@amirbiron amirbiron commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

✨ תיאור קצר

הכפתור "חלץ" מעל התוצאות של החיפוש בתיעוד נראה כמו עוד שורה מהתיעוד עם מסגרת. עכשיו הוא "בקשו מהסוכן לחלץ": באותו מראה של "לוחות פתקים" בשורת הקטגוריות, עם אייקון נצנוצים ועם נצנוץ עדין שמזמין ללחוץ. בלחיצה הוא קופץ, מתכווץ לרוחב של "מחלץ", ו"הסוכן חושב" מתחיל רק כשהכיווץ נגמר.

📦 שינויים עיקריים

  • קוד (Backend)
  • בוט טלגרם
  • מסד נתונים/מיגרציות
  • תיעוד (docs/)
  • DevOps/CI/CD

פירוט נקודות (רשימת תבליטים):

  • המראה: הכפתור נושא את המחלקות של "לוחות פתקים" (btn btn-secondary btn-icon), וההקטנה של .docs-extract-btn (טקסט 0.9rem, משקל 500 וריפוד קטן) הוסרה. כך הגודל והצבעים מגיעים מאותו מקור בכל ערכה. בניתי אותו לפי המקור, ולא העתקתי ערכים.
  • האייקון: SVG שמצויר בקוד (DOCS_EXTRACT_ICON ב-global_search.js). ב-Font Awesome 6.4.0 החינמי שהאתר טוען (בדקתי את ה-CSS מה-CDN) אין fa-sparkles, ויש רק נצנוצים עם שרביט, יד או ספריי. האפשרות הזו נבחרה עם המשתמש.
  • הנצנוץ (command-button של finesse, ב-CSS בלי React): שכבת ::after עם גרדיאנט בזווית 105°, background-size: 250%, ו-2.8 שניות linear בלולאה, משמאל לימין. הצבע הוא חצי --primary וחצי currentColor, בעוצמה של 35%. --primary לבדו נבלע ב-classic וב-ocean ולא נראה בניגודיות גבוהה (נבדק בצילומים של 9 ערכות). הנצנוץ כבוי בזמן חילוץ וב"פחות תנועה". זה animation ולא transition.
  • הלחיצה: הכפתור קופץ (MOTION.extractPress, הגדלה ל-1.06 עם cubic-bezier(.2,1.6,.3,1)) ומתכווץ לרוחב של "מחלץ" (morph-popover, MOTION.extractMorph), והתוכן מופיע בהדרגה. "מחלץ" זז (is-thinking) רק אחרי שהכיווץ נגמר. בסוף הכפתור מתרחב בחזרה. הקפיצה מבוטלת לפני ההרחבה, כי המדידה כוללת את ה-scale שלה.
  • AnimUtils: animateHeight נעשתה פונקציה אחת לשני צירים (animateSize), ונוסף השם animateWidth. ההתנהגות של animateHeight לא השתנתה: השוויתי אותה לגרסה הקודמת על אותם תרחישים, עם ובלי "פחות תנועה".
  • תיעוד: docs/webapp/global-search.rst, docs/webapp/theming_and_css.rst (רשימת AnimUtils), ויומן העדכונים.

סטיות מהבריף, שכדאי לדעת עליהן:

  • משך הקפיצה הוא 800ms ולא כ-650ms. בקומפוננטה ה-650 הם ה-setTimeout שמחזיר את היעד ל-1, ואחריו עוד 150ms של ירידה (משך ברירת המחדל של transition ב-Tailwind, שבדקתי ב-3.4.17 וב-4.1.11).
  • background-repeat: no-repeat: בקומפוננטה ברירת המחדל היא repeat, ואז עותק שני של הפס נכנס בסוף כל סבב ונקטע.
  • הצבע: מהערכה, ולא הטורקיז הקבוע, כמו שהבריף ביקש. אבל לא --primary לבדו (ההסבר למעלה).
  • הקפיצה והכיווץ רצים יחד. הבריף ביקש קפיצה בלחיצה, וההחלטה המשותפת הוסיפה כיווץ. הם לא מתנגשים, כי הקפיצה היא transform והכיווץ הוא רוחב.

שני הבדלים מול "לוחות פתקים" שנשארו: הם מגיעים מסוג האלמנט ולא מהמחלקות. "לוחות פתקים" הוא <a>, והכפתור הוא <button>. בניגודיות גבוהה high-contrast.css נותן לכל button גבול של 2px. בערכה מיובאת dark-mode.css צובע כל a ב---primary. הכפתור זהה לכפתור "נקה" שבאותו עמוד בכל 9 הערכות.

🧪 בדיקות

  • Unit

  • Integration (דפדפן)

  • Manual (מדידה וצילומים בכרומיום)

  • 6 בדיקות דפדפן חדשות ב-tests/test_docs_search_card_browser.py: המראה מול "לוחות פתקים" בכל הערכות המובנות ובשתי מיובאות; כיוון הנצנוץ, צבע שנגזר מ---primary, והנצנוץ כבוי בזמן חילוץ; כיווץ וקפיצה, ו"מחלץ" זז רק אחרי הכיווץ; חילוץ שנגמר בזמן הקפיצה; "פחות תנועה"; וטלפון ברוחב 320px. עדכנתי 2 בדיקות שבדקו את הטקסט "חלץ".

  • הרצת בקרה על הקוד הקודם: כל 6 החדשות ושתי המעודכנות נכשלו. מוטציה: בלי ביטול הקפיצה, ההרחבה מכוונת ל-224px במקום ל-211px, והבדיקה נכשלת.

  • ⚠️ איך הורצו: בסביבה הזו אין מונגו, והורדה והפעלה שלו נחסמו. לכן הבדיקות רצו מול הוובאפ האמיתי (תבנית, CSS, JS ו-CSP), כשרק רשימת הקבצים של /files הוחלפה ברשימה ריקה, בתוסף pytest מקומי מחוץ לריפו. 11/11 בדיקות החילוץ עוברות, יציבות ב-3 הרצות. ב-CI הן ירוצו מול מונגו אמיתי.

  • לא רץ מקומית: tests/test_state_motion_browser.py, שצריך מונגו אמיתי וכותב פתקים. את animateHeight השוויתי לגרסה הקודמת בנפרד. שתי בדיקות של מדידת תמונה (test_a_short_section_is_measured_again_when_its_image_loads) נכשלות כאן בדיוק באותה שגיאה גם על הקוד הקודם (_pw_impl_instance_, תקלה של Playwright בסביבה), ולכן הן לא קשורות לשינוי.

  • לא אומת: ספארי או אייפד אמיתי.

🧪 בדיקות נדרשות ב‑PR

  • 🔍 Code Quality & Security
  • Unit Tests (3.11)
  • Unit Tests (3.12)
  • Unit Tests md-heavy (3.11)
  • Unit Tests md-heavy (3.12)

📝 סוג שינוי

  • feat: פיצ'ר חדש
  • fix: תיקון באג
  • docs: שינוי תיעוד בלבד
  • refactor: שינוי קוד ללא שינוי התנהגות
  • perf: שיפור ביצועים
  • chore/ci: תשתית/CI
  • breaking change: שינוי שובר תאימות

✅ צ'קליסט

  • הקוד עוקב אחרי הסגנון (flake8 נקי על קובץ הבדיקות)
  • בדיקות רצות ועוברות (מקומית, בתנאים שמתוארים למעלה)
  • תיעוד עודכן (README/Docs)
  • אם נוספו ג'ובים חדשים — לא רלוונטי
  • אם נוספו/שונו משתני סביבה — לא רלוונטי
  • אם נוספו/השתנו טוקנים — לא נוסף טוקן גלובלי. --docs-extract-invite הוא טוקן מקומי של הרכיב, שנגזר מ---primary
  • אין סודות/מפתחות בקוד
  • אין מחיקות מסוכנות/פעולות על root
  • הודעת הקומיט תואמת Conventional Commits
  • CHANGELOG עודכן (docs/whats-new/2026-11.rst, 29.11.2026)
  • כל ה‑Required Checks לעיל ירוקים — ממתין ל-CI
  • צילום/וידאו UI מצורף — הצילומים נשלחו בסשן
  • עיינתי במסמכי אתר התיעוד — נתיב: docs/webapp/theming_and_css.rst (הנחיות למפתחים, אנימציות של מעבר מצב, בדיקות חובה לפני Merge, שכבות משתנים), docs/doc-authoring.rst (רשומה ב-What's New), docs/versioning-stable-anchors.rst | המשפט: "Web Animations או animation של CSS — לא transition"

🧩 השפעות/סיכונים

  • השינוי חזותי בלבד, בכפתור שמוצג לאדמין בחיפוש בתיעוד. אין שינוי בשרת או ב-API.
  • animateHeight משמשת את מיזעור הפתק, את הקבוצה בפיד ואת הצעד בצ'קליסט. ההתנהגות שלה לא השתנתה, והשוויתי אותה לגרסה הקודמת.

🔗 קישורים

  • Issues קשורים: —
  • מסמכים/מפרטים רלוונטיים: command-button ו-morph-popover ב-finesse; MDN, "Keyframe formats" (easing של מסגרת חל עד המסגרת הבאה)

🧯 סיכון / החזרה לאחור (Rollback)

  • revert לקומיט הזה. אין מיגרציות ואין שינוי בנתונים.

Generated by Claude Code

View guided diff Turn on auto-fix

…ה כמו כפתור ומזמין ללחוץ

- הכפתור נושא את המחלקות של "לוחות פתקים" (btn btn-secondary btn-icon), וההקטנה של .docs-extract-btn הוסרה. אייקון נצנוצים מצויר בקוד (DOCS_EXTRACT_ICON), כי ב-Font Awesome 6.4.0 החינמי אין נצנוצים בלי שרביט.
- נצנוץ במצב רגיל, משמאל לימין (command-button של finesse): ::after עם גרדיאנט 105°, ‏250%, ‏2.8 שניות. הצבע: חצי --primary וחצי currentColor ב-35%, כי --primary לבדו נבלע ב-classic וב-ocean ולא נראה בניגודיות גבוהה. כבוי בזמן חילוץ וב"פחות תנועה".
- בלחיצה: קפיצה (MOTION.extractPress) וכיווץ לרוחב של "מחלץ" (morph-popover, MOTION.extractMorph), ו"מחלץ" זז רק אחרי הכיווץ (is-thinking). בסוף הכפתור מתרחב בחזרה; הקפיצה מבוטלת לפני ההרחבה, כי המדידה כוללת את ה-scale שלה.
- animateHeight נעשתה פונקציה אחת לשני צירים (animateSize) עם animateWidth; ההתנהגות של animateHeight הושוותה לגרסה הקודמת על אותם תרחישים, עם ובלי פחות תנועה.
- בדיקות דפדפן: מראה מול "לוחות פתקים" בכל הערכות ובשתי מיובאות, כיוון וצבע הנצנוץ, סדר הכיווץ והקפיצה, חילוץ שנגמר בזמן הקפיצה, פחות תנועה, וטלפון צר. כולן נכשלות על הקוד הקודם.
- תיעוד: global-search.rst, ‏theming_and_css.rst, ויומן העדכונים.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U1fTK3iMhBFiRZERh2dDsX
@sourcery-ai

sourcery-ai Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Sorry @amirbiron, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 5 days and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@amazon-q-developer

Copy link
Copy Markdown

Warning

Amazon Q Developer for GitHub: end of support

On January 30, 2027, AWS will discontinue support for the Amazon Q Developer for GitHub App. New app installations will no longer be available starting November 18, 2026.

For capabilities similar to the Amazon Q Developer for GitHub App, explore Kiro and the Kiro GitHub App. For more information about the end of support, see Amazon Q Developer end-of-support announcement on the AWS DevOps Blog.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T00:45:48.930548Z 7366cc5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergestorm-vortex

Copy link
Copy Markdown

Mergestorm reviews this repository's pull requests

Every PR gets AI code review that flags real bugs before they merge. This account's 30 free credits for this monthly window are used, so reviews are paused at 7366cc5 and resume automatically on Dec 5 (UTC).

The Starter plan includes 120 credits a month.

Upgrade for more reviews →

@github-actions

Copy link
Copy Markdown
Contributor

🧯 Dangerous deletes guard report

Policy: see .cursorrules — dangerous deletions are blocked unless wrapped safely.

Summary:

  • Flagged findings (blocking): 0
    0
  • Excluded matches (not blocking): 14
  • Total matches (all files): 128

Flagged findings (file:line:snippet):
(none)

Excluded matches (by path pattern)
./docs/Makefile:24:	rm -rf $(BUILDDIR)
./docs/DOCUMENTATION_GUIDE.md:453:rm -rf _build
./Dockerfile:67:    rm -rf /var/lib/apt/lists/*; \
./Dockerfile:162:    rm -rf /var/lib/apt/lists/*; \
./webapp/static/js/md_preview.bundle.js.map:4:  "sourcesContent": ["// Markdown-it plugin to render GitHub-style task lists; see\n//\n// https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments\n// https://github.com/blog/1825-t … [truncated]
./node_modules/mermaid/dist/mermaid.min.js:1524:`,"getStyles"),c1e=RQe});var h1e={};dr(h1e,{diagram:()=>NQe});var NQe,f1e=N(()=>{"use strict";$ge();a1e();l1e();u1e();NQe={parser:Fge,db:n1e,renderer:o1e,styles:c1e}});var m1e,g1e=N(()=>{"use  … [truncated]
./node_modules/mermaid/dist/chunks/mermaid.esm.min/chunk-4HFYJGYH.mjs.map:4:  "sourcesContent": ["{\n  \"name\": \"mermaid\",\n  \"version\": \"11.12.0\",\n  \"description\": \"Markdown-ish syntax for generating flowcharts, mindmaps, sequen … [truncated]
./node_modules/mermaid/dist/chunks/mermaid.esm.min/chunk-4HFYJGYH.mjs:1:var r={name:"mermaid",version:"11.12.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graph … [truncated]
./node_modules/mermaid/dist/chunks/mermaid.core/chunk-KS23V3DP.mjs.map:4:  "sourcesContent": ["{\n  \"name\": \"mermaid\",\n  \"version\": \"11.12.0\",\n  \"description\": \"Markdown-ish syntax for generating flowcharts, mindmaps, sequence  … [truncated]
./node_modules/mermaid/dist/chunks/mermaid.esm/chunk-2M32CCKP.mjs.map:4:  "sourcesContent": ["{\n  \"name\": \"mermaid\",\n  \"version\": \"11.12.0\",\n  \"description\": \"Markdown-ish syntax for generating flowcharts, mindmaps, sequence d … [truncated]
./node_modules/mermaid/dist/mermaid.js.map:4:  "sourcesContent": ["/**\n* Default values for dimensions\n*/\nconst defaultIconDimensions = Object.freeze({\n\tleft: 0,\n\ttop: 0,\n\twidth: 16,\n\theight: 16\n});\n/**\n* Default values for tr … [truncated]
./node_modules/mermaid/dist/mermaid.min.js.map:4:  "sourcesContent": ["/**\n* Default values for dimensions\n*/\nconst defaultIconDimensions = Object.freeze({\n\tleft: 0,\n\ttop: 0,\n\twidth: 16,\n\theight: 16\n});\n/**\n* Default values fo … [truncated]
./node_modules/katex/src/fonts/Makefile:139:	rm -rf pfa ff otf ttf woff woff2
./node_modules/katex/package.json:153:    "build": "rimraf dist/ && mkdirp dist && cp README.md dist && rollup -c --failAfterWarnings && webpack && node update-sri.js package dist/README.md",

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

כפתור חילוץ התיעוד מקבל תווית, אייקון ועיצוב חדשים. נוספו לו מעברי אנימציה למצבי מנוחה וחילוץ, תמיכה בהפחתת תנועה, API להנפשת רוחב, בדיקות דפדפן ועדכוני תיעוד.

Changes: ממשק כפתור החילוץ

Layer / File(s) Summary
תשתית אנימציית גודל
webapp/static/js/utils/animations.js, docs/webapp/theming_and_css.rst
נוספו תזמוני חילוץ ו־animateWidth. animateHeight ו־animateWidth משתמשות במימוש משותף, והתיעוד מתאר את השימוש באנימציות הגודל בכפתור.
עיצוב ומעברי מצב
webapp/static/js/global_search.js, webapp/static/css/global_search.css
הכפתור מציג אייקון ותוכן שתלוי במצבו. מעבר למצב חילוץ מעדכן את תוכן הכפתור ומנפיש את רוחבו. נוספו אפקט פס אור, אנימציות לתווית ולנקודות, וכללים למצב הפחתת תנועה.
בדיקות ותיעוד
tests/test_docs_search_card_browser.py, docs/webapp/global-search.rst, docs/whats-new/2026-11.rst
בדיקות הדפדפן מכסות ערכות נושא, אנימציות, הפחתת תנועה ומסך צר. התיעוד ויומן השינויים מתארים את הכפתור ואת מצבי האנימציה שלו.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Operator as מפעיל
  participant setDocsExtractRunning
  participant AnimUtils
  participant DocsExtractButton as כפתור החילוץ
  participant global_search.css as CSS
  Operator->>setDocsExtractRunning: הפעלת מצב חילוץ
  setDocsExtractRunning->>AnimUtils: קריאה ל-animateWidth
  setDocsExtractRunning->>DocsExtractButton: עדכון תוכן ומחלקות מצב
  DocsExtractButton->>global_search.css: החלת סגנונות לפי מחלקות המצב
  AnimUtils-->>setDocsExtractRunning: סיום כיווץ או ביטול האנימציה
  setDocsExtractRunning->>DocsExtractButton: הפעלת מצב חשיבה לאחר הכיווץ
Loading

Possibly related PRs

  • amirbiron/CodeBot#3751: מוסיף את כפתור חילוץ התיעוד ואת נקודת הקצה שהכפתור מפעיל.
  • amirbiron/CodeBot#3752: משתמש ב־animateHeight ובתזמוני MOTION, שאותם העדכון משנה באותו כלי אנימציה.
Merge Risk: Minimal · up to 7366c

This updates the docs-search extraction button's look and animations. It also consolidates the shared height animation helper and adds a width variant. No concrete defect was found in the reviewed changes, so the risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed הכותרת מתארת את השינוי המרכזי: הכפתור של החילוץ בחיפוש בתיעוד הפך לכפתור ברור עם הטקסט "בקשו מהסוכן לחלץ". התיאור מתאים לשינויים בקבצי ה-CSS וה-JS, לבדיקות הדפדפן ולתיעוד. הכותרת לא מזכירה את שינויי A…
Description check Passed התיאור כולל את כל הסעיפים שבתבנית: תיאור קצר, שינויים עיקריים, בדיקות, סוג שינוי, צ'קליסט, השפעות/סיכונים, קישורים ותוכנית Rollback. התיאור מפורט מאוד וכולל גם סטיות מהבריף, מגבלות בדיקה וסיכונים ידוע…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

הכותרת מתארת את השינוי המרכזי: הכפתור של החילוץ בחיפוש בתיעוד הפך לכפתור ברור עם הטקסט "בקשו מהסוכן לחלץ". התיאור מתאים לשינויים בקבצי ה-CSS וה-JS, לבדיקות הדפדפן ולתיעוד. הכותרת לא מזכירה את שינויי AnimUtils, אבל זה חלק משני ואין צורך לכלול אותו.

Full details: Description check

Explanation

התיאור כולל את כל הסעיפים שבתבנית: תיאור קצר, שינויים עיקריים, בדיקות, סוג שינוי, צ'קליסט, השפעות/סיכונים, קישורים ותוכנית Rollback. התיאור מפורט מאוד וכולל גם סטיות מהבריף, מגבלות בדיקה וסיכונים ידועים. יש כמה פריטים בצ'קליסט שסומנו כלא רלוונטיים או ממתינים ל-CI, וזה מקובל. הקישור ל-Docs Preview לא מולא, אבל הוא לא נדרש בהכרח.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

כפתור חדש נדלק באור,
רוחבו מתכווץ וחוזר,
התווית מספרת: מחלץ,
גם בתנועה מופחתת הכול שקט,
Claude Code כתב קוד מדויק — והכפתור מוכן לחלץ.
CodeKeeper forever 💫

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2124835b-c242-430e-a5bd-14ab7b2a3ed9
Commits

Reviewing files that changed from the base of the PR and between dbaf8e9 and 7366cc5.

Files selected for processing: 7

  • docs/webapp/global-search.rst
  • docs/webapp/theming_and_css.rst
  • docs/whats-new/2026-11.rst
  • tests/test_docs_search_card_browser.py
  • webapp/static/css/global_search.css
  • webapp/static/js/global_search.js
  • webapp/static/js/utils/animations.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

This PR refactors the docs extract button ("חלץ") into a fully styled, animated button ("בקשו מהסוכן לחלץ") with a shimmer invitation effect, a spring-press animation on click, a width morph transition, and a "thinking" shimmer while the agent runs. The implementation is thorough and carefully engineered.

No blocking defects were found. Key correctness aspects verified:

  • Security: All server-provided content (section titles, paths, URLs) continues to pass through escapeHtml before being inserted via innerHTML. The docsSiteUrl HTTPS-only validation is preserved. All fetch calls remain credentials: 'same-origin'.
  • Race-condition safety: The searchSeq / seq guards are correctly applied throughout both performDocsSearch and performDocsExtract, including in the finally block (if (seq === searchSeq) setDocsExtractRunning(button, false)), so a late-arriving extract response after a new search cannot write to the DOM.
  • animateHeight backward compatibility: The refactor from animateHeight → animateSize(el, 'height', ...) with animateHeight as a passthrough wrapper preserves identical behavior for all existing callers (note-fold, group-fold, checklist-step).
  • prefers-reduced-motion: Both the CSS (content: none on ::after, animation: none on the shine/dot animations) and the JS (canAnimate checks in animateSize / play) correctly suppress all motion when the user prefers reduced motion.
  • DOM attachment guard: setDocsExtractRunning is called on a potentially detached button (after removeDocsExtract()) only within the seq === searchSeq guard, so the morph animation is never triggered on a detached node.
  • CSS specificity: The new .docs-extract-btn::after shimmer layer correctly uses ::after (not an extra background-image on the button itself) to avoid being reset by dark-mode.css's background shorthand override on .btn-secondary.
  • Test coverage: 6 new browser tests covering the visual appearance, shimmer direction/color, morph animation, press-cancel-on-expand, reduced-motion, and narrow-phone layout. The existing extract tests are correctly updated to use the new EXTRACT_LABEL/RUNNING_LABEL constants.

The PR is well-documented and the deviations from the brief are clearly explained. Ready to merge pending CI green.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@gitar-bot

gitar-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@llamapreview llamapreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LlamaPReview — Review skipped

This repository has used its free review capacity for today (3 reviews per calendar day in China Standard Time, UTC+08:00). Capacity resets at 2026-11-29T16:00:00Z.

LlamaPReview is free for public repositories and funded personally, so a daily bound keeps one high-volume repository from consuming the shared budget. Nothing about this pull request was judged. You can also run LlamaPReview yourself with your own provider key — see Self-hosting.

No model-driven code review was run; this result does not assess whether the PR is ready to merge.

@github-actions

Copy link
Copy Markdown
Contributor

⏱️ Performance report

(No performance test durations collected. Mark tests with @pytest.mark.performance.)

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation has been built successfully!

To view locally:

  1. Download the artifacts
  2. Extract the zip file
  3. Open index.html in your browser

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

if (running) button.classList.add('is-thinking');
return;
}
const morph = AU.animateWidth(button, swap, Object.assign({ clip: true }, AU.MOTION.extractMorph));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Inline object creation on every call

Object.assign({ clip: true }, AU.MOTION.extractMorph) creates a new object each time setDocsExtractRunning runs. Since AU.MOTION.extractMorph is frozen, consider defining a constant like const EXTRACT_MORPH_CLIP = Object.freeze({ ...Object.assign({}, AU.MOTION.extractMorph), clip: true }); at module scope and reusing it.

const from = el.getBoundingClientRect().height;
const running = heightAnims.get(el);
// ``cancel`` הגודל קופץ לערך האמיתי, והמדידה של "אחרי" לא צריכה לכלול את הישנה.
const from = el.getBoundingClientRect()[axis];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Bracket notation for property access is obscure

el.getBoundingClientRect()[axis] works because DOMRect has height/width properties, but the bracket notation with a variable is hard to read. Consider const rect = el.getBoundingClientRect(); const from = axis === 'height' ? rect.height : rect.width; for clarity.

if (running) running.cancel();
mutate();
const to = el.getBoundingClientRect().height;
const to = el.getBoundingClientRect()[axis];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Bracket notation for property access is obscure

Same as previous comment — el.getBoundingClientRect()[axis] would be clearer with explicit property access.

font-size:0.9rem;
font-weight:500;
gap:0.4rem;
--docs-extract-invite: color-mix(in srgb, color-mix(in srgb, var(--primary) 50%, currentColor) 35%, transparent);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Nested color-mix with currentColor in pseudo-element

color-mix(in srgb, color-mix(in srgb, var(--primary) 50%, currentColor) 35%, transparent) is correct (currentColor inherits from the button in ::after), but the nesting is complex. Consider adding a comment explaining the effective result: "35% opacity mix of 50% primary + 50% button text color" for future maintainers.

@amirbiron
amirbiron merged commit be5dc93 into main Nov 29, 2026
45 of 46 checks passed
amirbiron pushed a commit that referenced this pull request Nov 29, 2026
הקומיט שבשרת זהה ל-squash שלו ב-main, ולכן המיזוג נרשם ב-'ours' ולא משנה אף קובץ. כך הענף ממשיך מהקומיט שבשרת, בלי force push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U1fTK3iMhBFiRZERh2dDsX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants