Place LangBot branding above DingTalk card content

This commit is contained in:
fdc310
2026-10-28 03:44:07 +08:00
parent 6a29ffe07f
commit 1b00a7aa40
6 changed files with 6 additions and 6 deletions
@@ -35,7 +35,7 @@ def test_text_card_keeps_brand_when_content_updates():
components = create_text_card_messages('surface-id', 'hello')[2]['updateComponents']['components']
by_id = {component['id']: component for component in components}
assert by_id['root']['children'] == ['content', 'langbot-brand']
assert by_id['root']['children'] == ['langbot-brand', 'content']
assert by_id['langbot-brand']['children'] == ['langbot-brand-icon', 'langbot-brand-link']
assert by_id['langbot-brand-icon']['url'] == 'https://langbot.app/logo-blue.png'
assert by_id['langbot-brand-icon']['previewEnabled'] is False