Split core and TUI crates

This commit is contained in:
Mikhail Kilin
2026-05-20 00:31:18 +03:00
parent 91a8700b8e
commit eefac431e5
238 changed files with 624 additions and 191 deletions

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ Mom │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ Mom │
│ Boss │
│ Rust Community │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ Very Long Chat Title That Should Be Truncated │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ 🔇 Spam Group (99) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ 📌 Important Chat │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│▌ Mom │
│ Boss │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ Work Group @ (10) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│▌ Alice │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ Mom (5) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/chat_list.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 22
expression: output
---
[default] Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 90
expression: output
---
[default] ⏳ Подключение... | Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 73
expression: output
---
[default] ⏳ Прокси... | Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 56
expression: output
---
[default] ⚠ Нет сети | Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 39
expression: output
---
[default] Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/footer.rs
assertion_line: 107
expression: output
---
[default] Инициализация TDLib...

View File

@@ -0,0 +1,28 @@
---
source: tests/input_field.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Нет сообщений │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/input_field.rs
assertion_line: 111
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ ▶ Original message text (14:33 ✓✓) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌ Редактирование (Esc отмена) ─────────────────────────────────────────────────┐
│✏ Edited text here │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/input_field.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Нет сообщений │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> This is a longer message that will wrap to multiple lines in the input field│
│for testing purposes. │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/input_field.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Нет сообщений │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod │
│tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, │
│quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo │
│consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse │
│cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non │
│proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed │
│ut perspiciatis unde omnis iste natus error sit voluptatem accusantium │
│doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/input_field.rs
assertion_line: 135
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Mom ──────────────── │
│ (14:33) What do you think about this? │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌ Ответ (Esc отмена) ──────────────────────────────────────────────────────────┐
│↪ Mom: What do yo > I think it's great! │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/input_field.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 hello │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/input_field.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Нет сообщений │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Hello, how are you? │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 418
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) 📷 [Фото] │
│ (14:33) Caption for album │
│ (14:33) 📷 [Фото] │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 444
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ 📷 [Фото] (14:33 ✓✓)│
│ My vacation photos (14:33 ✓✓) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 503
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) 📷 [Фото] │
│▶ (14:33) 📷 [Фото] │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌ Выбор сообщения ─────────────────────────────────────────────────────────────┐
│↑↓ · r ответ · f переслать · y копир. · d удалить · Esc │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 476
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Group Chat │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) Regular message before │
│ (14:33) 📷 [Фото] │
│ (14:33) Album caption │
│ (14:33) Regular message after │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 87
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Message from the past │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 186
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33 ✎) Edited text │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/messages.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Нет сообщений │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 325
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│↪ Переслано от Alice │
│ (14:33) Forwarded content │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 206
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) This is a very long message that should wrap across multiple lines │
│ when rendered in the terminal UI. Let's make it even longer to │
│ ensure we test the wrapping behavior properly. │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 225
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) **bold** *italic* `code` │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 245
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Check [this](https://example.com) and @username │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 264
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Spoiler: ||hidden text|| │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 283
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) [Фото] │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 368
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Popular message │
│[👍 ] 5 👎 3 │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 167
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ Read message (14:33 ✓✓) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 137
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ Just sent (14:33 ✓✓) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 304
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│┌ Mom: Original message text │
│ (14:33) This is a reply │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 388
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Selected message │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌ Выбор сообщения ─────────────────────────────────────────────────────────────┐
│↑↓ · r ответить · f переслать · y копировать · Esc │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 118
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Group Chat │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) First message │
│ (14:33) Second message │
│ │
│Bob ──────────────── │
│ (14:33) Third message │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 46
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│Mom ──────────────── │
│ (14:33) Hello there! │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 65
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ Hi mom! (14:33 ✓✓) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/messages.rs
assertion_line: 346
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Great! │
│[👍 ] │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/modals.rs
assertion_line: 30
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│ Вы ──────────────── │
│ Delete me (14:33 ✓✓) │
│ ┌ Подтверждение ───────────────────────┐ │
│ │ │ │
│ │ Удалить сообщение? │ │
│ │ │ │
│ │ [y/Enter] Да [n/Esc] Нет │ │
│ │ │ │
│ └──────────────────────────────────────┘ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/modals.rs
assertion_line: 61
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) React to this │
│ │
│ ┌ Выбери реакцию ────────────────────────────────┐ │
│ │ │ │
│ │ 👍 👎 ❤️ 🔥 😊 😢 😮 🎉 │ │
│ │ │ │
│ └────────────────────────────────────────────────┘ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/modals.rs
assertion_line: 97
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) React to this │
│ │
│ ┌ Выбери реакцию ────────────────────────────────┐ │
│ │ │ │
│ │ 👍 👎 ❤️ 🔥 😊 😢 😮 🎉 │ │
│ │ │ │
│ └────────────────────────────────────────────────┘ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/modals.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска │
└──────────────────────────────────────────────────────────────────────────────┘
┌ ↪ Выберите чат ──────────────────────────────────────────────────────────────┐
│▌ Mom │
│ Dad │
│ Work Group │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/modals.rs
assertion_line: 163
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 Mom │
└──────────────────────────────────────────────────────────────────────────────┘
📌 20.12.2021 14:33 Important pinned message! Ctrl+P
┌──────────────────────────────────────────────────────────────────────────────┐
│ ──────── 20.12.2021 ──────── │
│ │
│User ──────────────── │
│ (14:33) Regular message │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/modals.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 ПРОФИЛЬ: Work Group │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Тип: Группа │
│ │
│ID: 456 │
│ │
│Участников: 25 │
│ │
│Описание: │
│Work discussion group │
│ │
│──────────────────────────────── │
│ │
│Действия: │
│ │
│▶ Скопировать ID │
│ Покинуть группу │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ↑↓ навигация Enter выбрать Esc выход │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,28 @@
---
source: tests/modals.rs
expression: output
---
┌──────────────────────────────────────────────────────────────────────────────┐
│👤 ПРОФИЛЬ: Alice │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│Тип: Личный чат │
│ │
│ID: 123 │
│ │
│──────────────────────────────── │
│ │
│Действия: │
│ │
│▶ Скопировать ID │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ↑↓ навигация Enter выбрать Esc выход │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,29 @@
---
source: tests/modals.rs
assertion_line: 193
expression: output
---
┌ Поиск по сообщениям ─────────────────────────────────────────────────────────┐
│🔍 world█ (1/2) │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│▶ User (20.12.2021 14:33) │
│ Hello world │
│ │
│ User (20.12.2021 14:33) │
│ World is beautiful │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ ↑↓ навигация n/N след./пред. Enter перейти Esc выход │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,22 @@
---
source: tests/screens.rs
expression: output
---
┌──────────────────────────────────────┐
│ TTUI - Telegram Authentication │
└──────────────────────────────────────┘
Введите код подтверждения из Telegram
Код был отправлен на ваш номер
┌ Verification Code ───────────────────┐
│ 🔐 1234 │
└──────────────────────────────────────┘
Инициализация TDLib...

