Repository navigation
fix(WebApp): "חפש" ו"ללוחות" בחיפוש הפתקים מעוצבים — note-boards.css נטען מ-base_boards.html לכל עמודי הלוחות - #3755
Conversation
…נטען מ-base_boards.html לכל עמודי הלוחות
- base_boards.html טוען את note-boards.css בבלוק extra_css, וכל עמוד שדורס את הבלוק קורא {{ super() }} במקום שבו הקובץ נטען אצלו. בלוח ובארכיון סדר הטעינה לא השתנה (נבדק בכרומיום).
- "חפש" מקבל ב-notes-search.css את גודל הטקסט ואת הגובה של השדה שלידו.
- a.board-action לוקח את צבע הטקסט והשקיפות של הכפתור גם בערכות הכהות, ובניגודיות גבוהה רקע וגבול של כפתור בערכה (היה כמעט בלתי קריא).
- בדיקות: כל עמוד שיורש מ-base_boards מקבל את הקובץ פעם אחת עם ?v=, board-action רק בעמודים כאלה, ובדפדפן הקישור נראה כמו הכפתור בכל ערכה. _board_load_order פותר עכשיו {{ super() }}.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U1fTK3ExfiUe6XBNwt5cZM
|
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 reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
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. |
Mergestorm reviews this repository's pull requestsEvery 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 The Starter plan includes 120 credits a month. |
|
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 |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
There was a problem hiding this comment.
Code Review Summary
This PR correctly fixes the missing note-boards.css on the /notes/search page and resolves the low-contrast link styling issue for a.board-action in dark/high-contrast themes.
All changes are correct. No blocking defects were found:
base_boards.html: The newextra_cssblock centralisingnote-boards.cssloading is the right architectural fix. The rationale for using{{ super() }}over a new block inbase.htmlis sound and well-documented.notes_search.html: The{{ super() }}call beforenotes-search.cssis in the correct position, ensuringnote-boards.cssloads first (as documented — required becausenotes-search.cssoverrides.notes-search-box .board-action).note_board.html/note_archive.html: Both already had{{ super() }}in theirextra_cssblocks; stylesheet load order is preserved.note_boards.html: Correctly has noextra_cssblock (only needsnote-boards.cssfrom the base).note-boards.css: The doubled-class specificity trick (a.board-action.board-action) to override[data-theme="dark"] awithout!importantis a legitimate, documented approach consistent with.ck-toast.ck-toastalready in the codebase.tests/test_mcp_note_view.py: The updated_board_load_orderfunction now correctly models Jinja's{{ super() }}resolution, fixing a silent correctness bug in the existing test helper.tests/test_note_boards_ui.py: The three new tests (test_every_page_that_extends_base_boards_is_listed,test_board_action_is_used_only_where_note_boards_css_is_loaded,test_every_board_page_loads_note_boards_css_once) provide strong regression coverage for the original bug pattern.
The PR is ready to merge.
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.
⏱️ Performance report(No performance test durations collected. Mark tests with |
📖 Documentation PreviewThe documentation has been built successfully!
To view locally:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
LlamaPReview — Verification needed
Exact-head browser evidence does not establish the phone-width rendered layout or link readability across built-in themes, including hover. These are the acceptance outcomes named by the merge posture; confirming them resolves the verification needed decision.
Exact-head CI remains unresolved (1 failed, 6 pending); no CI-dependent merge-safety claim is made.
Owner action: Run or confirm the exact-head Chromium checks for the phone layout and theme readability, including contrast in Classic.
Review details and evidence
Material unknowns
- Exact-head browser evidence does not establish the phone-width rendered layout or link readability across built-in themes, including hover. These are the acceptance outcomes named by the merge posture; confirming them resolves the verification needed decision.
LlamaPReview checks
- Reviewed changed regions in
tests/test_board_action_browser.py. - Reviewed changed regions in
webapp/templates/notes_search.html. - Reviewed changed regions in
webapp/static/css/note-boards.css. - Reviewed changed regions in
webapp/templates/base_boards.html. - Reviewed changed regions in
webapp/templates/note_board.html. - Reviewed changed regions in
webapp/templates/note_archive.html.
LlamaPReview is open source. Explore the code behind this review.
✨ תיאור קצר
/notes/searchהכפתור "חפש" הוצג בעיצוב ברירת המחדל של הדפדפן, והקישור "ללוחות" כקישור כחול עם קו. עכשיו שניהם מעוצבים כמו בשאר עמודי הלוחות, ו"חפש" בגובה ובגודל הטקסט של השדה שלידו.board-action, שמעוצב ב-note-boards.css, וכל עמוד לוחות טען את הקובץ בעצמו — ו-notes_search.htmlלא טען. עכשיוbase_boards.htmlטוען אותו לכל העמודים שיורשים ממנו, כך שעמוד לוחות חמישי לא ייפול באותו מקום.board-action("🗃️ ארכיון", "כל הלוחות", ועכשיו "ללוחות") קיבל את צבע הקישור של הערכה על הרקע של הכפתור, ובניגודיות גבוהה כמעט לא נראה (1.02:1).📦 שינויים עיקריים
פירוט נקודות:
base_boards.htmlממלא אתextra_cssעםnote-boards.css. עמוד שדורס את הבלוק קורא{{ super() }}בדיוק במקום שבו הקובץ נטען אצלו: בלוח ובארכיון סדר הטעינה לא השתנה (נמדד בכרומיום: אותו סדר גיליונות בשלושת העמודים לפני ואחרי).note_boards.htmlלא צריךextra_cssבכלל. ההנמקה, כולל למהsuper()ולא בלוק חדש ב-base.html, בהערה בראש הקובץ.notes-search.css—.notes-search-box .board-action:font-size: inherit(כמוfont: inheritשל השדה) ו-align-self: stretch, כך שהגובה נגזר מהשורה שהשדה קובע ולא ממספר שני שצריך להישאר שווה לריפוד של השדה. רק תכונות לוגיות (padding-inline).note-boards.css—a.board-action.board-action(וגם:hover) לוקח אתcolorואתopacityשל הכפתור; המחלקה כפולה כדי לגבור על[data-theme="dark"] aמ-dark-mode.cssבלי!important(התקדים.ck-toast.ck-toast). ובבלוק ה-High Contrast הקיים בקובץ — רקע שחור וגבול לבן לקישור, כמו כפתור בערכה; הטקסט נשאר צהוב עם קו, כמו כל קישור שם.tests/test_mcp_note_view.py—_board_load_orderפותר עכשיו{{ super() }}כמו Jinja (אחרת היה מפיל בשקט אתnote-boards.cssמהסדר שהוא מתיימר לשחזר). הסדר שהוא גוזר שווה לסדר שהדפדפן טען בפועל.docs/whats-new/2026-11.rst— שתי רשומות, אחת לכל תיקון.🧪 בדיקות
חדשות:
test_every_board_page_loads_note_boards_css_once(פרמטרי, 4 עמודים) — כל עמוד שיורש מ-base_boards.htmlמקבל את הקובץ פעם אחת בדיוק עם?v=, דרך הראוט (url_for) ועםtemplate_renderedשמוודא שזו התבנית הנכונה.test_every_page_that_extends_base_boards_is_listed— עמוד בן חדש שלא נוסף לרשימה נכשל.test_board_action_is_used_only_where_note_boards_css_is_loaded—board-actionבתבנית שאינה יורשת מהבסיס, או בסקריפט ב-static/js, נכשל.tests/test_board_action_browser.py(כרומיום): הקישור נראה כמו הכפתור בכל ערכה מובנית (הרשימה נגזרת מ-ALLOWED_UI_THEMES), גם בריחוף; "חפש" בגובה ובגודל הטקסט של השדה, ובטלפון ברוחבו ובלי גלילה לרוחב.הוכחה שהבדיקות מסוגלות להיכשל (ב-worktree נפרד):
notes_search.htmlנכשל (0 == 1), ובדיקת הדפדפן נכשלת.super()+ תגית כפולה ← נכשל (2); עמוד בן חדש שלא ברשימה ← נכשל;board-actionבסקריפט או בתבנית אחרת ← נכשל; רק התבניות בלי תיקון הקישור ← נכשל; בלי כלל ה-High Contrast ← נכשל; בלי הצבע של הקישור ← נכשל; בלי גודל הכפתור ← נכשל.ריצות: 2024 בדיקות שסורקות תבניות ו-CSS עברו; 3123 בדיקות תיעוד עברו; כל
tests/*.test.jsעוברים כמו ב-CI; 152 בדיקות דפדפן של הלוחות/פתקים/חיפוש עברו. כשל אחד לא קשור:test_repo_notes_browser.py::test_a_new_note_opens_in_view_when_the_code_is_scrolled_sidewaysנכשל בריצה מקבילה (-n 4) — וגם על הקוד הישן באותה ריצה מקבילה; בריצה טורית על הקוד החדש כל 15 הבדיקות בקובץ עוברות. דפדפן הריפו אינו נוגע ב-base_boards.htmlאו ב-note-boards.css.🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
notes-search.css; ב-note-boards.cssנוספו#000/#fffרק בבלוק ה-High Contrast הקיים (אותה תבנית שכבר בבלוק)AI-MAP.md;docs/webapp/theming_and_css.rst("הנחיות למפתחים", "בדיקות חובה לפני Merge", "שימושים נוספים וחריגים" — מלכודת הספציפיות ו-.ck-toast.ck-toast);docs/testing.rst("הנחיות קריטיות", "בדיקות דפדפן");docs/doc-authoring.rst("רשומה ב-What's New");docs/mcp-server.rst(הסדר של הלוח ש-_board_load_orderגוזר). ב-amir-bug-patterns: B4/B5 +stale-asset-cache-policy,prose-restates-code-fact,claude-md-snippets/testing.md.🧩 השפעות/סיכונים
board-action— בערכות הכהות הטקסט בצבע של הכפתור, ובניגודיות גבוהה על רקע שחור.board-action(וגם הטקסט בשדה החיפוש עצמו) יוצא 3.9:1 — לבן על--bg-secondaryהסגול. זה צימוד הטוקנים של הערכה, לא של הרכיב, ולכן לא נגעתי בו.🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
Generated by Claude Code