Document the pre-chat form
Maintainer thường phản hồi trong vòng 1 ngày
@masyarakatai đang làm issue này rồi.
Từ ngày 16/10/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc packages/widget/src/widget.ts và packages/widget/src/dom/prechat-form.ts để tìm hiểu cấu hình và hành vi, sau đó xem packages/widget/dev.html làm ví dụ. Thêm website/src/content/docs/widget/pre-chat-form.mdx, cập nhật website/src/content/docs/widget/configuration.mdx và thanh bên trong website/astro.config.mjs; hoàn tất khi các tùy chọn được liệt kê, hành vi, sự kiện và callback đã được ghi tài liệu, đồng thời pnpm --filter @chatcops/website build chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 7
- Merge trung bình
- 3 giờ 41 phút
- Pull request đã merge (30 ngày)
- 155
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/chatcops
-
docs: update the providers page for openai-compatible, registerProvider and provider importsCó thể đã có người làm @prakashNalla đã nhận hôm nay. Đang mởdocumentation good first issue hacktoberfest website
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
codercops/chatcops#291 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: add a protocol reference page for custom clientsCó thể đã có người làm @kachamsiddarth đã nhận hôm nay. Đang mởdocumentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Có thể đã có người làm @bhushan4work đã nhận hôm nay. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
codercops/chatcops#249 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-sqlite, a store for single-server setupsCó thể đã có người làm @srikar-naidu đã nhận hôm nay. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
codercops/chatcops#247 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Batch analytics events into an EventSink and compute stats from itCó thể đã có người làm @srujankaleru2007 đã nhận hôm nay. Đang mởcore enhancement hacktoberfest help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
codercops/chatcops#246 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/chatcops
Issue tương tự
-
agent/scanner help wanted hive/claimed-by-scanner kind/bug stage/020-claimed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
hivecommons/rationguard#315 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready area: ui-sdk priority: p3 type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
schlessera/brain-kit#2534 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug lane:gh-5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
LLM-4-People/bridlewise-testing#122 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement priority:low ready-for-dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày