Suggested questions as buttons in an empty chat
Les mainteneurs répondent en général sous 1 jour
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 13
- Forks
- 7
- Merge moyen
- 3 h 29 min
- PR mergées (30 j)
- 215
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de codercops/chatcops
-
New package: @chatcops/store-upstash-vectorPeut-être pris @srujankaleru2007 l’a pris aujourd’hui. Ouverteenhancement hacktoberfest help wanted
codercops/chatcops#362 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Announce each reply once instead of every streamed chunkPeut-être pris @kachamsiddarth l’a pris il y a 1 jour. Ouverteaccessibility enhancement hacktoberfest widget
codercops/chatcops#338 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Make the welcome bubble a real buttonPeut-être pris @kachamsiddarth l’a pris il y a 1 jour. Ouverteaccessibility enhancement good first issue hacktoberfest widget
codercops/chatcops#336 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Hacktoberfest 2026: start hereOuvertehacktoberfest
Difficulté 1/5 Moins d'une heure Accessibilité débutants 35/100
codercops/chatcops#73 · 7 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Add built-in translations to the widgetPeut-être pris @piyusshhjangid l’a pris il y a 1 jour. Ouvertehelp wanted widget
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
codercops/chatcops#55 · 23 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de codercops/chatcops
Issues similaires
-
New icon: `filter-clear`Ouvertecalcite-ui-icons enhancement impact - p3 - not time sensitive needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
Esri/calcite-design-system#15467 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
diegosouzapw/OmniRoute#18390 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
guilhermerodz/input-otp#157 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
davidjerleke/embla-carousel#1414 ·
Les mainteneurs répondent en général sous 4 jours