שגיאה בטעינה.
;
+ if (isPending) return
+ {hint &&
{hint}
}
+ {Object.entries(items).map(([k, item]) => (
+
|
+ ))}
+ {Object.keys(items).length === 0 && (
+
אין פריטים.
+ )}
+
+ );
+}
diff --git a/web/app.py b/web/app.py
index bdfe4a4..9e60690 100644
--- a/web/app.py
+++ b/web/app.py
@@ -3995,12 +3995,27 @@ from legal_mcp.services.lessons import (
GOLDEN_RATIOS,
DISCUSSION_RULES,
CONTENT_CHECKLISTS,
+ ANTI_PATTERNS,
+ TRANSITION_PHRASES,
)
+
+def _transition_phrases_by_bucket() -> dict[str, list[str]]:
+ """Group TRANSITION_PHRASES into editable buckets by outcome (None→universal)."""
+ out: dict[str, list[str]] = {}
+ for p in TRANSITION_PHRASES:
+ bucket = p.get("outcome") or "universal"
+ out.setdefault(bucket, []).append(p["phrase"])
+ return out
+
+
_METHODOLOGY_DEFAULTS: dict[str, dict] = {
"golden_ratios": {k: {s: list(v) for s, v in sec.items()} for k, sec in GOLDEN_RATIOS.items()},
"discussion_rules": dict(DISCUSSION_RULES),
"content_checklists": dict(CONTENT_CHECKLISTS),
+ # T12 — editable abstract-profile categories the writer (T15) + metric (T7) consume.
+ "transition_phrases": _transition_phrases_by_bucket(),
+ "anti_patterns": {ap["name"]: {"regex": ap["regex"], "note": ap["note"]} for ap in ANTI_PATTERNS},
}
_VALID_CATEGORIES = set(_METHODOLOGY_DEFAULTS.keys())