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 41 min
- PR fusionados (30 d)
- 155
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
-
docs: update the providers page for openai-compatible, registerProvider and provider importsPosiblemente ocupada @prakashNalla la tomó hace 1 día. Abiertodocumentation good first issue hacktoberfest website
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
codercops/chatcops#291 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
docs: add a protocol reference page for custom clientsPosiblemente ocupada @kachamsiddarth la tomó hace 1 día. Abiertodocumentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Posiblemente ocupada @bhushan4work la tomó hace 1 día. Abiertoenhancement hacktoberfest help wanted server
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
codercops/chatcops#249 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Create @chatcops/store-sqlite, a store for single-server setupsPosiblemente ocupada @srikar-naidu la tomó hace 1 día. Abiertoenhancement hacktoberfest help wanted server
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
codercops/chatcops#247 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Batch analytics events into an EventSink and compute stats from itPosiblemente ocupada @srujankaleru2007 la tomó hace 1 día. Abiertocore enhancement hacktoberfest help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
codercops/chatcops#246 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/chatcops
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
cursor/community-plugins#465 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
vetro-protocol/vetro-monorepo#978 ·
Los mantenedores suelen responder en 1 día
-
ai-generated bug category:security effort:s priority:p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
LanternOps/breeze#9697 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
maniator/verticopolis#1303 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
components-web-app/docs#297 ·