Commit Graph

14 Commits

Author SHA1 Message Date
Ivan I. Ovchinnikov b5777565d7 refactor(bridge): split handlers.rs into modules
- handlers/mod.rs: public handler functions
- handlers/helpers.rs: utility functions (get_client, get_token, etc.)
- handlers/enrich.rs: post enrichment (display names, files)
- Fix FileInfo export in mm-core

feat(ui): preserve collapsed state on dashboard refresh

- Track collapsed team IDs in buffer-local mattermost--collapsed-teams
- Save collapse state before re-rendering (define-derived-mode resets locals)
- Restore collapse state after re-rendering
- Reset dashboard buffer on mattermost-reset-state
2026-11-21 12:13:57 +03:00
Ivan I. Ovchinnikov 452005b98c feat(bridge,ui): sort channels by last activity
- Add last_post_at field to Channel model (Rust)
- Sort channels by last_post_at descending in dashboard (Emacs)
2026-11-21 11:26:25 +03:00
Ivan I. Ovchinnikov 628df77588 fix(ui): repair dashboard parsing and group channels by team
- Read channel type from :type (matches Rust serde rename), not :channel_type
- Group channels by team with Direct messages section last
- Use text properties instead of regex to resolve channel under point
- Fallback "Other" section when bridge omits teams
2026-11-21 11:21:06 +03:00
Ivan I. Ovchinnikov f2f4f62cd6 feat(ui): bold sender names in channel buffers
- Add mattermost-sender-face (customizable bold face)
- Use propertize in mattermost--format-post for sender names
2026-11-21 11:04:56 +03:00
Ivan I. Ovchinnikov 618632b03b feat(bridge,ui): resolve sender names in WS events + improve message format
- Add user display name resolution for WebSocket 'posted' events
- Change message format to multi-line: [YYYY-MM-DD HH:MM] **Name:**\nmessage
- Add blank line between messages for readability
- Disable truncate-lines in channel buffers for long messages
2026-11-21 11:02:28 +03:00
Ivan I. Ovchinnikov c1f1b29135 feat(mm-client, mm-bridge): resolve sender display names in history
- Add User::display_name() helper (first+last name, fallback to username)
- Add get_users_by_ids batch endpoint in mm-client
- Add user_display_name field to Post model (skip_deserializing)
- Enrich posts in handle_get_history via single /users/ids request
- Emacs already uses user_display_name when available
2026-11-21 10:30:46 +03:00
Ivan I. Ovchinnikov d62cb61c67 perf(ui): remove redundant history refresh after send_post
The message now appears automatically via WebSocket fan-out,
eliminating the extra get_history round-trip.
2026-11-21 10:21:16 +03:00
Ivan I. Ovchinnikov 8f1252e7e3 feat(mm-client, mm-bridge): resolve DM channel display names
- Add get_user method to mm-client to fetch user profile by ID
- Update handle_list_channels to post-process DM channels
- Parse 'user1__user2' format to find the other participant
- Fetch other participant's profile and populate display_name
- Fallback to username if first_name/last_name are empty
2026-11-21 09:22:40 +03:00
Ivan I. Ovchinnikov 612456334f feat(ui): working vertical slice — dashboard, channel view, send
- mattermost-dashboard-mode: list channels from bridge
- mattermost-channel-mode: view history and send messages
- Interactive connection prompt (password in memory only)
- Fix JSON array parsing (vectors → lists) in protocol layer
- Add mattermost-reset-state for clean reconnects
- Add dev-check.sh for quick Rust validation
- Verified end-to-end: Emacs → Bridge → Mattermost → back
2026-11-21 09:03:19 +03:00
Ivan I. Ovchinnikov 8e98a68906 feat(bridge,ui): add list_channels API and interactive dashboard
- Add Channel model to mm-core
- Implement get_my_channels in mm-client
- Add list_channels handler and routing in mm-bridge
- Create mattermost-dashboard-mode with interactive connection prompt
- Add dev-check.sh script for quick Rust validation
2026-11-20 18:53:51 +03:00
Ivan I. Ovchinnikov f08289905d documented verification and added file attachements to post response 2026-11-18 13:20:04 +03:00
Ivan I. Ovchinnikov 6296a3a719 stage four unchecked (bridge with teams and self dm). undocumented 2026-11-18 12:57:06 +03:00
Ivan I. Ovchinnikov 5c3a1473e3 containered launch empty web status 2026-11-16 17:37:16 +03:00
Ivan I. Ovchinnikov 84ca3d07f8 Initial commit 2026-11-16 13:59:40 +03:00