Skip to content

feat(ui-plugins): add Calendar File Builder (ics-calendar-builder) - #290

Open
ppppp2005-p wants to merge 11 commits into
zai-org:mainfrom
ppppp2005-p:feat/ics-calendar-builder
Open

ppppp2005-p wants to merge 11 commits into
zai-org:mainfrom
ppppp2005-p:feat/ics-calendar-builder

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) / 涉及的插件名称:ics-calendar-builder (UI Plugin, new)

What / 改动内容

New community UI plugin Calendar File Builder / 表格转日历: Turn an event spreadsheet into a calendar file that Apple Calendar, Google Calendar, Outlook and phones can import. Pick the sheet with titles, dates and times, and get a standard .ics with time zones done properly (daylight saving included), all-day and multi-day events, reminders like 15 minutes or 1 day before, and repeats such as every week, every other week, Mon/Wed/Fri, workdays, monthly or yearly with a count or end date. Also get one .ics per event to send around and a printable schedule. Runs locally; no calendar account or API keys.

  • Tools: ics_open, ics_edit, ics_status, ics_export (all share one side panel: file picker, settings, issue list, editable table, preview, export).
  • From your sheet: recognises 标题, 日期, 开始, 结束, 结束日期, 全天, 地点, 说明, 重复, 重复截止, 提醒, 分类 and English headers; “14:00-16:00” in one cell works too.
  • Time zones done right: any IANA zone, with a VTIMEZONE built from real daylight-saving changes.
  • All-day, multi-day and overnight events.
  • Repeats in plain words: 每周, 每两周, 每周一三五, 工作日, 每月, 每年, weekly, every 2 weeks… with a count or end date.
  • Reminders: 15分钟, 1小时, 1天 or several at once; set a default for every event.
  • Outputs: one calendar file, one .ics per event, and a printable schedule by month.
  • Scope (v0.1):
    • Creates files to import; it doesn't sync with or write to your online calendar.
    • Inviting attendees isn't supported in v0.1.
  • Local only; writes only ics-calendar-builder/ 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/ics-calendar-builder/events.xlsx and exported the .ics files and the printable schedule; demo video in the comments)

@ppppp2005-p

Copy link
Copy Markdown
Author

ZCode desktop demo (ZCode 4.0.0, macOS arm64)

ics-calendar-builder-demo.mp4

Flow shown:

  1. Installed ics-calendar-builder from a local marketplace built from this PR's branch.
  2. Asked ZCode to open p100/ics-calendar-builder/events.xlsx with the calendar name 青禾日程, fix anything that blocks the export, then export (ics_open, ics_edit only if needed, ics_export).
  3. ics_open read 8 events (3 all-day, 5 repeating, 6 with reminders, time zone Asia/Shanghai) and found no issues, so no edits were needed. The model noted that 年终总结会 has no end time (the default 60 minutes is used) and that 跨年夜直播值班 runs past midnight (22:00 → 02:00). The side panel (表格转日历) shows the settings (calendar name, IANA time zone, default duration, default reminder), the chips and the event table.
  4. ics_export wrote ics-calendar-builder/青禾日程/青禾日程.ics (all 8 events, with a VTIMEZONE and X-WR-CALNAME), one .ics per event in events/ and a printable schedule.html (December 2026 and January 2027). I checked the calendar file afterwards: weekly RRULEs such as FREQ=WEEKLY;BYDAY=TU;UNTIL=… and BYDAY=MO,WE,FR;COUNT=12, a monthly rent reminder, a yearly birthday, all-day events as VALUE=DATE, and the overnight shift ending at 20270101T020000. The last card is the final state.

演示流程:本地 marketplace 安装 → ics_open(8 个活动:3 个全天、5 个重复、6 个带提醒,时区 Asia/Shanghai)→ ics_export 生成合并 .ics、每个活动单独 .ics 和可打印日程表;之后核对了 RRULE、全天活动和跨午夜活动。

@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