View File

@@ -0,0 +1,22 @@
---
source: tests/screens.rs
expression: output
---
┌──────────────────────────────────────┐
│ TTUI - Telegram Authentication │
└──────────────────────────────────────┘
Введите пароль двухфакторной аутентифика
┌ Password ────────────────────────────┐
│ 🔒 **** │
└──────────────────────────────────────┘
Инициализация TDLib...

View File

@@ -0,0 +1,22 @@
---
source: tests/screens.rs
expression: output
---
┌──────────────────────────────────────┐
│ TTUI - Telegram Authentication │
└──────────────────────────────────────┘
Введите номер телефона в международном ф
Пример: +79991111111
┌ Phone Number ────────────────────────┐
│ 📱 +7 │
└──────────────────────────────────────┘
Инициализация TDLib...

View File

@@ -0,0 +1,18 @@
---
source: tests/screens.rs
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────┐
│ Инициализация TDLib... │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,18 @@
---
source: tests/screens.rs
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────┐
│ Подключение к Telegram... │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘

View File

@@ -0,0 +1,35 @@
---
source: tests/screens.rs
assertion_line: 197
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1:All │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────┐┌────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска ││ Выберите чат │
└────────────────────────────┘│ │
┌────────────────────────────┐│ │
│ Mom (2) ││ │
│ Work Group @ ││ │
│ Boss ││ │
│ │┌ АККАУНТЫ ────────────────────────────┐ │
│ ││ │ │
│ ││ ● personal (Personal) (текущий) │ │
│ ││ work (Work) │ │
│ ││ ────────────────────── │ │
│ ││ + Добавить аккаунт │ │
│ ││ │ │
│ ││ j/k Nav Enter Select a Add Esc │ │
│ │└──────────────────────────────────────┘ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
└────────────────────────────┘│ │
┌────────────────────────────┐│ │
│ ││ │
└────────────────────────────┘└────────────────────────────────────────────────────────────────────┘
[personal] Инициализация TDLib...

