44
55
66def build_draft_card (
7- topic : str , draft : str , user_id : str , draft_id : str
7+ topic : str , draft : str , user_id : str , draft_id : str , platform : str
88) -> list [dict [str , Any ]]:
99 """Генерує картку чернетки з кнопками дій."""
1010 return [
@@ -41,7 +41,7 @@ def build_draft_card(
4141 "emoji" : True ,
4242 },
4343 "style" : "primary" ,
44- "value" : draft_id ,
44+ "value" : f" { draft_id } | { platform } " , # ПРОШИВАЄМО ID ТА ПЛАТФОРМУ
4545 "action_id" : "action_publish_draft" ,
4646 },
4747 {
@@ -51,7 +51,7 @@ def build_draft_card(
5151 "text" : SLACK_UI ["btn_edit" ],
5252 "emoji" : True ,
5353 },
54- "value" : draft_id ,
54+ "value" : f" { draft_id } | { platform } " ,
5555 "action_id" : "action_edit_draft" ,
5656 },
5757 {
@@ -61,7 +61,7 @@ def build_draft_card(
6161 "text" : SLACK_UI ["btn_regenerate" ],
6262 "emoji" : True ,
6363 },
64- "value" : "regenerate " ,
64+ "value" : f" { draft_id } | { platform } " ,
6565 "action_id" : "action_regenerate_draft" ,
6666 },
6767 {
@@ -72,7 +72,7 @@ def build_draft_card(
7272 "emoji" : True ,
7373 },
7474 "style" : "danger" ,
75- "value" : "reject " ,
75+ "value" : f" { draft_id } | { platform } " ,
7676 "action_id" : "action_reject_draft" ,
7777 },
7878 ],
0 commit comments