gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6eee4b5a6eee4b5acalendar header: the selector alone top right plus Log out as before the theme missions; Reminder settings back on the month page (WIP: the settings test still fails)mre6eee4b5a/tests/dst/page.hl

2.3 KB

  1. // tests/dst/page.hl — mission 009: the reminder time of the OLD code (tests/dst/old-reminders.hl: Intl + Date) next to the NEW
  2. // (components/month-view/reminders.hl: hl:time), for events across the DST changes of Europe/Vienna, New York and Lord Howe.
  3. // The button writes one record per case, ';'-separated: id|zone|allDay|startDate|startTime|unit|n|time|old|new (epoch ms; 'none' = no reminder)
  4. import { oldPlanBetween } from './old-reminders.hl'
  5. import { planBetween } from '../../components/month-view/reminders.hl'
  6. static zones = [ 'Europe/Vienna', 'America/New_York', 'Australia/Lord_Howe', 'UTC', 'Asia/Kolkata' ]
  7. static days = [ '2026-03-08', '2026-03-29', '2026-03-30', '2026-04-05', '2026-10-25', '2026-10-26', '2026-11-01', '2026-11-02', '2027-03-28', '2027-10-31' ]
  8. static times = [ '00:30', '02:30', '03:00', '09:00', '23:30' ]
  9. static rows = [
  10. { unit = 'minutes' n = '30' time = '09:00' }
  11. { unit = 'hours' n = '1' time = '09:00' }
  12. { unit = 'hours' n = '12' time = '09:00' }
  13. { unit = 'hours' n = '48' time = '09:00' }
  14. { unit = 'days' n = '0' time = '02:30' }
  15. { unit = 'days' n = '1' time = '20:00' }
  16. { unit = 'days' n = '2' time = '09:00' }
  17. ]
  18. static ats = (planFn, ev, deviceZone, isOld) => {
  19. list = isOld ? planFn([ev], 0, 9000000000000, '') : planFn([ev], 0, 9000000000000, '', deviceZone)
  20. return list.length == 0 ? 'none' : '' + list[0].at
  21. }
  22. static allLines = (deviceZone) => {
  23. let out = ''
  24. let n = 0
  25. let a = 0
  26. while (a < 2) {
  27. let z = 0
  28. while (z < zones.length) {
  29. let d = 0
  30. while (d < days.length) {
  31. let t = 0
  32. while (t < times.length) {
  33. let r = 0
  34. while (r < rows.length) {
  35. ev = { id = 'c' + n title = 'T' allDay = a == 1 startDate = days[d] startTime = times[t] place = '' zone = zones[z] rows = [ rows[r] ] }
  36. out = out + ev.id + '|' + ev.zone + '|' + (a == 1 ? 'allday' : 'timed') + '|' + ev.startDate + '|' + ev.startTime + '|' + rows[r].unit + '|' + rows[r].n + '|' + rows[r].time + '|' + ats(oldPlanBetween, ev, deviceZone, true) + '|' + ats(planBetween, ev, deviceZone, false) + ';'
  37. n = n + 1
  38. r = r + 1
  39. }
  40. t = t + 1
  41. }
  42. d = d + 1
  43. }
  44. z = z + 1
  45. }
  46. a = a + 1
  47. }
  48. return out
  49. }
  50. out = 'none'
  51. View { main { pre { id = "out" out } button { id = "go" "go" on click(e) { out = allLines(Intl.DateTimeFormat().resolvedOptions().timeZone) } } } }

Branches

Latest commits

  • 6eee4b5acalendar header: the selector alone top right plus Log out as before the theme missions; Reminder settings back on the month page (WIP: the settings test still fails)mre
  • 0b909decident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • 0c8f9364Merge branch 'sy-sync'mre
  • 9fab1c8fsync components.hybriel 4922f9c into the month view: prev / next 44 px targets, names formatted in UTC (a UTC+12 zone showed the wrong first weekday); the calendar keeps its own language handling (Accept-Language / browser) and the P1/C13 reminder code; gate: 44 px check (SY)mre
  • 27d3e294theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 2ac9c1bbdeploy: security gate (tests/security.mjs)mre
  • 6b0a2571merge sc-sec (calendar security) with 99-year sessionsmre
  • 92001e52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 0f76c99dSecurity audit SC: push endpoint SSRF guard, uploadMax 0, Secure cookie, login session rotation + rate limit, event cap, nosniff, security gatemre
  • 2dd53dccP1: one reminder shows once: arm() one at a time, the page skips reminders the server already pushed; push-twice gatemre
  • 3a29760aC13 report (handoff)mre
  • 33ab66ffCalendar: notification controls move from the month view into Reminder settings (user menu), one consistent state, state read when the dialog opensmre
  • 682a5b43reports: calendar gate countsmre
  • 876d22b2reports/H1-hydrate.mdmre
  • ef0cae45tests/dst.mjs: wait for hydration instead of a fixed 2.5 s sleep before clicking #gomre
  • d9cadecatests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
  • efa61227re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • 7808adbecalendar#12: report 011, LOG, STATUS, push-shots-testmre
  • df2e4fa0calendar#12: test push rate limit (1 per 30 s per device), owner-only gate checksmre
  • acb957cfcalendar#12: Send a test notification on a subscribed device (one push in ~10 s, owner's own device), push gate part 4mre