Keep live title OCR in fudai detail path

This commit is contained in:
Your Name committed 2026-06-19 18:12:28 +08:00
1 parent 78a75d4843
commit 58c1856fad
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ def apply_fudai_defaults(self: Any) -> None:
self.fudai_detail_ocr_task_count_enabled = True
self.fudai_detail_ocr_button_enabled = True
self.fudai_detail_ocr_participants_enabled = False
self.fudai_detail_ocr_live_title_enabled = False
self.fudai_detail_ocr_live_title_enabled = True
self.fudai_detail_task_ocr_in_critical_path_enabled = False
self.fudai_detail_countdown_full_ocr_in_critical_path_enabled = False
self.fudai_detail_info_line_ocr_in_critical_path_enabled = False
@@ -12,7 +12,7 @@ OCR_SWITCH_DEFAULTS = {
"task_count": True,
"button": True,
"participants": False,
"live_title": False,
"live_title": True,
}
OCR_SWITCH_CONFIG_KEYS = {
@@ -36,7 +36,7 @@ class FudaiDetailOcrSwitches:
task_count: bool = True
button: bool = True
participants: bool = False
live_title: bool = False
live_title: bool = True
def enabled_fields(self) -> set[str]:
return {
+1 -1
View File
@@ -411,7 +411,7 @@ class ConfigManager:
"fudai_detail_ocr_task_count_enabled": True,
"fudai_detail_ocr_button_enabled": True,
"fudai_detail_ocr_participants_enabled": False,
"fudai_detail_ocr_live_title_enabled": False,
"fudai_detail_ocr_live_title_enabled": True,
"fudai_detail_task_ocr_in_critical_path_enabled": False,
"fudai_detail_countdown_full_ocr_in_critical_path_enabled": False,
"fudai_detail_info_line_ocr_in_critical_path_enabled": False,
+2 -2
View File
@@ -217,7 +217,7 @@ def test_ocr_switch_defaults_and_legacy_disable_compat():
task_count=True,
button=True,
participants=False,
live_title=False,
live_title=True,
)
legacy = resolve_fudai_detail_ocr_switches(
@@ -255,7 +255,7 @@ def test_code_defaults_include_v2_ocr_keys():
assert defaults.task_count is True
assert defaults.button is True
assert defaults.participants is False
assert defaults.live_title is False
assert defaults.live_title is True
def test_task_list_ocr_is_not_in_detail_critical_path_by_default(monkeypatch):