fix: UX — Button-Labels radikal gekuerzt (1️⃣ 2️⃣ 3️⃣), Zurueck-Buttons in allen Sub-Phasen, name[:9] Trunkierung

This commit is contained in:
Bernd (Hermes)
2026-07-20 21:24:09 +02:00
parent 17fbb7ff70
commit 2e333c8178
3 changed files with 236 additions and 34 deletions
+8 -8
View File
@@ -2975,7 +2975,7 @@ class RocketChatAdapter(BasePlatformAdapter):
"👉 Klicke auf einen Button oder antworte mit 1–4:" "👉 Klicke auf einen Button oder antworte mit 1–4:"
) )
fakt_buttons = _build( fakt_buttons = _build(
["1️⃣ Standard", "2️⃣ Neuer Ort", "3️⃣ Bestehender Ort", "4️⃣ Keine Sammlung"], ["1️⃣ Standard", "2️⃣ Neu", "3️⃣ Vorhanden", "4️⃣ Keine"],
prefix="FAKT", prefix="FAKT",
style="primary", style="primary",
) )
@@ -4274,7 +4274,7 @@ class RocketChatAdapter(BasePlatformAdapter):
"👉 Klicke auf einen Button oder antworte mit 1–4:" "👉 Klicke auf einen Button oder antworte mit 1–4:"
) )
fakt_buttons = _build( fakt_buttons = _build(
["1️⃣ Standard", "2️⃣ Neuer Ort", "3️⃣ Bestehender Ort", "4️⃣ Keine Sammlung"], ["1️⃣ Standard", "2️⃣ Neu", "3️⃣ Vorhanden", "4️⃣ Keine"],
prefix="FAKT", prefix="FAKT",
style="primary", style="primary",
) )
@@ -4413,7 +4413,7 @@ class RocketChatAdapter(BasePlatformAdapter):
return return
# Option 2: Neuer Ort # Option 2: Neuer Ort
elif "Neuer Ort" in choice or "2️⃣" in choice or choice == "2": elif "Neu" in choice or "2️⃣" in choice or choice == "2":
self._onboarding_state["fakt_sub_phase"] = "new_path" self._onboarding_state["fakt_sub_phase"] = "new_path"
if self.archivar is not None: if self.archivar is not None:
self.archivar._state.set_onboarding_state(self._onboarding_state) self.archivar._state.set_onboarding_state(self._onboarding_state)
@@ -4425,7 +4425,7 @@ class RocketChatAdapter(BasePlatformAdapter):
return return
# Option 3: Bestehender Ort # Option 3: Bestehender Ort
elif "Bestehender Ort" in choice or "3️⃣" in choice or choice == "3": elif "Vorhanden" in choice or "3️⃣" in choice or choice == "3":
self._onboarding_state["fakt_sub_phase"] = "existing_path" self._onboarding_state["fakt_sub_phase"] = "existing_path"
if self.archivar is not None: if self.archivar is not None:
self.archivar._state.set_onboarding_state(self._onboarding_state) self.archivar._state.set_onboarding_state(self._onboarding_state)
@@ -4437,7 +4437,7 @@ class RocketChatAdapter(BasePlatformAdapter):
return return
# Option 4: Keine Sammlung # Option 4: Keine Sammlung
elif "Keine Sammlung" in choice or "4️⃣" in choice or choice == "4": elif "Keine" in choice or "4️⃣" in choice or choice == "4":
strategy = "none" strategy = "none"
now_iso = datetime.now(timezone.utc).isoformat() now_iso = datetime.now(timezone.utc).isoformat()
self.archivar._room_map.set_fact_store_strategy(strategy) self.archivar._room_map.set_fact_store_strategy(strategy)
@@ -4632,7 +4632,7 @@ class RocketChatAdapter(BasePlatformAdapter):
f"👉 Klicke auf einen Button:" f"👉 Klicke auf einen Button:"
) )
butler_buttons = _build( butler_buttons = _build(
["✏️ Ändern", "⏭️ Beibehalten"], ["✏️ Ändern", "⏭️ Skip"],
prefix="REVIEW_BUTLER", prefix="REVIEW_BUTLER",
style="primary", style="primary",
) )
@@ -4689,7 +4689,7 @@ class RocketChatAdapter(BasePlatformAdapter):
f"👉 Klicke auf einen Button:" f"👉 Klicke auf einen Button:"
) )
fakt_buttons = _build( fakt_buttons = _build(
["✏️ Ändern", "⏭️ Beibehalten"], ["✏️ Ändern", "⏭️ Skip"],
prefix="REVIEW_FAKT", prefix="REVIEW_FAKT",
style="primary", style="primary",
) )
@@ -4777,7 +4777,7 @@ class RocketChatAdapter(BasePlatformAdapter):
"👉 Klicke auf einen Button oder antworte mit 1–4:" "👉 Klicke auf einen Button oder antworte mit 1–4:"
) )
fakt_buttons = _build( fakt_buttons = _build(
["1️⃣ Standard", "2️⃣ Neuer Ort", "3️⃣ Bestehender Ort", "4️⃣ Keine Sammlung"], ["1️⃣ Standard", "2️⃣ Neu", "3️⃣ Vorhanden", "4️⃣ Keine"],
prefix="FAKT", prefix="FAKT",
style="primary", style="primary",
) )
+23 -19
View File
@@ -203,10 +203,11 @@ def render_review_room_step(
lines.append(f" KwKontext: {kwctx_str or '—'}") lines.append(f" KwKontext: {kwctx_str or '—'}")
lines.append("") lines.append("")
# Pro Raum ein 'Anpassen'-Button # Pro Raum ein 'Anpassen'-Button (kurzer Name, max 9 Zeichen)
prefix = f"{REVIEW_ROOM_EDIT}::{rid}::edit" prefix = f"{REVIEW_ROOM_EDIT}::{rid}::edit"
short_name = entry.name[:9] if len(entry.name) > 9 else entry.name
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
[f"✏️ {entry.name}"], [f"{room_count}️⃣ {short_name}"],
prefix=prefix, prefix=prefix,
style="primary", style="primary",
)) ))
@@ -219,12 +220,12 @@ def render_review_room_step(
# Globale Buttons # Globale Buttons
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["➕ Neuer Raum"], ["➕ Neuer"],
prefix=REVIEW_ROOM_ADD_NEW, prefix=REVIEW_ROOM_ADD_NEW,
style="default", style="default",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["⏭️ Überspringen"], ["⏭️ Skip"],
prefix=REVIEW_ROOM_SKIP, prefix=REVIEW_ROOM_SKIP,
style="default", style="default",
)) ))
@@ -279,27 +280,27 @@ def render_review_room_edit(
buttons: List[dict] = [] buttons: List[dict] = []
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["🔑 Kw100 bearbeiten"], ["1️⃣ Kw100"],
prefix=f"{REVIEW_ROOM_KW_ADD}::{target_room_id}", prefix=f"{REVIEW_ROOM_KW_ADD}::{target_room_id}",
style="primary", style="primary",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["📝 KwKontext bearbeiten"], ["2️⃣ KwKtx"],
prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::keywords_context", prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::keywords_context",
style="primary", style="primary",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["🏷️ Theme bearbeiten"], ["3️⃣ Theme"],
prefix=f"{REVIEW_ROOM_THEME_SAVE}::{target_room_id}", prefix=f"{REVIEW_ROOM_THEME_SAVE}::{target_room_id}",
style="primary", style="primary",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["🎯 Catch-All umschalten"], ["4️⃣ Catch-All"],
prefix=f"{REVIEW_ROOM_CATCHALL_SET}::{target_room_id}", prefix=f"{REVIEW_ROOM_CATCHALL_SET}::{target_room_id}",
style="primary", style="primary",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["🗑️ Raum entfernen"], ["5️⃣ Weg"],
prefix=f"{REVIEW_ROOM_REMOVE_CONFIRM}::{target_room_id}", prefix=f"{REVIEW_ROOM_REMOVE_CONFIRM}::{target_room_id}",
style="danger", style="danger",
)) ))
@@ -358,9 +359,10 @@ def render_review_room_keywords_edit(
if entry.keywords_100: if entry.keywords_100:
for kw in entry.keywords_100: for kw in entry.keywords_100:
lines.append(f" • `{kw}`") lines.append(f" • `{kw}`")
# Pro Keyword ein X-Button zum Entfernen # Pro Keyword ein X-Button zum Entfernen (gekürzt auf 8 Zeichen)
short_kw = kw[:8] if len(kw) > 8 else kw
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
[f"❌ {kw}"], [f"❌ {short_kw}"],
prefix=f"{REVIEW_ROOM_KW_REMOVE}::{target_room_id}::{kw}", prefix=f"{REVIEW_ROOM_KW_REMOVE}::{target_room_id}::{kw}",
style="danger", style="danger",
)) ))
@@ -373,8 +375,8 @@ def render_review_room_keywords_edit(
lines.append("⚠️ Viele Keywords können das Routing verlangsamen.") lines.append("⚠️ Viele Keywords können das Routing verlangsamen.")
lines.append("") lines.append("")
lines.append("💬 Antworte mit einem neuen Keyword, um es hinzuzufügen " lines.append("💬 Antworte mit einem neuen Keyword (2-30 Zeichen) "
"(2-30 Zeichen, keine Leerzeichen).") "oder klicke Zurück.")
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["↩️ Zurück"], ["↩️ Zurück"],
@@ -435,7 +437,7 @@ def render_review_room_theme_edit(
buttons: List[dict] = [] buttons: List[dict] = []
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["↩️ Zurück (ohne Änderung)"], ["↩️ Zurück"],
prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit", prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit",
style="default", style="default",
)) ))
@@ -502,12 +504,12 @@ def render_review_room_catch_all_toggle(
buttons: List[dict] = [] buttons: List[dict] = []
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["✅ Ja, Catch-All setzen"], ["✅ Setzen"],
prefix=f"{REVIEW_ROOM_CATCHALL_SET}::{target_room_id}::confirm", prefix=f"{REVIEW_ROOM_CATCHALL_SET}::{target_room_id}::confirm",
style="primary", style="primary",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["↩️ Abbrechen"], ["↩️ Zurück"],
prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit", prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit",
style="default", style="default",
)) ))
@@ -566,12 +568,12 @@ def render_review_room_remove(
buttons: List[dict] = [] buttons: List[dict] = []
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["✅ Ja, entfernen"], ["✅ Löschen"],
prefix=f"{REVIEW_ROOM_REMOVE_CONFIRM}::{target_room_id}::confirm", prefix=f"{REVIEW_ROOM_REMOVE_CONFIRM}::{target_room_id}::confirm",
style="danger", style="danger",
)) ))
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
["↩️ Abbrechen"], ["↩️ Zurück"],
prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit", prefix=f"{REVIEW_ROOM_EDIT}::{target_room_id}::edit",
style="default", style="default",
)) ))
@@ -626,8 +628,10 @@ def render_review_room_add_new(
rtype = room.get("type", "c") rtype = room.get("type", "c")
type_label = "💬" if rtype == "d" else "#" type_label = "💬" if rtype == "d" else "#"
lines.append(f" {type_label} {name}") lines.append(f" {type_label} {name}")
# Kurzer Button-Name (max 9 Zeichen)
short_name = name[:9] if len(name) > 9 else name
buttons.extend(_build_custom_buttons( buttons.extend(_build_custom_buttons(
[f"{type_label} {name}"], [f"{i+1}️⃣ {short_name}"],
prefix=f"{REVIEW_ROOM_ADD_NEW}::{rid}", prefix=f"{REVIEW_ROOM_ADD_NEW}::{rid}",
style="primary", style="primary",
)) ))
@@ -189,10 +189,10 @@ class TestRenderReviewRoomEdit:
assert "#Dev" in text assert "#Dev" in text
assert "Entwicklung" in text assert "Entwicklung" in text
assert "code" in text assert "code" in text
assert "Kw100 bearbeiten" in str(attachments) assert "1️⃣ Kw100" in str(attachments)
assert "Theme bearbeiten" in str(attachments) assert "3️⃣ Theme" in str(attachments)
assert "Catch-All umschalten" in str(attachments) assert "4️⃣ Catch-All" in str(attachments)
assert "Raum entfernen" in str(attachments) assert "5️⃣ Weg" in str(attachments)
assert "Zurück" in str(attachments) assert "Zurück" in str(attachments)
def test_handles_nonexistent_room(self): def test_handles_nonexistent_room(self):
@@ -272,7 +272,7 @@ class TestRenderReviewRoomCatchAllToggle:
text, attachments = render_review_room_catch_all_toggle(rm, "r1", _mock_build_buttons) text, attachments = render_review_room_catch_all_toggle(rm, "r1", _mock_build_buttons)
assert "Catch-All-Raum setzen" in text assert "Catch-All-Raum setzen" in text
assert "#Ops" in text # aktueller Catch-All assert "#Ops" in text # aktueller Catch-All
assert "Ja, Catch-All setzen" in str(attachments) assert "✅ Setzen" in str(attachments)
def test_renders_toggle_for_already_catch_all(self): def test_renders_toggle_for_already_catch_all(self):
rm = _load_room_map([ rm = _load_room_map([
@@ -295,8 +295,8 @@ class TestRenderReviewRoomRemove:
]) ])
text, attachments = render_review_room_remove(rm, "r1", _mock_build_buttons) text, attachments = render_review_room_remove(rm, "r1", _mock_build_buttons)
assert "wirklich entfernen" in text assert "wirklich entfernen" in text
assert "Ja, entfernen" in str(attachments) assert "✅ Löschen" in str(attachments)
assert "Abbrechen" in str(attachments) assert "Zurück" in str(attachments)
def test_rejects_catch_all_removal(self): def test_rejects_catch_all_removal(self):
rm = _load_room_map([ rm = _load_room_map([
@@ -598,3 +598,201 @@ class TestDispatchReviewButton:
assert "room_b" in rm.rooms assert "room_b" in rm.rooms
assert rm.get_room_by_id("room_b").name == "#Beta" assert rm.get_room_by_id("room_b").name == "#Beta"
assert "#Beta" in text assert "#Beta" in text
# ── UX-7: Button-Label-Kürzung Tests ────────────────────────────────────────
class TestButtonLabelsShort:
"""UX-7: Alle Button-Labels sind <=13 Zeichen (ohne Prefix)."""
def _extract_labels(self, attachments):
"""Extrahiert alle Button-Label-Texte aus Attachments."""
labels = []
for att in attachments:
for action in att.get("actions", []):
labels.append(action.get("text", ""))
return labels
def test_room_edit_buttons_short(self):
"""Raum-Detail Buttons sind kurz."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "Entwicklung",
"keywords_100": ["code", "bug"], "keywords_context": ["git"]},
{"room_id": "r2", "name": "#Ops", "theme": "Betrieb",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_edit(rm, "r1", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_keyword_x_buttons_short(self):
"""Keyword-X-Buttons sind kurz (max 8 Zeichen Keyword)."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["dokumentation", "lan", "code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_keywords_edit(rm, "r1", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_top_level_buttons_short(self):
"""Top-Level Buttons (Neuer, Skip) sind kurz."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["code"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_step(rm, "dm123", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_catchall_buttons_short(self):
"""Catch-All Toggle Buttons sind kurz."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev", "keywords": ["code"]},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords": ["server"], "catch_all": True},
])
_, attachments = render_review_room_catch_all_toggle(rm, "r1", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_remove_buttons_short(self):
"""Remove Buttons sind kurz."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev", "keywords": ["code"]},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords": ["server"], "catch_all": True},
])
_, attachments = render_review_room_remove(rm, "r1", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_add_new_buttons_short(self):
"""Add-New Buttons (Neuer Raum) sind kurz."""
available = [
{"id": "new1", "name": "#Marketing", "type": "c"},
{"id": "new2", "name": "DM User", "type": "d"},
]
_, attachments = render_review_room_add_new(available, _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
def test_long_room_name_button_short(self):
"""Regression-Guard: Langer Raumname (20+ Zeichen) → Button-Label <=13 Zeichen."""
rm = _load_room_map([
{"room_id": "r1", "name": "#SehrLangerRaumnameMitVielenZeichen",
"theme": "dev", "keywords_100": ["code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_step(rm, "dm123", _mock_build_buttons)
labels = self._extract_labels(attachments)
for label in labels:
assert len(label) <= 13, f"Label zu lang: '{label}' ({len(label)} Zeichen)"
class TestKeywordEditHasBackButton:
"""UX-7: Keyword-Bearbeitung hat Zurück-Button."""
def test_keyword_edit_has_back_button(self):
"""render_review_room_keywords_edit enthält '↩️ Zurück' Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["code", "bug"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_keywords_edit(rm, "r1", _mock_build_buttons)
labels = [a.get("text", "") for att in attachments for a in att.get("actions", [])]
assert "↩️ Zurück" in labels, f"Kein Zurück-Button in: {labels}"
def test_keyword_edit_text_mentions_back(self):
"""Keyword-Edit Text erwähnt 'Zurück'."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
text, _ = render_review_room_keywords_edit(rm, "r1", _mock_build_buttons)
assert "Zurück" in text, f"Text erwähnt Zurück nicht: {text[:200]}"
class TestAllSubphasesHaveBack:
"""UX-7: Alle Sub-Phasen haben Zurück-Button."""
def _has_back_button(self, attachments):
"""Prüft ob Attachments einen '↩️ Zurück' Button enthalten."""
for att in attachments:
for action in att.get("actions", []):
if "Zurück" in action.get("text", ""):
return True
return False
def test_edit_subphase_has_back(self):
"""review_room_edit hat Zurück-Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_edit(rm, "r1", _mock_build_buttons)
assert self._has_back_button(attachments), "edit sub-phase fehlt Zurück-Button"
def test_keywords_edit_subphase_has_back(self):
"""review_room_keywords_edit hat Zurück-Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev",
"keywords_100": ["code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_keywords_edit(rm, "r1", _mock_build_buttons)
assert self._has_back_button(attachments), "keywords_edit sub-phase fehlt Zurück-Button"
def test_theme_edit_subphase_has_back(self):
"""review_room_theme_edit hat Zurück-Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "Altes Theme",
"keywords_100": ["code"], "keywords_context": []},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords_100": ["server"], "keywords_context": [], "catch_all": True},
])
_, attachments = render_review_room_theme_edit(rm, "r1", _mock_build_buttons)
assert self._has_back_button(attachments), "theme_edit sub-phase fehlt Zurück-Button"
def test_catchall_toggle_subphase_has_back(self):
"""review_room_catch_all_toggle hat Zurück-Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev", "keywords": ["code"]},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords": ["server"], "catch_all": True},
])
_, attachments = render_review_room_catch_all_toggle(rm, "r1", _mock_build_buttons)
assert self._has_back_button(attachments), "catch_all_toggle sub-phase fehlt Zurück-Button"
def test_remove_subphase_has_back(self):
"""review_room_remove hat Zurück-Button."""
rm = _load_room_map([
{"room_id": "r1", "name": "#Dev", "theme": "dev", "keywords": ["code"]},
{"room_id": "r2", "name": "#Ops", "theme": "ops",
"keywords": ["server"], "catch_all": True},
])
_, attachments = render_review_room_remove(rm, "r1", _mock_build_buttons)
assert self._has_back_button(attachments), "remove sub-phase fehlt Zurück-Button"
def test_add_new_subphase_has_back(self):
"""review_room_add_new hat Zurück-Button."""
available = [{"id": "new1", "name": "#NewRoom", "type": "c"}]
_, attachments = render_review_room_add_new(available, _mock_build_buttons)
assert self._has_back_button(attachments), "add_new sub-phase fehlt Zurück-Button"