Commit Graph

8 Commits

Author SHA1 Message Date
Ivan I. Ovchinnikov 332275eb2e fix(ui): allow header marker edits in read-only dashboard
mattermost--set-header-marker calls replace-match, which raised
"Buffer is read-only" inside toggle, aborting before the collapsed
state was recorded. All marker/overlay mutation now goes through
mattermost--collapse-section with inhibit-read-only bound.
Also deduplicate section rendering into mattermost--insert-section.

fix(mm-client): parse files/info tolerantly and log raw body

Accept array, {file_infos: [...]}, and {order, file_infos: {id: ...}}
shapes; add serde defaults to FileInfo fields. Log body prefix at
debug level to identify the actual Mattermost 10.9.3 response shape.
2026-11-21 13:05:27 +03:00
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 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 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 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 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