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

Đang mở
#396 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
23 giờ 9 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pskillen/meshflow-api

Tất cả issue của pskillen/meshflow-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.