Skip to content

Commit f2d9168

Browse files
rnetsercursoragent
andcommitted
fix: remove divider between header and table
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 855a746 commit f2d9168

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/rootcoz_slack_digest/slack_format.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ def build_message(
398398
)
399399
blocks: list[dict[str, object]] = [
400400
{"type": "section", "text": {"type": "mrkdwn", "text": header}},
401-
{"type": "divider"},
402401
*table_blocks,
403402
]
404403
if omitted_text:

tests/test_slack_format.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ def test_build_message_blocks_use_table() -> None:
213213
)
214214
assert isinstance(payload, list)
215215
types = [b.get("type") for b in payload]
216-
assert types[:2] == ["section", "divider"]
216+
assert types[0] == "section"
217+
assert "divider" not in types
217218
tables = [b for b in payload if b.get("type") == "data_table"]
218219
assert len(tables) == 2
219-
# Tier headers between divider and tables when multiple tiers
220+
# Tier headers before tables when multiple tiers
220221
assert "*gating*" in str(payload)
221222
assert "*other*" in str(payload)
222223
gate_table = tables[0]

0 commit comments

Comments
 (0)