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
This commit is contained in:
Ivan I. Ovchinnikov
2026-11-21 09:03:19 +03:00
parent 8e98a68906
commit 612456334f
4 changed files with 166 additions and 33 deletions
+3 -2
View File
@@ -15,7 +15,7 @@
(defun mattermost-connect-to-bridge ()
"Connect to the running Rust bridge."
(interactive)
(when (and mattermost--process (process-live-p mattermost--process))
(when (and (boundp 'mattermost--process) mattermost--process (process-live-p mattermost--process))
(delete-process mattermost--process))
(setq mattermost--process
@@ -46,7 +46,8 @@
(setq lines (butlast lines)))
(dolist (line lines)
(let ((msg (ignore-errors (json-parse-string line :object-type 'plist))))
;; ДОБАВЛЕНО: :array-type 'list чтобы JSON-массивы становились списками, а не векторами
(let ((msg (ignore-errors (json-parse-string line :object-type 'plist :array-type 'list))))
(if msg
(let ((id (plist-get msg :id))
(type (plist-get msg :type)))