Commit Graph

4 Commits

Author SHA1 Message Date
Bernd (Hermes) f165f110e3 chore(F-542): @implements Batch 2b — 20 Reverse-Engineering-Dateien @implements: [F-542] 2026-09-17 14:40:08 +02:00
Bernd (Hermes) 328532bcbb P-051: action_id in allen Button-Dicts ergänzen (RC 6.x Rendering-Fix)
- button_builder.py: _make_action_id() Helper + action_id in Regular/Special Buttons
- __init__.py _build_custom_buttons: action_id via SHA1(msg_payload:idx)
- adapter.py _get_build_custom_buttons local fallback: action_id ergänzt
- adapter.py send_clarify: action_id=f'clarify_{clarify_id}_{i}' (deterministisch)
- adapter.py _send_archivar_buttons: action_id via SHA1(selector:i)

Rocket.Chat 6.x ignoriert das actions-Array komplett wenn kein action_id-Feld
vorhanden ist. Buttons erscheinen als plain-text statt klickbar.
2026-08-11 21:39:07 +02:00
Bernd (Hermes) 68f3845929 fix(P0): button_builder msg-Payload mit :: Suffix — Onboarding-Button-Klick wird wieder erkannt
ROOT CAUSE: button_builder.py setzte msg = prefix (nur 'ONBOARD:<rid>'),
aber _process_onboarding_response erwartet '::' in text als Trigger fuer
Button-Klick-Handler. Ohne '::' -> Fallthrough zu Text-Antwort-Handler
-> Theme wird mit Room-ID als Literal ueberschrieben (stille Korruption).

FIX (Rainer Option B — explizite Signatur):
- build_button_attachments: num_buttons jetzt (label, prefix[, suffix]),
  special_buttons (label, prefix, style[, suffix])
- msg_payload = f'{prefix}::{suffix}' wenn suffix, sonst prefix (backward-compat)
- adapter.py: 3 Aufrufer (_send_onboarding_message, _onboarding_next_room,
  _finish_onboarding) uebergeben jetzt (clean_name, f'ONBOARD:{rid}', f'select_{rid}')
- Review-Flow (onboarding_review.py) unveraendert — 2-Tupel ohne suffix
  bleiben backward-compatibel
2026-07-24 20:23:38 +02:00
Bernd (Hermes) dcd014291e fix(P0-1): Raum-Setup 3er-Chunking via build_button_attachments — gemeinsames Modul button_builder.py 2026-07-24 14:31:57 +02:00