[FEATURE] feat: Pinned Message Banner below chat header

Aperta
#1,383 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@deepak0x ci sta già lavorando.

Dal 23/10/2026.

  • #1384 di @Tisya-Gupta — aperta
  • #1398 di @deepak0x — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
JavaScript
Stelle
171
Fork
421
Merge medio
3g 6h
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/EmbeddedChat

Tutte le issue di RocketChat/EmbeddedChat

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.