gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit97f77b0797f77b07ident mission 012 (WIP): onto the layouts theme dbe3de7, shell on AppHeader/MainMenu/UserMenu/Sidebar + ContentFirst, styles cut, check-theme gatemre97f77b07/components/home.hl

21.3 KB

  1. // components/home.hl — `/` and `/signin/:rid`: ALL OF IDENT (pieces 1+2, tickets #24 #25;
  2. // CONCEPT.md).
  3. // Signed out: email → a six-digit code by mail → signed in. There is no registration:
  4. // the first right code for an address creates the account with a DEFAULT IDENTITY, then
  5. // this page shows that identity's name fields and says they are optional (Skip).
  6. // Signed in: the account's identities (list, new, edit, delete — never the last one)
  7. // and its time zone (the browser's at the first login; changeable here).
  8. //
  9. // Under `/signin/<rid>` the page belongs to an APP'S LOGIN BUTTON (lib/apps.hl requestOf):
  10. // it names the app, signs in to ident if needed, then asks WHICH IDENTITY the app gets
  11. // (with a single identity it still shows which one, one click) and sends the browser back
  12. // to the app with a one-time code. Managing identities stays on `/`.
  13. //
  14. // Every step takes the server's answer from the CALL (the value form of emit): it rides
  15. // the ack, over the socket or the POST fallback.
  16. parent './main.hl'
  17. import { accountOfSession, setTimeZone, signOutEverywhere } from '../lib/accounts.hl'
  18. import { recordPending, dropPending, signInWithCode } from '../lib/login.hl'
  19. import { identityRows, createIdentity, updateIdentity, deleteIdentity } from '../lib/identities.hl'
  20. import { requestOf, grantRequest } from '../lib/apps.hl'
  21. import { siteName } from '../project.hl'
  22. session = null
  23. rid = null
  24. // 'code' on THE CODE PAGE `/code` and `/signin/<rid>/code` (ident#20; lib/api.hl codePage
  25. // renders this component there, only while the session has a pending code), else null
  26. step = null
  27. onCodePage = step == 'code'
  28. // the pending address, read by codePage from the session and handed in as a param (mission
  29. // 048): read here from the session, hl:web (64527baa) would re-derive it after EVERY face
  30. // that takes the session — after the 5th wrong code it turned null and the code form
  31. // vanished with nothing to click (gate "after 5 wrong tries even the RIGHT code is refused")
  32. pending = null
  33. // where this login lives: the email form, and the code page after "Send me a code"
  34. homeUrl = rid != null ? '/signin/' + rid : '/'
  35. codeUrl = rid != null ? '/signin/' + rid + '/code' : '/code'
  36. me = accountOfSession(session)
  37. signedIn = me != null
  38. // THE APP'S LOGIN REQUEST (null on `/`, or when unknown / expired)
  39. request = rid != null ? requestOf(rid) : null
  40. forApp = request != null
  41. badRequest = rid != null && request == null
  42. appName = request != null ? request.app.name : ''
  43. appOrigin = request != null ? request.origin : ''
  44. forInvite = request != null && request.invite != ''
  45. requestLead = forInvite ? 'You are invited to ' : 'Sign in to '
  46. choosing = forApp && me != null // the identity choice for the app
  47. manage = rid == null && me != null // identities + time zone (only on `/`)
  48. meEmail = me != null ? me.email : ''
  49. timeZone = me != null ? me.timeZone : ''
  50. tzInput = timeZone
  51. identities = me != null ? identityRows(me.id) : []
  52. current = '/'
  53. __title = siteName + (forApp ? ' | sign in to ' + appName : (me != null ? ' | your identities' : ' | sign in'))
  54. // the login steps (a View's `if` takes a member, so each step is one).
  55. // THE CODE STEP IS ITS OWN PAGE (ident#20, creator: "just make a /code where it checks a
  56. // pending code"): "Send me a code" records the address in this browser's session (face
  57. // rememberPending) and goes to `/code`; that page shows the code form for the session's
  58. // pending address (lib/login.hl pendingOf) — so a reload, a second tab or a re-seed keeps it.
  59. pendingEmail = onCodePage && me == null && !badRequest ? pending : null
  60. askEmail = me == null && !badRequest && !onCodePage
  61. askCode = pendingEmail != null
  62. email = ''
  63. sentTo = pendingEmail != null ? pendingEmail : ''
  64. code = ''
  65. message = ''
  66. notice = ''
  67. // THE IDENTITY FORM — new, edit, and right after the first login the default identity
  68. // ("welcome": the names are optional, Skip closes it)
  69. editing = false
  70. welcome = false
  71. notWelcome = true // `if (!welcome)` in a View renders nothing: an `if` takes a member
  72. editId = '' // '' = a new identity, else the identity's id (a UUID)
  73. editHeading = ''
  74. fIdentityName = ''
  75. fNickname = ''
  76. fFirstname = ''
  77. fLastname = ''
  78. fAvatar = ''
  79. hasAvatarPreview = false
  80. avatarPreviewClass = hasAvatarPreview ? 'avatar' : 'avatar hidden'
  81. avatarRemoveClass = hasAvatarPreview ? 'quiet small' : 'quiet small hidden'
  82. View {
  83. identCard {
  84. if (forApp) {
  85. appRequest { id = "apprequest" requestLead strong { id = "appname" appName } " " requestOrigin { id = "apporigin" appOrigin } }
  86. }
  87. if (badRequest) {
  88. h1 { "Login request expired" }
  89. p { id = "badrequest" class = "message" "This login request is unknown or expired. Go back to the app and start the login again." }
  90. }
  91. if (askEmail) {
  92. h1 { "Sign in" }
  93. p { class = "lead" "We mail you a one-time code. There are no passwords, and no sign-up: the first login with an address creates its account." }
  94. form { id = "emailform"
  95. on submit(e) {
  96. e.preventDefault()
  97. emit ask(e)
  98. }
  99. label { "Email"
  100. input { id = "email" name = "email" type = "email" autocomplete = "email" required = "required" value = email on input(e) { emit setEmail(e.target.value) } }
  101. }
  102. button { id = "sendcode" type = "submit" "Send me a code" }
  103. }
  104. }
  105. if (askCode) {
  106. h1 { "Enter your code" }
  107. p { id = "sentto" class = "lead" "We sent a six-digit code to " strong { sentTo } ". It is valid for 10 minutes." }
  108. form { id = "codeform"
  109. on submit(e) {
  110. e.preventDefault()
  111. emit verify(e)
  112. }
  113. label { "One-time code"
  114. input { id = "code" name = "code" autocomplete = "one-time-code" inputmode = "numeric" pattern = "[0-9]{6}" maxlength = "6" required = "required" value = code on input(e) { emit setCode(e.target.value) } }
  115. }
  116. formButtons {
  117. button { id = "verify" type = "submit" "Sign in" }
  118. button { id = "back" type = "button" class = "quiet" "Other address" on click(e) { emit back(e) } }
  119. }
  120. }
  121. }
  122. if (signedIn) {
  123. accountBar {
  124. userEmail { id = "meemail" meEmail }
  125. button { id = "signout" type = "button" class = "quiet small" "Sign out" on click(e) { emit doSignOut(e) } }
  126. button { id = "signoutall" type = "button" class = "quiet small" "Sign out everywhere" on click(e) { emit doSignOutAll(e) } }
  127. }
  128. if (editing) {
  129. form { id = "identityform"
  130. on submit(e) {
  131. e.preventDefault()
  132. emit saveForm(e)
  133. }
  134. h1 { id = "formheading" editHeading }
  135. if (welcome) {
  136. p { id = "welcome" class = "lead" "Your account is ready and has a default identity. All of these fields are " strong { "optional" } " — fill in what you like, or skip it and do it later." }
  137. }
  138. label { "Identity name " fieldHint { "(shown when you pick an identity in an app; optional)" }
  139. input { id = "fidentityname" name = "identityName" maxlength = "60" autocomplete = "off" value = fIdentityName on input(e) { emit setF('identityName', e.target.value) } }
  140. }
  141. label { "Nickname " fieldHint { "(optional)" }
  142. input { id = "fnickname" name = "nickname" maxlength = "60" autocomplete = "nickname" value = fNickname on input(e) { emit setF('nickname', e.target.value) } }
  143. }
  144. label { "First name " fieldHint { "(optional)" }
  145. input { id = "ffirstname" name = "firstname" maxlength = "60" autocomplete = "given-name" value = fFirstname on input(e) { emit setF('firstname', e.target.value) } }
  146. }
  147. label { "Last name " fieldHint { "(optional)" }
  148. input { id = "flastname" name = "lastname" maxlength = "60" autocomplete = "family-name" value = fLastname on input(e) { emit setF('lastname', e.target.value) } }
  149. }
  150. avatarField {
  151. img { id = "avatarpreview" class = avatarPreviewClass src = fAvatar alt = "" width = "48" height = "48" }
  152. label { "Avatar " fieldHint { "(optional; a picture apps can show, e.g. next to your comments)" }
  153. input { id = "favatarfile" type = "file" accept = "image/png,image/jpeg,image/webp,image/gif" }
  154. }
  155. input { id = "favatar" name = "avatar" type = "hidden" value = fAvatar on input(e) { emit setF('avatar', e.target.value) } }
  156. button { id = "avatarremove" type = "button" class = avatarRemoveClass "Remove picture" on click(e) { emit setF('avatar', '') } }
  157. span { id = "avatarnote" class = "avatar-note" }
  158. }
  159. formButtons {
  160. button { id = "saveidentity" type = "submit" "Save" }
  161. if (welcome) { button { id = "skip" type = "button" class = "quiet" "Skip" on click(e) { emit closeForm(e) } } }
  162. if (notWelcome) { button { id = "cancel" type = "button" class = "quiet" "Cancel" on click(e) { emit closeForm(e) } } }
  163. }
  164. }
  165. }
  166. if (choosing) {
  167. section { id = "choosesection"
  168. h1 { "Choose an identity" }
  169. p { class = "lead" "Which identity signs in to " strong { appName } "? The app gets only the identity's short id — no email, no names." }
  170. ul { id = "chooselist"
  171. for (row of identities) {
  172. li { class = "choice"
  173. if (row.hasAvatar) { img { class = "avatar" src = row.avatar alt = "" width = "32" height = "32" } }
  174. identityMain {
  175. identityLabel { row.label }
  176. identityShortId { class = "shortid" row.shortId }
  177. if (row.isDefault) { defaultBadge { "default" } }
  178. identityDetails { row.details }
  179. }
  180. button { type = "button" class = "choose" value = row.id "Continue" on click(e) { emit choose(e.target.value) } }
  181. }
  182. }
  183. }
  184. }
  185. }
  186. if (manage) {
  187. section { id = "identitiessection"
  188. sectionHead {
  189. h1 { "Your identities" }
  190. button { id = "newidentity" type = "button" class = "small" "New identity" on click(e) { emit openNew(e) } }
  191. }
  192. ul { id = "identities"
  193. for (row of identities) {
  194. li { class = "identity"
  195. if (row.hasAvatar) { img { class = "avatar" src = row.avatar alt = "" width = "32" height = "32" } }
  196. identityMain {
  197. identityLabel { row.label }
  198. identityShortId { class = "shortid" row.shortId }
  199. if (row.isDefault) { defaultBadge { "default" } }
  200. identityDetails { row.details }
  201. }
  202. identityActions {
  203. button { type = "button" class = "quiet small edit" value = row.id "Edit" on click(e) { emit openEdit(e.target.value) } }
  204. if (row.canDelete) { button { type = "button" class = "quiet small danger delete" value = row.id "Delete" on click(e) { emit remove(e.target.value) } } }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. section { id = "timezonesection"
  211. h2 { "Time zone" }
  212. p { class = "lead" "Taken from your browser at your first login. Currently " strong { id = "timezone" timeZone } "." }
  213. p { id = "digestnote" class = "lead" "Your daily mail of notifications comes at 17:00 in this time zone." }
  214. form { id = "tzform"
  215. on submit(e) {
  216. e.preventDefault()
  217. emit saveZone(e)
  218. }
  219. label { "Time zone (IANA name, e.g. Europe/Vienna)"
  220. input { id = "tzinput" name = "timeZone" autocomplete = "off" maxlength = "64" required = "required" value = tzInput on input(e) { emit setTz(e.target.value) } }
  221. }
  222. formButtons {
  223. button { id = "savetz" type = "submit" "Save time zone" }
  224. button { id = "browsertz" type = "button" class = "quiet" "Use this browser's" on click(e) { emit useBrowserZone(e) } }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. p { id = "notice" class = "notice" notice }
  231. p { id = "message" class = "message" message }
  232. }
  233. }
  234. on setEmail(v) { email = v }
  235. on setCode(v) { code = v }
  236. on setTz(v) { tzInput = v }
  237. on setF(name, v) {
  238. if (name == 'identityName') { fIdentityName = v }
  239. if (name == 'nickname') { fNickname = v }
  240. if (name == 'firstname') { fFirstname = v }
  241. if (name == 'lastname') { fLastname = v }
  242. if (name == 'avatar') { fAvatar = v hasAvatarPreview = v.trim() != '' }
  243. }
  244. // the browser's own time zone (IANA name) and whether a name is one it knows (`Intl` is a
  245. // browser global of client code, hybriel#18)
  246. browserZone = () => { return Intl.DateTimeFormat().resolvedOptions().timeZone }
  247. knownZone = (v) => { return v == 'UTC' || Intl.supportedValuesOf('timeZone').includes(v) }
  248. // THE CODE REQUEST is a plain POST to /api/code (lib/api.hl), not a face: only an HTTP
  249. // request carries the client IP (X-Client-IP) the per-IP limit counts (mission 010).
  250. // A refusal (400, 429) answers { error } and is shown like every other message.
  251. on ask(e) {
  252. message = ''
  253. res = fetch('/api/code', { method = 'POST' headers = { 'Content-Type' = 'application/json' } body = JSON.stringify({ email = email }) })
  254. r = res != null ? res.json() : null
  255. if (r == null) {
  256. message = 'the server did not answer — try again'
  257. return null
  258. }
  259. if (r.error != null) {
  260. message = r.error
  261. return null
  262. }
  263. // THE SESSION REMEMBERS THE STEP, then the browser goes to the code page. A function
  264. // route gets no session (hybriel#11), so the face records it; it refuses unless a
  265. // code for the address is really waiting.
  266. k = emit server rememberPending(r.email)
  267. if (k == null) {
  268. message = 'the server did not answer — try again'
  269. return null
  270. }
  271. if (k.error != null) {
  272. message = k.error
  273. return null
  274. }
  275. window.location.assign(codeUrl)
  276. }
  277. on verify(e) {
  278. message = ''
  279. r = emit server verifyCode(sentTo, code, browserZone())
  280. if (r == null) {
  281. message = 'the server did not answer — try again'
  282. return null
  283. }
  284. if (r.error != null) {
  285. message = r.error
  286. return null
  287. }
  288. askCode = false
  289. // signed in: the address bar leaves the code page (a reload of /code would go back
  290. // to it anyway — lib/api.hl codePage sends a signed-in browser there)
  291. window.history.replaceState(null, '', homeUrl)
  292. meEmail = r.account.email
  293. timeZone = r.account.timeZone
  294. tzInput = r.account.timeZone
  295. identities = r.identities
  296. signedIn = true
  297. notice = ''
  298. manage = !forApp
  299. choosing = forApp
  300. // THE FIRST LOGIN: the default identity's names, optional (for an app too: the
  301. // choice follows once the form is saved or skipped)
  302. if (r.created) {
  303. fillForm(r.identities[0])
  304. editHeading = 'Welcome — name your default identity'
  305. welcome = true
  306. notWelcome = false
  307. editing = true
  308. choosing = false
  309. }
  310. }
  311. // THE CHOICE: the server makes (or finds) this identity's id for the app and answers
  312. // the app's return URL with a one-time code — the browser goes there
  313. on choose(id) {
  314. message = ''
  315. notice = ''
  316. r = emit server chooseIdentity(rid, '' + id)
  317. if (r == null) {
  318. message = 'the server did not answer — try again'
  319. return null
  320. }
  321. if (r.error != null) {
  322. message = r.error
  323. return null
  324. }
  325. notice = 'Back to ' + appName + ' …'
  326. window.location.assign(r.url)
  327. }
  328. fillForm = (row) => {
  329. editId = row.id
  330. fIdentityName = row.identityName
  331. fNickname = row.nickname
  332. fFirstname = row.firstname
  333. fLastname = row.lastname
  334. fAvatar = row.avatar
  335. hasAvatarPreview = row.hasAvatar
  336. return null
  337. }
  338. rowOf = (id) => {
  339. for (row of identities) { if ('' + row.id == '' + id) { return row } }
  340. return null
  341. }
  342. on openNew(e) {
  343. message = ''
  344. notice = ''
  345. editId = ''
  346. fIdentityName = ''
  347. fNickname = ''
  348. fFirstname = ''
  349. fLastname = ''
  350. fAvatar = ''
  351. hasAvatarPreview = false
  352. editHeading = 'New identity'
  353. welcome = false
  354. notWelcome = true
  355. editing = true
  356. }
  357. on openEdit(id) {
  358. message = ''
  359. notice = ''
  360. row = rowOf(id)
  361. if (row == null) { return null }
  362. fillForm(row)
  363. editHeading = 'Edit ' + row.label
  364. welcome = false
  365. notWelcome = true
  366. editing = true
  367. }
  368. on closeForm(e) {
  369. editing = false
  370. welcome = false
  371. notWelcome = true
  372. message = ''
  373. choosing = forApp
  374. }
  375. on saveForm(e) {
  376. message = ''
  377. fields = { identityName = fIdentityName nickname = fNickname firstname = fFirstname lastname = fLastname avatar = fAvatar }
  378. let r = null
  379. if (editId == '') {
  380. r = emit server addIdentity(fields)
  381. } else {
  382. r = emit server editIdentity('' + editId, fields)
  383. }
  384. if (r == null) {
  385. message = 'the server did not answer — try again'
  386. return null
  387. }
  388. if (r.error != null) {
  389. message = r.error
  390. return null
  391. }
  392. identities = r.identities
  393. notice = editId == '' ? 'Identity created.' : 'Identity saved.'
  394. editing = false
  395. welcome = false
  396. notWelcome = true
  397. choosing = forApp
  398. }
  399. on remove(id) {
  400. message = ''
  401. notice = ''
  402. row = rowOf(id)
  403. if (row == null) { return null }
  404. if (!confirm('Delete the identity “' + row.label + '”?')) { return null }
  405. r = emit server dropIdentity('' + id)
  406. if (r == null) {
  407. message = 'the server did not answer — try again'
  408. return null
  409. }
  410. if (r.error != null) {
  411. message = r.error
  412. return null
  413. }
  414. identities = r.identities
  415. if ('' + editId == '' + id) { editing = false }
  416. notice = 'Identity deleted.'
  417. }
  418. on useBrowserZone(e) { tzInput = browserZone() }
  419. on saveZone(e) {
  420. message = ''
  421. notice = ''
  422. v = tzInput.trim()
  423. if (!knownZone(v)) {
  424. message = 'this browser does not know the time zone “' + v + '”'
  425. return null
  426. }
  427. r = emit server changeTimeZone(v)
  428. if (r == null) {
  429. message = 'the server did not answer — try again'
  430. return null
  431. }
  432. if (r.error != null) {
  433. message = r.error
  434. return null
  435. }
  436. timeZone = r.timeZone
  437. tzInput = r.timeZone
  438. notice = 'Time zone saved.'
  439. }
  440. // "Other address": the session forgets the pending sign-in, back to the email form
  441. on back(e) {
  442. message = ''
  443. r = emit server forgetPending()
  444. window.location.assign(homeUrl)
  445. }
  446. on doSignOut(e) {
  447. emit server signOut()
  448. signedIn = false
  449. choosing = false
  450. manage = false
  451. editing = false
  452. welcome = false
  453. notWelcome = true
  454. meEmail = ''
  455. identities = []
  456. askEmail = true
  457. message = ''
  458. notice = ''
  459. }
  460. // SIGNS OUT ON EVERY DEVICE at once (bumps the account's session epoch, lib/accounts.hl
  461. // signOutEverywhere) — this browser included, so it resets to the sign-in form too.
  462. on doSignOutAll(e) {
  463. message = ''
  464. notice = ''
  465. if (!confirm('Sign out of ident on every device?')) { return null }
  466. r = emit server signOutAll()
  467. if (r == null) {
  468. message = 'the server did not answer — try again'
  469. return null
  470. }
  471. if (r.error != null) {
  472. message = r.error
  473. return null
  474. }
  475. signedIn = false
  476. choosing = false
  477. manage = false
  478. editing = false
  479. welcome = false
  480. notWelcome = true
  481. meEmail = ''
  482. identities = []
  483. askEmail = true
  484. notice = 'Signed out on every device.'
  485. }
  486. // ---- the faces ------------------------------------------------------------------------
  487. // A face's LAST parameter is the session (the framework appends it). Every face that
  488. // needs the account asks accountOfSession, which only accepts the framework's Session.
  489. // A face runs on a BLANK instance: it has its arguments and its imports, not this
  490. // component's members or functions.
  491. // (the code request is NOT a face since mission 010: POST /api/code in lib/api.hl — a face
  492. // sees no request headers, so it could not apply the per-IP limit; a face here would be a
  493. // way around it)
  494. // the right code signs the session in; the first one for an address creates the
  495. // account, its default identity and stores the browser's time zone
  496. on server verifyCode(email, code, timeZone, session) {
  497. if (session == null) { return { error = 'no session — reload the page' } }
  498. if (email == null || hlTypeName(email) != 'String' || code == null || hlTypeName(code) != 'String') { return { error = 'email and code must be strings' } }
  499. return signInWithCode(session, email, code, timeZone)
  500. }
  501. on server addIdentity(fields, session) {
  502. let me = accountOfSession(session)
  503. if (me == null) { return { error = 'you are not signed in' } }
  504. r = createIdentity(me.id, fields)
  505. if (r.error != null) { return r }
  506. return { identity = r.identity identities = identityRows(me.id) }
  507. }
  508. on server editIdentity(id, fields, session) {
  509. let me = accountOfSession(session)
  510. if (me == null) { return { error = 'you are not signed in' } }
  511. r = updateIdentity(me.id, id, fields)
  512. if (r.error != null) { return r }
  513. return { identity = r.identity identities = identityRows(me.id) }
  514. }
  515. on server dropIdentity(id, session) {
  516. let me = accountOfSession(session)
  517. if (me == null) { return { error = 'you are not signed in' } }
  518. r = deleteIdentity(me.id, id)
  519. if (r.error != null) { return r }
  520. return { deleted = r.deleted identities = identityRows(me.id) }
  521. }
  522. on server changeTimeZone(tz, session) {
  523. let me = accountOfSession(session)
  524. if (me == null) { return { error = 'you are not signed in' } }
  525. r = setTimeZone(me.id, tz)
  526. if (r.error != null) { return r }
  527. return { timeZone = r.account.timeZone }
  528. }
  529. // the identity for the app's login request (lib/apps.hl grantRequest: a plain login, or an invite's): { url } or { error }
  530. on server chooseIdentity(rid, identity, session) {
  531. let me = accountOfSession(session)
  532. if (me == null) { return { error = 'you are not signed in' } }
  533. if (rid == null || hlTypeName(rid) != 'String') { return { error = 'field rid must be a string' } }
  534. if (identity == null || hlTypeName(identity) != 'String') { return { error = 'field identity must be a string' } }
  535. return grantRequest(me.id, rid, identity)
  536. }
  537. // THE PENDING SIGN-IN (ident#20): recorded after POST /api/code answered, only while a
  538. // code for that address is really waiting (lib/login.hl recordPending); "Other address"
  539. // forgets it. Named apart from the store functions (faces dispatch by name, hybriel#36).
  540. on server rememberPending(email, session) {
  541. return recordPending(session, email)
  542. }
  543. on server forgetPending(session) {
  544. return dropPending(session)
  545. }
  546. on server signOut(session) {
  547. if (session != null) { session.user = null }
  548. return true
  549. }
  550. on server signOutAll(session) {
  551. let me = accountOfSession(session)
  552. if (me == null) { return { error = 'you are not signed in' } }
  553. // pushed BEFORE the sessions go: the audience reads each connection's session user
  554. emit client signedOutAll(me.id)
  555. return signOutEverywhere(me.id)
  556. }

Branches

Latest commits

  • 97f77b07ident mission 012 (WIP): onto the layouts theme dbe3de7, shell on AppHeader/MainMenu/UserMenu/Sidebar + ContentFirst, styles cut, check-theme gatemre
  • 8e4f435bpaths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • fa288f63ident mission 011: report wording (Intl zone names)mre
  • 961fae01ident mission 011: report, LOG, STATUSmre
  • 65348039ident#7: delivery gate — console check split at the gate's own server restart (49 checks)mre
  • dfa7b783ident#7: README (Delivery, env, gate, files, data), deploy.sh runs tests/delivery.mjsmre
  • ab6331f4ident#7: tests/delivery.mjs — fake clock gate: Vienna/New York/Tokyo/UTC 17:00, urgent, mail off, restart, DST days, zone changemre
  • 7869f57bident#7: delivery — the daily mail at 17:00 in the user's zone (digests table, once per local day, test clock IDENT_TEST_CLOCK), urgent mailed at once, push hookmre
  • 371ef1b5ident#7: lib/mail.hl sendNotificationMail (sink: <sink>.mail, one JSON line per mail)mre
  • 39749e0bident#7: time zones through hl:time — server checks isZone, an account without a known zone reads as UTC, allAccountsmre
  • 7a54fe72mission brief 011mre
  • a6a874cdident mission 010: vendor hybriel 0f396652 (plugins + compose cache volume/tmpfs + deploy URL wait + report)mre
  • 4e7cf78emission brief 010mre
  • e8b2b0f7docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • 5fdbb6b2ident mission 009: report — scratch folder notemre
  • 74235815ident mission 009 (4/4): docs (README files map + same-output test, STATUS, LOG), report, tests/letcount.py + realdata-baseline/comparemre
  • fe183516ident mission 009 (3/4): let only where reassigned — 293 never-reassigned lets are plain declarations; kept: reassigned, loop bodies, names of a file member, a name declared twice in one function; same outputmre
  • d2e7f91bident mission 009 (2/4): one lib file per topic (login, accounts, identities, apps, invites, selector, notify + helpers, util), function routes as thin wrappers in lib/api.hl, project.hl = the map; same outputmre
  • 91017164ident mission 009 (1/4): file moves — the root .hl files into lib/ (api.hl → lib/api-helpers.hl), styles.hl → components/styles.hl; imports adjusted, no other changemre
  • f8bdcbc2ident: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); all gates greenmre