Document the pre-chat form
Los mantenedores suelen responder en 1 día
@masyarakatai ya está trabajando en esto.
Desde el 16/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- documentation
Línea de trabajo
Lee packages/widget/src/widget.ts y packages/widget/src/dom/prechat-form.ts para conocer la configuración y el comportamiento; después, examina packages/widget/dev.html como ejemplo. Añade website/src/content/docs/widget/pre-chat-form.mdx y actualiza website/src/content/docs/widget/configuration.mdx y la barra lateral en website/astro.config.mjs; termina cuando estén documentados las opciones, el comportamiento, los eventos y las callbacks indicados, y pnpm --filter @chatcops/website build se complete correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The widget now has a configurable pre-chat form that collects details like name and email before the conversation starts. It shipped in @chatcops/widget 0.4.0, but the docs site only mentions it in the request schema on the Server Setup page. The WidgetConfig reference on the Configuration page also leaves out preChatForm, onLeadCaptured and onPreChatSubmit.
Where to look
packages/widget/src/widget.ts(PreChatField,PreChatFormConfig,WidgetConfig,handlePreChatSubmit,showChatView)packages/widget/src/dom/prechat-form.ts(field types and validation)packages/widget/dev.html(a working example config)website/src/content/docs/widget/configuration.mdxwebsite/astro.config.mjs(sidebar)
Acceptance criteria
- New page
website/src/content/docs/widget/pre-chat-form.mdx, added to the Widget section of the sidebar - Documents
enabled,title,subtitle,submitLabel, and each field option:name,type(text,email,selectortextarea),label,placeholder,required,options - Explains how the form behaves:
- it only shows when there is no saved conversation and it hasn't been submitted in this browser session
- required fields and email format are validated
- a field named
namepersonalizes the welcome message - a field named
messageis sent as the first chat message - answers go to the server as
userData(up to 50 fields, names up to 100 characters, each value up to 500 characters) with the next chat request, and are re-sent if that request fails - the server saves the answers with the conversation's first message and uses the saved ones from then on, so later requests can't change them. The server's
preChatFieldsoption (packages/server/src/config.ts:45) keeps only the listed fields. Link to it on the Server Setup page instead of documenting it again
- Documents
onPreChatSubmitand thepreChatSubmitevent - Notes that the form can only be configured from JavaScript (there are no
data-*attributes for it) -
WidgetConfiginconfiguration.mdxincludespreChatForm,onLeadCapturedandonPreChatSubmit -
pnpm --filter @chatcops/website buildsucceeds - Docs only, no changeset needed
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 7
- Merge medio
- 3 h 33 min
- PR fusionados (30 d)
- 176
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
-
Add startup checks that catch weak or leaked security settingsPosiblemente ocupada @varun-pahuja la tomó hace 3 días. Abiertoenhancement good first issue hacktoberfest server
codercops/chatcops#231 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Type-check the TypeScript samples in the docsPosiblemente ocupada @An16og la tomó hace 2 días. Abiertodocumentation hacktoberfest help wanted testing
Dificultad 4/5 3-5 días Aptitud para principiantes 70/100
codercops/chatcops#201 · 7 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Hacktoberfest 2026: start hereAbiertohacktoberfest
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Add built-in translations to the widgetPosiblemente ocupada @piyusshhjangid la tomó hace 1 día. Abiertohelp wanted widget
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
codercops/chatcops#55 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/chatcops
Issues similares
-
level/task type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
wazuh/wazuh-dashboard-plugins#9508 ·
Los mantenedores suelen responder en 1 día
-
Testnet EOL page links Zonescan mainnetPosiblemente ocupada @napelvs la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
Los mantenedores suelen responder en 1 día
-
[Docs] docs/architecture.mermaid leaves out 21 of the 51 src/ directoriesPosiblemente ocupada @uyg7x la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
enhancement status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dongdongbh/Mindwtr#1438 ·
Los mantenedores suelen responder en 1 día