跳到正文
Skillpedia
网站与界面(前端)7.6k · #13196

booker

它能做什么

这项技能说明公开预约页面如何引导访客从选择日期一直到确认会议。适合构建或修改该预约界面的开发者。

适用场景

  • ✓当你修改预约页面的步骤,例如日期、时间、表单和确认的时候。
  • ✓当你需要在预约页面上处理时区,或 12 小时制与 24 小时制的时候。
  • ✓当你要让预约页面无障碍,或在手机上运行良好的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/booker/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/booker/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让预约页面在手机上更易用,并且在有人刷新时仍保留所选的时间。”

每周 5 个新技能,1 分钟读完。

工作原理

页面依次经过四个阶段,从选择日期到确认。它把所选的日期、时段和时区保存在页面地址中,因此刷新后选择不会丢失。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Booker

Stages

  1. pick-date — month grid shows days with availability
  2. pick-slot — available slots on the selected day
  3. fill-form — attendee form (name, email, custom fields)
  4. success — confirmation with add-to-calendar buttons

Plus reschedule mode — prefilled from existing booking uid.

Animations

Use motion (motion/react) AnimatePresence with fadeInLeft variants. The outer container animates its width across stages: narrow (calendar only) → wider (calendar + slots) → widest (form).

Timezone + 12/24h

  • Detect browser timezone at mount; let user override via dropdown.
  • Persist choice to localStorage key scheduling.timezone.
  • 12/24h toggle near slot column; persist to user settings.

URL + application-state sync

Selected date, slot, timezone, and duration are mirrored to URL query params AND application_state.booker-state so:

  • Page refresh preserves selection.
  • Agent can read the user's current pick.

Copy-link affordance

Every event-type row has a "copy link" button. On click, write to clipboard and toast "Copied!" with Sonner. Works on mobile Safari too.

Accessibility

  • Month grid is ARIA grid + gridcell with arrow-key nav.
  • Slot buttons are keyboard-focusable, with aria-pressed.
  • Focus returns to trigger on modal close.
  • Toast content announced via aria-live=polite.

Mobile

< 768px: stack vertically. Calendar full-width, slot list below, form slides in as full-screen sheet.

常见问题

预约的各个阶段是什么?

选择日期、选择时段、填写表单和成功。

页面会记住所选的时区吗?

会。该选择保存在本地存储中,访客可以通过下拉菜单进行更改。

页面如何支持键盘用户?

它的日期网格支持方向键导航,时段按钮也可以通过键盘获得焦点。

详情

作者的原始描述

Public booking flow — the state machine, animations, and URL/app-state sync.

repo: BuilderIO/agent-native

热度

GitHub 星标
7.6k
排名
#13196
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能