[FEATURE] feat: Pinned Message Banner below chat header

オープン
#1,383 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@deepak0x がすでに取り組んでいます。

2026年10月23日 から。

  • #1384 @Tisya-Gupta による — オープン
  • #1398 @deepak0x による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, react
領域
frontend

調査の方向性

Start from the ChatHeader component, since the banner must render directly below it, and from the ECOptions definition, where the showPinnedBanner flag would be added with a default of true. Read how the chat body scrolls to and highlights a message, and how real-time pin and unpin events reach the client. Done means the banner appears only when messages are pinned, cycles through them, scrolls to the selected message, and respects the flag. The issue spans several subsystems and has no linked pull request, so ask a maintainer before starting.

索引モデルが issue の本文から書いたものです。

説明

As an EmbeddedChat developer

I need to:
Show a dismissible banner below the chat header that surfaces the current room's pinned messages, lets users navigate between them, and scrolls to the selected message in the chat body.

So That:
Participants are immediately aware of pinned content (announcements, rules, action items) without having to open the Pinned Messages sidebar, matching the discoverability behaviour of other mainstream chat clients.

Acceptance Criteria

  • A banner appears below the ChatHeader whenever the current room has one or more pinned messages; it is hidden when there are none.
  • The banner shows a pin icon, the text snippet of the currently displayed pinned message (truncated at ~80 characters with ellipsis), and the author's username.
  • When multiple messages are pinned, left/right arrow buttons cycle through them and a counter label (e.g. "2 / 5") reflects the current position.
  • Clicking the banner body scrolls the message list to the corresponding message and applies a brief highlight animation on that message.
  • A close (✕) button dismisses the banner for the current session without unpinning; it reappears on room change or page reload.
  • An ECOptions boolean flag (e.g. showPinnedBanner, default true) lets host applications hide the banner entirely.
  • The banner respects the active theme and is compatible with both the default flat layout and the Bubble message variant.
  • When a message is pinned or unpinned in real time the banner updates (or disappears) without a page reload.
主要言語
JavaScript
スター
171
フォーク
421
平均マージ
3日 6時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/EmbeddedChat のほかの issue

RocketChat/EmbeddedChat の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。