Per-channel unread message badge: multi-constellation rollup and auto-select clearing

未关闭
#396 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
react, typescript
领域
frontend

调研方向

The work lives in the meshflow-ui frontend, not this repo. Start with src/pages/protocol/ProtocolMessageHistoryPage.tsx, specifically the channel auto-select effect and the call to markAsReadForChannel, and check how it reacts to constellation switches. Before coding, the open design question (whether channel badges aggregate across constellations or stay scoped) needs a maintainer decision. Done means the auto-select path clears unread only on explicit selection or initial mount, and the constellation-level rollup is decided and implemented.

由索引模型根据 Issue 内容生成。

描述

Type: enhancement | Area: Messages / unread

Follow-up gap from the #279 work (protocol-scoped + per-channel unread badges).

Context

The messages page renders one constellation and one channel at a time (ProtocolMessageHistoryPage.tsx). Per-channel unread badges are therefore only visible for channels in the currently selected constellation. Unread on channels in other constellations still contributes to the protocol nav badge but has no per-channel surface until the user switches constellation.

The system currently runs effectively one constellation per protocol, so this is acceptable for now and is being accepted as a known gap rather than blocking #279.

Gaps to address later

  • Multi-constellation rollup: surface unread on constellation buttons (or a rollup badge) so unread in a non-active constellation is discoverable.
  • Per-channel badges across constellations: decide whether channel badges should aggregate or remain scoped to the active constellation.
  • Auto-select mark-as-read nuance: the messages page clears channel unread when auto-selecting the first channel. With a single constellation this is harmless, but with multiple constellations the channel auto-select effect (which also runs on constellation switch) must not blanket-clear unread for channels the user did not explicitly open. Scope markAsReadForChannel to genuine user selection + initial mount.

Related

  • meshflow-ui #279 (protocol + per-channel unread badges, channel button row)
  • Parent epic #341 (messages UI redesign)
主要语言
Python
星标
1
派生
0
平均合并
1 天 10 小时
30 天内合并 PR
8

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pskillen/meshflow-api 的其他 Issue

查看 pskillen/meshflow-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。