View File

@@ -0,0 +1,35 @@
---
source: tests/screens.rs
assertion_line: 131
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1:All │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────┐┌────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска ││ Выберите чат │
└────────────────────────────┘│ │
┌────────────────────────────┐│ │
│ Mom (2) ││ │
│ Work Group @ ││ │
│ Boss ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
└────────────────────────────┘│ │
┌────────────────────────────┐│ │
│ ││ │
└────────────────────────────┘└────────────────────────────────────────────────────────────────────┘
[default] Инициализация TDLib...

View File

@@ -0,0 +1,21 @@
---
source: tests/screens.rs
assertion_line: 167
expression: output
---
┌ TTUI ────────────────────────────────────────────────────┐
│ 1:All │
└──────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────┐
│👤 Work Group │
└──────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────┐
│ (14:33) Standup notes are ready │
│ │
│ Вы ──────────────── │
│ Thanks, I will review them after lunch (14:33 ✓✓) │
└──────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────┐
│> Press i to type... │
└──────────────────────────────────────────────────────────┘
[default] Инициализация TDLib...

View File

@@ -0,0 +1,35 @@
---
source: tests/screens.rs
assertion_line: 150
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1:All │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────┐┌────────────────────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска ││👤 Work Group │
└────────────────────────────┘└────────────────────────────────────────────────────────────────────┘
┌────────────────────────────┐┌────────────────────────────────────────────────────────────────────┐
│ Mom (2) ││ ──────── 20.12.2021 ──────── │
│▌ Work Group @ ││ │
│ Boss ││Alice ──────────────── │
│ ││ (14:33) Morning, team │
│ ││ │
│ ││Bob ──────────────── │
│ ││ (14:33) Standup notes are ready │
│ ││ │
│ ││ Вы ──────────────── │
│ ││ Thanks, I will review them after lunch (14:33 ✓✓) │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
└────────────────────────────┘└────────────────────────────────────────────────────────────────────┘
┌────────────────────────────┐┌────────────────────────────────────────────────────────────────────┐
│ ││> Draft reply │
└────────────────────────────┘└────────────────────────────────────────────────────────────────────┘
[default] Инициализация TDLib...

View File

@@ -0,0 +1,28 @@
---
source: tests/screens.rs
expression: output
---
┌ TTUI ────────────────────────────────────────────────────────────────────────┐
│ 1:All │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────┐┌──────────────────────────────────────────────────────┐
│🔍 Ctrl+S для поиска ││ Выберите чат │
└──────────────────────┘│ │
┌──────────────────────┐│ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
│ ││ │
└──────────────────────┘│ │
┌──────────────────────┐│ │
│ ││ │
└──────────────────────┘└──────────────────────────────────────────────────────┘
[default] Инициализация TDLib...

View File

@@ -0,0 +1,6 @@
---
source: tests/screens.rs
expression: output
---
30x8
Минимум: 40x10

View File

