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.
This commit is contained in:
Ivan I. Ovchinnikov
2026-11-21 13:05:27 +03:00
parent b5777565d7
commit 332275eb2e
3 changed files with 130 additions and 106 deletions
+3
View File
@@ -96,8 +96,11 @@ pub struct Channel {
/// File metadata attached to a post.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FileInfo {
#[serde(default)]
pub id: String,
#[serde(default)]
pub name: String,
#[serde(default)]
pub size: i64,
#[serde(default)]
pub mime_type: String,