[FEATURE] feat: Pinned Message Banner below chat header

Offen
#1,383 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@deepak0x arbeitet bereits daran.

Seit 23.10.2026.

  • #1384 von @Tisya-Gupta — offen
  • #1398 von @deepak0x — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react
Bereich
frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
JavaScript
Sterne
171
Forks
421
Ø Merge
3 T. 6 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RocketChat/EmbeddedChat

Alle Issues in RocketChat/EmbeddedChat

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.