Skip to content

feat(ui-plugins): add Badge & Tent Card Maker (name-badge-maker) - #285

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

ppppp2005-p wants to merge 11 commits into
zai-org:mainfrom
ppppp2005-p:feat/name-badge-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) / 涉及的插件名称:name-badge-maker (UI Plugin, new)

What / 改动内容

New community UI plugin Badge & Tent Card Maker / 胸牌桌签制作: Print name badges and table tent cards for an event straight from the attendee list. Pick the list (and your logo), enter the event name and date, and get badges laid out on A4 with cut marks — the name is sized to fit, with organisation, title, and a coloured band for each role such as guest, speaker or staff. Tent cards fold in half with the name readable from both sides. Five badge sizes, optional QR code of each attendee's code, Chinese and English names. Runs locally; no design service or API keys.

  • Tools: badge_open, badge_edit, badge_status, badge_export (all share one side panel: file picker, settings, issue list, editable table, preview, export).
  • From your list: recognises 姓名, 英文名, 单位, 职位, 身份, 桌号, 编号 and English headers.
  • Badges on A4: 100×70, 90×120, 4×3 in, 85.6×54 or A6, with cut marks; event header with your logo.
  • Names that fit: long Chinese, English and minority names are shrunk to fit the badge.
  • Role colours: each role gets its own colour band automatically, or set your own (嘉宾=#b45309).
  • Tent cards: A4 landscape, fold along the dashed line; the name reads from both sides.
  • QR code: optionally print each attendee's code as a QR for check-in scanners.
  • Scope (v0.1):
    • Badges are printed on plain sheets and cut; no die-cut label templates in v0.1.
    • No photos on badges in v0.1.
    • Chinese text needs a Chinese font on the computer (found automatically).
  • Local only; writes only name-badge-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/name-badge-maker/attendees.xlsx with the logo and exported the badges and tent cards; demo video in the comments)

@ppppp2005-p

Copy link
Copy Markdown
Author

ZCode desktop demo (ZCode 4.0.0, macOS arm64)

name-badge-maker-demo.mp4

Flow shown:

  1. Installed name-badge-maker from a local marketplace built from this PR's branch.
  2. Asked ZCode to open p100/name-badge-maker/attendees.xlsx and logo.png with the event name 2026 青禾产品大会, fix anything that blocks the export, then export (badge_open, badge_edit only if needed, badge_export).
  3. badge_open read 10 attendees with no issues, so no edits were needed. The side panel (胸牌桌签制作) shows the settings (event name, date / venue, badge size 100×70 mm, theme colour, role colours, QR code, sort order, show company/title on tent cards, show English name), the chips (10 badges, 8 per page, 2 pages, 4 roles) and the attendee table.
  4. badge_export wrote name-badge-maker/attendees/badges.pdf and tent-cards.pdf. The model pointed out three empty optional fields (Daniel Moreau has no separate English name, 王磊 has no company or title, 周子涵 has no company); they simply print blank. The second image is page 1 of badges.pdf: the logo and event header, names auto-sized (Daniel Moreau fits on one line), English names, titles, companies and colour-coded role bars (嘉宾 / 讲师 / 工作人员 / 媒体) with crop marks.

演示流程:本地 marketplace 安装 → badge_open(10 人、4 种身份,无问题)→ badge_export 生成胸牌 PDF 和桌签 PDF;第二张图是胸牌第 1 页(logo、活动名、姓名自适应、按身份配色)。

@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