Commit Graph

15 Commits

Author SHA1 Message Date
ivan-igorevich 2612e5ee22 Mac OS tests 2026-11-21 23:51:22 +03:00
ivan-igorevich de7d377e42 added missing file (desynced with dev env on debian) 2026-11-21 22:55:03 +03:00
Ivan I. Ovchinnikov e7089c9427 fix(ui): remove window clamping that broke scrolling
The window-scroll clamp and forced set-window-start fought redisplay
and made the prompt unreachable. Rely on plain Emacs scrolling with
buffer-local scroll-conservatively=101; keep recenter -1 only for the
at-bottom render path.
2026-11-21 15:22:42 +03:00
Ivan I. Ovchinnikov ca973ac530 fix(ui): draft-local keymap and correct initial cursor placement
- Toggle overriding-local-map via post-command-hook: while point is in
  the draft, a global-map-parented keymap shadows mode hotkeys (g, h,
  q, SPC, DEL) so any text can be typed; RET/C-c C-c send
- Treat missing window as "at bottom" during first render and force
  point to the prompt after switch-to-buffer
2026-11-21 15:04:17 +03:00
Ivan I. Ovchinnikov d33edb4e44 feat(bridge,ui): preserve file names and use system opener
- Add mattermost-download-dir custom (default ~/Downloads)
- Pass file_name and download_dir in download_file request
- Save files with original names in user-configured directory
- Open downloaded files via xdg-open (system default application)
2026-11-21 14:03:22 +03:00
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 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 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 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 84ca3d07f8 Initial commit 2026-11-16 13:59:40 +03:00