@@ -0,0 +1,15 @@
---
source: tests/style_snapshots.rs
assertion_line: 78
expression: buffer_to_style_snapshot(&buffer)
---
y=1: 1..1 Cyan/Reset/BOLD: "👤" | 3..6 Cyan/Reset/BOLD: " Mom"
y=4: 21..48 Gray/Reset/NONE: "──────── 20.12.2021 ────────"
y=6: 1..4 Cyan/Reset/BOLD: "Mom" | 5..9 Gray/Reset/NONE: "─────" | 10..10 Yellow/Reset/NONE: "┌" | 11..26 Yellow/Reset/BOLD: " Выбери реакцию" | 27..59 Yellow/Reset/NONE: "────────────────────────────────┐"
y=7: 1..2 Yellow/Reset/BOLD: "" | 3..9 Gray/Reset/NONE: " (14:33" | 10..10 Yellow/Reset/NONE: "│" | 59..59 Yellow/Reset/NONE: "│"
y=8: 10..10 Yellow/Reset/NONE: "│" | 26..27 White/Reset/NONE: " 👍" | 29..29 White/Reset/NONE: "" | 31..32 White/Reset/NONE: " ❤\u{fe0f}" | 34..34 White/Reset/NONE: "" | 36..37 Yellow/Reset/BOLD | REVERSED: " 😂" | 39..39 Yellow/Reset/BOLD | REVERSED: "" | 41..42 White/Reset/NONE: " 🔥" | 44..44 White/Reset/NONE: "" | 59..59 Yellow/Reset/NONE: "│"
y=9: 10..10 Yellow/Reset/NONE: "│" | 59..59 Yellow/Reset/NONE: "│"
y=10: 10..59 Yellow/Reset/NONE: "└────────────────────────────────────────────────┘"
y=15: 0..69 DarkGray/Reset/NONE: "┌────────────────────────────────────────────────────────────────────┐"
y=16: 0..20 DarkGray/Reset/NONE: "│> Press i to type..." | 69..69 DarkGray/Reset/NONE: "│"
y=17: 0..69 DarkGray/Reset/NONE: "└────────────────────────────────────────────────────────────────────┘"

View File

@@ -0,0 +1,14 @@
---
source: tests/style_snapshots.rs
assertion_line: 24
expression: buffer_to_style_snapshot(&buffer)
---
y=0: 0..35 Rgb(160, 160, 160)/Reset/NONE: "┌──────────────────────────────────┐"
y=1: 0..1 Rgb(160, 160, 160)/Reset/NONE: "│🔍" | 3..35 Rgb(160, 160, 160)/Reset/NONE: " Ctrl+S для поиска │"
y=2: 0..35 Rgb(160, 160, 160)/Reset/NONE: "└──────────────────────────────────┘"
y=4: 1..34 White/Reset/NONE: " Mom"
y=5: 1..34 Yellow/Reset/ITALIC: " Work Group"
y=6: 1..34 White/Reset/NONE: " Boss"
y=9: 0..35 DarkGray/Reset/NONE: "┌──────────────────────────────────┐"
y=10: 0..35 DarkGray/Reset/NONE: "│ │"
y=11: 0..35 DarkGray/Reset/NONE: "└──────────────────────────────────┘"

View File

@@ -0,0 +1,12 @@
---
source: tests/style_snapshots.rs
assertion_line: 47
expression: buffer_to_style_snapshot(&buffer)
---
y=1: 1..1 Cyan/Reset/BOLD: "👤" | 3..6 Cyan/Reset/BOLD: " Mom"
y=4: 21..48 Gray/Reset/NONE: "──────── 20.12.2021 ────────"
y=6: 1..4 Cyan/Reset/BOLD: "Mom" | 5..20 Gray/Reset/NONE: "────────────────"
y=7: 1..2 Yellow/Reset/BOLD: "" | 3..10 Gray/Reset/NONE: " (14:33)" | 12..24 White/Reset/NONE: "First message"
y=8: 1..2 Yellow/Reset/BOLD: "▶" | 3..10 Gray/Reset/NONE: " (14:33)" | 12..27 Yellow/Reset/NONE: "Selected message"
y=15: 1..17 Magenta/Reset/BOLD: " Выбор сообщения"
y=16: 1..55 Cyan/Reset/NONE: "↑↓ · r ответ · f переслать · y копир. · d удалить · Esc"