mirror of
https://github.com/bitbaum/whenkit.git
synced 2026-12-03 23:47:30 +01:00
Day chips, time chips, length chips, a readable date field over the native
picker, and a booking request that resolves to {startsAt, endsAt} in the
provider's zone.
- Core (no React): wall-clock YYYY-MM-DD / HH:MM strings, one zonedToUtc
(DST gaps resolve forward), todayIn(zone), slots inside opening hours,
lengths that fit, resolveRequest / describeRequest for three choices:
slot, days, flexible.
- React: BookingRequestPicker, DayStrip, ChipGroup (real radio groups),
DateField (native input transparent over a readable display).
- styles.css: --wk-* variables defaulting to @bitbaum/design-tokens; 44px
targets, 16px input, strip scrolls inside itself.
- Tests: 15 core + 8 server-render, and a Chromium check at 1280/390,
light/dark that taps bookings end to end. dist/ committed for github: installs.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
# Re-arm strand: a GITHUB_TOKEN merge starts no workflow on its own, so the
|
|
# auto-merge sweep must be able to start CI on main explicitly.
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
# pnpm version comes from "packageManager" in package.json (SSOT).
|
|
- uses: pnpm/action-setup@v6
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: "24"
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
# The browser checks drive a real Chromium — the only way to prove the
|
|
# chips are 44px touch targets, text is 16px and nothing overflows at 390px.
|
|
- run: pnpm exec playwright install --with-deps chromium
|
|
# Identical to what runs locally: format, lint, types, build, unit +
|
|
# render tests, browser checks.
|
|
- run: pnpm run verify
|
|
# dist/ is committed so a `github:` install needs no build step (pnpm
|
|
# refuses git-dependency builds without a per-SHA allowBuilds entry in
|
|
# every consumer). It must be exactly what the source builds to.
|
|
- name: Committed dist/ matches the source
|
|
run: git diff --exit-code --stat -- dist
|