Initial commit: Add logistics and order_detail message types
Some checks failed
Lock Threads / action (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot EE docker images / merge (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot CE docker images / merge (push) Has been cancelled
Run Chatwoot CE spec / lint-backend (push) Has been cancelled
Run Chatwoot CE spec / lint-frontend (push) Has been cancelled
Run Chatwoot CE spec / frontend-tests (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (0, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (1, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (10, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (11, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (12, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (13, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (14, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (15, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (2, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (3, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (4, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (5, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (6, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (7, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (8, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (9, 16) (push) Has been cancelled
Run Linux nightly installer / nightly (push) Has been cancelled

- Add Logistics component with progress tracking
- Add OrderDetail component for order information
- Support data-driven steps and actions
- Add blue color scale to widget SCSS
- Fix node overflow and progress bar rendering issues
- Add English translations for dashboard components

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Liang XJ
2026-01-26 11:16:56 +08:00
commit 092fb2e083
7646 changed files with 975643 additions and 0 deletions

120
spec/support/slack_stubs.rb Normal file
View File

@@ -0,0 +1,120 @@
module SlackStubs
def slack_url_verification_stub
{
token: 'Jhj5dZrVaK7ZwHHjRyZWjbDl',
challenge: '3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P',
type: 'url_verification'
}
end
def slack_message_stub
{
token: '[FILTERED]',
team_id: 'TLST3048H',
api_app_id: 'A012S5UETV4',
event: message_event,
type: 'event_callback',
event_id: 'Ev013QUX3WV6',
event_time: 1_588_623_033,
authed_users: '[FILTERED]',
webhook: {}
}
end
def slack_attachment_stub
slack_message_stub.merge({ event: message_event_without_blocks })
end
def slack_message_stub_without_thread_ts
{
token: '[FILTERED]',
team_id: '',
api_app_id: '',
event: {
type: 'message',
client_msg_id: 'ffc6e64e-6f0c-4a3d-b594-faa6b44e48ab',
text: 'this is test',
user: 'ULYPAKE5S',
ts: '1588623033.006000',
team: 'TLST3048H'
},
type: 'event_callback',
event_id: '',
event_time: 1_588_623_033,
authed_users: '[FILTERED]',
webhook: {}
}
end
def message_event
{
client_msg_id: 'ffc6e64e-6f0c-4a3d-b594-faa6b44e48ab',
type: 'message',
text: 'this is test <https://chatwoot.com> Hey <@U019KT237LP|Sojan> Test again',
user: 'ULYPAKE5S',
ts: '1588623033.006000',
team: 'TLST3048H',
blocks: message_blocks,
files: file_stub,
thread_ts: '1588623023.005900',
channel: 'G01354F6A6Q',
event_ts: '1588623033.006000',
channel_type: 'group'
}
end
def file_stub
[
{
mimetype: 'image/png',
url_private: 'https://chatwoot-assets.local/sample.png',
name: 'name_of_the_file',
title: 'title_of_the_file',
filetype: 'png',
url_private_download: 'https://chatwoot-assets.local/sample.png'
}
]
end
def message_blocks
[
{
type: 'rich_text',
block_id: 'jaIv3',
elements: [
{
type: 'rich_text_section',
elements: [{
type: 'text',
text: 'this is test'
}]
}
]
}
]
end
def message_event_without_blocks
{
client_msg_id: 'ffc6e64e-6f0c-4a3d-b594-faa6b44e48ab',
type: 'message',
text: 'this is test <https://chatwoot.com> Hey <@U019KT237LP|Sojan> Test again',
user: 'ULYPAKE5S',
ts: '1588623033.006000',
files: file_stub,
thread_ts: '1588623023.005900',
channel: 'G01354F6A6Q'
}
end
def link_shared_event
{
type: 'link_shared',
user: 'ULYPAKE5S',
source: 'conversations_history',
unfurl_id: 'C7NQEAE5Q.1695111587.937099.7e240338c6d2053fb49f56808e7c1f619f6ef317c39ebc59fc4af1cc30dce49b',
channel: 'G01354F6A6Q'
}
end
end