Skip to content

feat(ui-plugins): add Event Tickets (event-ticket-maker) - #286

Open
ppppp2005-p wants to merge 11 commits into
zai-org:mainfrom
ppppp2005-p:feat/event-ticket-maker
Open

ppppp2005-p wants to merge 11 commits into
zai-org:mainfrom
ppppp2005-p:feat/event-ticket-maker

Conversation

@ppppp2005-p

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI)
  • Not applicable / 不适用

Affected plugin name(s) / 涉及的插件名称:event-ticket-maker (UI Plugin, new)

What / 改动内容

New community UI plugin Event Tickets / 活动门票签到: Issue QR-code tickets for your event and run check-in from a spreadsheet. Pick the guest list, enter the event name, time and place, and every guest gets a unique, hard-to-guess ticket code. Print three tickets per A4 page with a tear-off stub, or export one PDF per guest to send out, plus a check-in workbook with a signature column. On the day, pick the scanner's export together with the guest list to see who has arrived — unknown, mistyped and repeated scans are flagged. Codes stay the same when you reopen the list. Runs locally; no ticketing service or API keys.

  • Tools: ticket_open, ticket_edit, ticket_status, ticket_export (all share one side panel: file picker, settings, issue list, editable table, preview, export).
  • From your guest list: recognises 姓名, 票种, 座位, 手机, 邮箱 and English headers; existing codes in the sheet are kept.
  • Safe codes: PREFIX-XXXX-XXXX with a check character and no look-alike letters (0/O, 1/I), so typos are caught.
  • Codes that stay: reopening the same list reuses the codes already issued and manual check-ins.
  • Tickets: 3 per A4 with a tear-off QR stub, or one per page for sending; one PDF per guest too.
  • Check-in: pick scanner exports (CSV, XLSX or TXT) with the list; unknown, mistyped and repeat scans are flagged.
  • Check-in workbook: list by name with arrival time and a signature column, plus a summary by ticket type.
  • Scope (v0.1):
    • Scanning is done with any QR scanner or phone app that can export a list; this plugin reads that export.
    • Tickets aren't emailed for you — send the per-guest PDFs yourself.
    • Ticket codes are recorded in event-ticket-maker/ticket-codes.json; keep that file to keep codes stable.
  • Local only; writes only event-ticket-maker/ in the workspace. Workspace paths are checked so symlinks cannot lead reads or writes outside the workspace (regression test included).
  • Tests: vitest unit + MCP tool tests on real sample files, and a browser e2e with the official AppBridge host (panel → open → edit → export).

A ZCode Desktop demo recording is attached in the comments. / ZCode 桌面版演示录屏见评论。

Self-check / 自查清单

  • Plugin name is unique kebab-case; new external plugin directory is external_plugins/<name>/
  • Usage category is set (productivity)
  • Plugin type and affected names are declared above
  • version 0.1.0 in both plugin.json and marketplace.json
  • README.md (EN) and README_CN.md (中文) both provided and equivalent
  • description_i18n has both en and zh-CN
  • No secrets, machine-specific paths, or private dependencies
  • Model/API/network dependencies documented
  • python3 scripts/validate.py and python3 scripts/build_dist.py pass locally
  • Exercised in ZCode Desktop (ZCode 4.0.0, macOS arm64: installed from a local marketplace, opened p100/event-ticket-maker/guests.csv and exported the tickets and the check-in sheet; demo video in the comments)

@ppppp2005-p

Copy link
Copy Markdown
Author

ZCode desktop demo (ZCode 4.0.0, macOS arm64)

event-ticket-maker-demo.mp4

Flow shown:

  1. Installed event-ticket-maker from a local marketplace built from this PR's branch.
  2. Asked ZCode to open p100/event-ticket-maker/guests.csv with the event name 青禾产品发布会, fix anything that blocks the export, then export (ticket_open, ticket_edit only if needed, ticket_export).
  3. ticket_open gave each guest a ticket code (TKT-XXXX-XXXX) and found no issues, so no edits were needed. The side panel (活动门票签到) shows the settings (event name, date/time, venue, code prefix TKT, theme colour, ticket note, layout of 3 per A4 page), the chips (8 tickets, 0 checked in, 0 scans, 0 unknown) and the guest table with codes. The model also pointed out that the date and venue were left empty and that 赵小雨's media ticket has no seat.
  4. ticket_export wrote event-ticket-maker/guests/tickets.pdf (all tickets), one PDF per guest in tickets/ (named by code and name) and checkin.xlsx (the check-in sheet). The codes are kept in event-ticket-maker/ticket-codes.json, so re-exporting keeps the same code for each guest. The second image is page 1 of tickets.pdf: name, type (VIP / 普通), seat and a QR code with the ticket code on each tear-off stub.

演示流程:本地 marketplace 安装 → ticket_open(8 张票,自动生成票号,无问题)→ ticket_export 生成合订 PDF、每人一份 PDF 和签到表;票号存进 ticket-codes.json,重导不变;第二张图是门票第 1 页(姓名、票种、座位、二维码)。

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants