ערכות נושא מבוססות זמן - #2906
Draft
amirbiron wants to merge 2 commits into
Draft
Conversation
מדריך מקיף למימוש פיצ'ר תחלופת ערכות נושא אוטומטית לפי שעות ביממה. הפיצ'ר מאפשר: - הגדרת ערכת יום וערכת לילה - בחירת שעות התחלה וסיום ליום - החלפה אוטומטית בין הערכות - תמיכה בכל סוגי הערכות (Built-in, Shared, Custom) המדריך כולל: - סכמת MongoDB מפורטת - API endpoints (GET/POST /api/themes/schedule) - לוגיקת JavaScript צד לקוח (theme-scheduler.js) - ממשק משתמש מלא עם תצוגה מקדימה - בדיקות unit ואינטגרציה - שיקולי UX ונגישות Co-authored-by: amirbiron <amirbiron@gmail.com>
Contributor
|
Cursor Agent can help with this pull request. Just |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
עדכון המדריך בעקבות ביקורת קוד: תיקוני באגים וארכיטקטורה: - הלקוח הוא מקור האמת לזמן (לא השרת) - פותר בעיות timezone - חסימת טווח יום שחוצה חצות בוולידציה (day_start < day_end) - השרת לא מעדכן ui_prefs.theme בעת שמירת הגדרות שיפורי ביצועים: - טיימר חכם (setTimeout לאירוע הבא) במקום polling כל דקה - Timer גיבוי כל 5 דקות למקרה של drift שיפורי UX: - תמיכה ב-override ידני זמני (עד המעבר הבא) - הודעה למשתמש כשיש override פעיל - הודעות שגיאה בעברית שיפורי קוד: - מזהה ערכה מלא (builtin:/shared:/custom:) - וולידציה מול DB לערכות shared/custom - cache עם fetchedAt לבדיקת תוקף (24 שעות) - בדיקות unit מעודכנות Co-authored-by: amirbiron <amirbiron@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ תיאור קצר
הוספנו מדריך מקיף למימוש פיצ'ר המאפשר למשתמשים להגדיר תחלופה אוטומטית של ערכות נושא (יום/לילה) לפי שעות ביממה. המדריך כולל עדכוני סכמה, API, לוגיקת צד לקוח וממשק משתמש, ומטרתו לספק חווית שימוש מותאמת אישית ונוחה יותר.
📦 שינויים עיקריים
פירוט נקודות:
GUIDES/AUTO_THEME_SCHEDULING_GUIDE.mdהמפרט את כל שלבי המימוש של הפיצ'ר.webapp/themes_api.pyלניהול תזמון ערכות נושא (GET/POST /api/themes/schedule, GET /api/themes/schedule/current).webapp/static/js/theme-scheduler.jsלחישוב והחלת הערכה הנוכחית באופן אוטומטי.webapp/templates/settings/theme_schedule.htmlעם ממשק משתמש אינטואיטיבי להגדרת התזמון.base.htmlוב-dark-mode.jsלמניעת FOUC ולשילוב חלק.ui_prefsב-MongoDB להכלת הגדרות התזמון.🧪 בדיקות
🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
services/register_jobs.py(כולל Callback/Trigger להפעלה ידנית — למשלcallback_name/trigger_funcלפי המבנה) כדי שיופיעו בדשבורדdocs/environment-variables.rstוגםservices/config_inspector_service.pydocs/webapp/theming_and_css.rst+FEATURE_SUGGESTIONS/theme_matrix.md🧩 השפעות/סיכונים
🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
ui_prefs.theme_scheduleמהמסמכים הרלוונטיים.