Suggested questions as buttons in an empty chat
Los mantenedores suelen responder en 1 día
@srujankaleru2007 ya está trabajando en esto.
Desde el 26/10/2026.
- #348 de @srujankaleru2007 — fusionado
Evaluación
Este issue todavía no se ha evaluado.
Descripción
A new visitor opening the chat sees only the welcome message. A few suggested questions ("Compare plans", "Book a demo") help people start, and they're common in support widgets.
What to do
- Add
suggestions?: string[]toWidgetConfig. - When the conversation has no messages from the visitor yet, show them under the welcome message as a row of
<button type="button">s, wrapped in a container withrole="group"and anaria-labelfrom a new locale string (suggestionsLabel: 'Suggested questions'). - Clicking one sends its text as the visitor's message and removes the row.
- Don't show them while the pre-chat form is up, and don't show them when a saved conversation is restored.
- Document the option in
configuration.mdx. Nodata-*attribute for now, since a list doesn't fit well in one. - Later, the server will be able to send suggestions as a
suggestionspart. That's not part of this issue, but keep the rendering in its own small function so it can be reused.
Where to look
packages/widget/src/widget.ts(WidgetConfig,showChatView,handleSend)packages/widget/src/dom/messages.tspackages/widget/src/i18n.ts
Acceptance criteria
- Suggestions show in a new, empty chat, and not after the visitor sent something, over a restored conversation or with the pre-chat form open
- Clicking one sends it and removes the row
- They're real buttons in a labelled group
- Tests for each case
- Docs and a changeset for
@chatcops/widget(minor, it adds an option) -
pnpm test:coverage,pnpm lintandpnpm sizepass
The chat panel (dist/chatcops.panel.js) has a 14 kB gzip budget and about 800 B of it is left, shared by several open issues. Keep the change small, and check pnpm size before you open the PR.
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 7
- Merge medio
- 3 h 30 min
- PR fusionados (30 d)
- 258
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/chatcops
-
Widget: `data-welcome-bubble-delay="3s"` becomes a 3 ms delayPosiblemente ocupada @prakashNalla la tomó hoy. Abierto
codercops/chatcops#445 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Widget: a "New reply" button when the visitor has scrolled upPosiblemente ocupada @srujankaleru2007 la tomó hoy. Abiertoenhancement hacktoberfest widget
codercops/chatcops#420 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
chatcops test: --url to test a deployed serverPosiblemente ocupada @srujankaleru2007 la tomó hoy. Abiertoenhancement hacktoberfest testing
codercops/chatcops#419 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
chatcops test: GitHub Actions reporterPosiblemente ocupada @mohithreddydonala37 la tomó hoy. Abiertoenhancement hacktoberfest testing
codercops/chatcops#417 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
chatcops test: JUnit reporter and --outputPosiblemente ocupada @kachamsiddarth la tomó hoy. Abiertoenhancement good first issue hacktoberfest testing
codercops/chatcops#416 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/chatcops
Issues similares
-
bug ui-dashboard
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
caelestia-dots/caelestia#534 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug(scripts): install-git-hooks.sh points core.hooksPath at .githooks/, which does not existAbiertoarea: scripts bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
tdk-landscape/tdk-cli-core#2706 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bobadilla-tech/biasmarket.com#402 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
javvadivijayprasad/sel2pw#28 ·