Skip to content

Support four-line date and time paste in DateCalc - #22

Merged
EdgeClaws merged 1 commit into
mainfrom
clawdia/datecalc-four-line-paste
Nov 19, 2026
Merged

EdgeClaws merged 1 commit into
mainfrom
clawdia/datecalc-four-line-paste

Conversation

@EdgeClaws

Copy link
Copy Markdown
Collaborator

Summary

  • Accept the copied four-part date / HH:MM / date / HH:MM paste in DateCalc's existing Paste both dates field, including the exact four-line sample. Treat times as UTC and validate both full timestamps before calculating.
  • Preserve the existing two-ISO-value paste forms (tab, space, or new line), strict calendar validation, completed-24-hour-day math, and reverse-interval behavior.
  • Show the four-line format in the placeholder and hint without changing the site's visual system.

Verification

  • Exact head 8509f749312608e72e277caac1c1947e8d4e7b89: sfw npm run check passed all 85 tests, 16-page/6-external link check, all three Worker dry-runs, and gitleaks (no leaks).
  • sfw npm audit --omit=dev --audit-level=high: 0 production-dependency vulnerabilities.
  • Real Chromium clipboard paste on the local protected-route preview passed at 1365px desktop and 375px mobile. 2026-11-13 / 20:03 / 2028-05-16 / 20:03 produced 550 completed days and the expected UTC reduction dates. Legacy tab paste and invalid/partial four-part input passed; neither viewport overflowed or emitted page, console, or local HTTP errors. Desktop/mobile screenshots and the browser check transcript are in the local review artifacts.

Release boundary

  • This PR does not deploy or change the protected route, Cloudflare Access, or Staff target configuration. DateCalc remains emitted only under dist/support-staff/datecalc/.
  • After approval and merge, confirm or trigger the edgetools-support-staff Cloudflare Worker build from JP0P/edgetools:main with the existing private target settings. Verify authenticated /staff/datecalc/ paste/output and anonymous Access redirect; retain the prior Worker version for rollback. The local preview does not simulate the production Access gate or private target injection.

@EdgeClaws
EdgeClaws merged commit 53ecd44 into main Nov 19, 2026
1 check passed
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.

1 participant