gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5909d4585909d458notes: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows without a delimiter row; tickets#49, notes#5)mre5909d458/plugins/web/README.md

24.6 KB

  1. # hl:web — the web framework
  2. `hl:web` serves an app's pages from the server and keeps them live in the browser. It is written
  3. in Hybriel: `WebFramework.hl` is the server half, `client.hl` the browser half, and `compile.hl`
  4. turns each component's View into that component's own code. The model behind it (components,
  5. Views, realms, the boundary) is in [COMPONENTS.md](../../COMPONENTS.md). This page lists the rules
  6. an app is held to. Each rule is a located refusal at boot unless it says otherwise.
  7. ## Starting an app
  8. ```hybriel
  9. import WebFramework from 'hl:web'
  10. import Home from './components/home.hl'
  11. import Styles from './styles.hl'
  12. routes = [ { pattern = "/" component = Home } ]
  13. server = new WebFramework(routes = routes, styles = Styles, port = 8080)
  14. ```
  15. Settings may be passed as named arguments. Most of them may instead be members of the file that
  16. runs the `new`:
  17. | setting | default | meaning |
  18. |---|---|---|
  19. | `routes` | `[]` | the route table (below); pass it as an argument |
  20. | `styles` | none | the app's styles file: the imported class, or a path string. It must be in the project graph |
  21. | `port` | 8080 | the port to listen on |
  22. | `host` | `HL_HOST`/`HOST`, else 0.0.0.0 | the interface to bind |
  23. | `audience` | `{}` | per outward event, who receives it (see Events) |
  24. | `minify` | false | one-line HTML and compact modules |
  25. | `watchMode` | true | a saved `.hl` file re-analyses the app and reloads every open tab |
  26. | `sessionDir` | `<app>/.sessions` | where sessions are stored; `false` keeps them in memory |
  27. | `sessionMaxAge`, `sessionIdle`, `sweepInterval` | 14 days, 15 min, 5 min | the session clocks, in seconds |
  28. | `sessionCookie` | `hlsid` | the cookie's name: letters, digits, `-` and `_` |
  29. | `sessionSecure` | false | set the cookie's `Secure` flag (for an app behind https) |
  30. | `appTitle`, `appDescription`, `appImage`, `appFavicon`, `meta` | none | the head every page gets unless it declares its own |
  31. | `links` | none | a list of hybrids, one `<link>` each in every page's head (`{ rel = 'preconnect' href = '…' }`) |
  32. | `appIcons`, `appShortName`, `appThemeColor`, `appBackgroundColor`, `appTouchIcon`, `appManifest` | none | make the app installable: a web app manifest, linked from every head (see Offline and installable) |
  33. | `offline` | none | the pages kept offline: a service worker, their state in IndexedDB, a queue for their emits |
  34. | `pushKey` | none | the app's VAPID public key (base64url): serves the service worker with Web Push, and enables `subscribePush()` (see Web Push) |
  35. | `pushPrivateKey`, `pushSubject` | none | the VAPID private key (base64url, the 32-byte scalar of `pushKey`) and a `mailto:`/`https://` contact: enable `sendPush()` (see Web Push). A key that is not `pushKey`'s other half is refused at boot |
  36. | `pingEvery`, `pongWithin` | 25, 10 | the dead-socket clock, in seconds: the browser pings every `pingEvery`, and a pong missing after `pongWithin` closes the socket and reconnects |
  37. | `uploadMax` | 1 GiB | the largest file an emit may carry, in bytes (see Files in an emit) |
  38. | `pushKept`, `pushKeptBytes`, `tabKept` | 10000, 1 MiB, 600 | the push log per tab (see Events): the pushes kept for a socket that comes back, their bytes, and the seconds a tab without a socket is kept |
  39. An app runs on one web framework. If its files reach two packages that hold a `WebFramework.hl`
  40. (for example an old vendored copy beside this one), it is refused at boot, naming the import row
  41. of each.
  42. ## Routes
  43. Each entry has a `pattern` (`/posts/:id`, `/assets/*`) and one kind:
  44. | kind | answers with |
  45. |---|---|
  46. | `component = Home` or `"./components/home.hl"` | the page, rendered on the server; the component must be imported by the app, and must declare a View |
  47. | `function = (route, req) => { … }` | what the function returns (a Hybrid becomes JSON); `req.session` is the cookie's session, or null |
  48. | `direct = "text"` | that text |
  49. | `file = "./x"` | one file |
  50. | `directory = "./assets"` | the files under a directory |
  51. A named group (`:id`) reaches the component as a construction argument of the same name: declare
  52. `id = null` at its root. A named wildcard does the same with the rest of the path:
  53. `/code/*path` gives `path = 'src/lib/util.hl'` for `/code/src/lib/util.hl`, on the first load and
  54. on a navigation. A bare `*` has no name a member could take; it is what a `directory` route
  55. serves from.
  56. The request itself reaches a component the same way, and only one that declares the member
  57. (COMPONENTS.md): `session = null` gets the session, `host = null` the host without its port,
  58. `headers = null` the request's headers as a hash with lowercase names —
  59. `headers['accept-language']`. On a client navigation they are the headers of the request the
  60. navigation crossed on, so they are still the browser's own: the socket's upgrade request, or the
  61. `POST /__hl/emit` under the fallback. `cookie`, `authorization` and `proxy-authorization` are left
  62. out, because a member is state and state reaches page script.
  63. ## Components
  64. A component is a `.hl` file with a `View`. Its root members are its state, and are constructed on
  65. the server for each request.
  66. **A View attribute is a literal, a member or a field path.** `href = "/"`, `href = url` and
  67. `href = p.url` are allowed. `href = '/posts/' + id` is refused at its line: declare
  68. `postUrl = '/posts/' + id` at the file's root and write `href = postUrl`. The same holds for a
  69. value bound on a component reference (`Card { title = t }`) and for the condition of an `if` in a
  70. View, which may also be a `for` row variable.
  71. **An attribute name that is not an identifier is quoted.** `"aria-hidden" = "true"` and
  72. `"data-page" = it.target` render as written and bind like any attribute, in a `for` row too. A
  73. camelCase name is not rewritten (`ariaHidden` renders as `ariaHidden`). `data-page = it.target`
  74. unquoted is refused at its line, naming the quoted form.
  75. **A bound attribute in a `for` row follows the row** on every update of the list: a new list, a
  76. `push`, an `upsert` and a write into a row's record (`items[0].title = …`) repaint it, as they
  77. repaint the row's text and class.
  78. **The tree carries the elements the HTML parser implies.** `table { tr { td { … } } }` is rendered
  79. as `table > tbody > tr > td`, because that is the tree the browser builds from the HTML, and the
  80. page is continued from the tree the browser built. The pairs are listed in `view.hl`
  81. (`impliedElements`): `tr`, `td` and `th` under `table` get a `tbody`, `td` and `th` under `tbody`,
  82. `thead` or `tfoot` get a `tr`, and `col` gets a `colgroup`. Consecutive children that need the same
  83. container share one.
  84. The other rules:
  85. - A View reads only names the file declares. A name it declares nowhere is refused.
  86. - `parent './main.hl'` wraps a page in a shell. The shell declares `slot = null` and places
  87. `slot` in its View exactly once. A component that is filled (`Card { p { … } }`) must declare a
  88. slot too.
  89. - `body { … }` is allowed only as the root of a View, and a page wrapped by a parent cannot have
  90. one: the shell owns the body.
  91. - A View cannot render itself, directly or through other components.
  92. - A Style rule cannot be written on a component reference. Write it on an element inside that
  93. component.
  94. - A page's head comes from its members `__title`, `__description`, `__image`, `__favicon` and
  95. `__meta`, and falls back to the app's `appTitle`, `appDescription`, `appImage`, `appFavicon` and
  96. `meta`. A handler that writes one of them updates the document.
  97. ## Events
  98. `on name(…)` handlers and `emit` statements cross between the browser and the server over a
  99. WebSocket on the app's own port. `POST /__hl/emit` is the fallback for a peer without a socket.
  100. A handler that takes `session` as its last parameter gets the connection's session from the
  101. server, never from the peer.
  102. An outward event reaches the tab that caused it. To send it to other connections, give it an
  103. `audience` entry: a function of the event's arguments and the receiving connection's session that
  104. answers true or false.
  105. **No push is lost across a socket gap** (ticket #143). A push goes to the tab, not to its
  106. socket: the server numbers every push to a tab and keeps the last `pushKept` of them (at most
  107. `pushKeptBytes`), also while the tab has no socket. The bytes bound is the one that governs: a
  108. busy server pushes hundreds of small frames in a few seconds, and a count bound below the bytes one
  109. turns a short gap into a resync (#160). A tab whose socket comes back (a phone
  110. that slept, a network switch, a socket the ping gave up on) names the last push it got in
  111. its `hello` and is sent the rest again, in order, each once. A gap longer than that log, a
  112. tab gone longer than `tabKept` seconds, or a server that restarted resyncs the tab instead:
  113. the server mounts its shell and page again and sends the members it derives itself (those
  114. that call an imported class, and `session`), which the browser lays over the page. Then
  115. every mounted component that declares `on client reconnected(r)` gets
  116. `r = { how, missed, build, stale }`: `how` is `'replayed'` (nothing was lost; `missed` pushes came again)
  117. or `'resynced'` (a member only a push handler builds up may lack what was pushed meanwhile —
  118. ask the server for it here). `build` is the server's build and `stale` is true when it is not
  119. the build this page was rendered by — the server restarted onto changed sources (ticket #152;
  120. in every mode, `watchMode` additionally reloads the tab itself). It fires once per reopened
  121. socket, never on the first.
  122. **A page shown again** (#174). Every mounted component that declares `on client shown(r)` gets
  123. `r = { persisted }` when the browser shows the page: on `pageshow` (`persisted` is true for a restore
  124. from the back/forward cache, false for the first show) and when `visibilitychange` makes the tab
  125. visible (`persisted` false; turning hidden does not call it). An app re-plans here, without waiting
  126. for the user's first touch.
  127. ```hybriel
  128. on client reconnected(r) {
  129. if (r.stale) { location.reload() }
  130. if (r.how == 'resynced') { refresh() }
  131. }
  132. ```
  133. A value-form emit (`answer = emit server ask()`) waits for one answer, so it has one answerer.
  134. If two files in the target realm answer the event, it is refused.
  135. **A write anywhere repaints what it wrote** (tickets #98, #99), from the compiler's write
  136. sets, never by watching the members:
  137. - A listener repaints what its handler writes when the handler is done. A handler still
  138. waiting after the task that started it (a network answer, `new Promise(…)`) has its
  139. write set painted then too, so what it wrote before the wait shows while it waits.
  140. - A function made inside a component — an `XMLHttpRequest`'s `onload` or `onprogress`, a
  141. timer, a Promise's executor, a `then` — is compiled so that every return of it is
  142. announced with the site it was made at. What it writes (a member, a push into one, a
  143. field inside one, and what the methods it calls and the events it emits write) is
  144. repainted after the task that ran it. A function that writes no member repaints nothing.
  145. - A repaint the listener already made in the same task is not made twice.
  146. **After a face that takes `session`** (tickets #121, #122), the server re-derives the
  147. members that read `session` for the tabs that mounted the component, with the page's own
  148. route params, and ships them in the ack (`sync`); the browser takes them as writes.
  149. A server face's own writes (its declared members) travel as a separate numbered push `{ t: 'sync', n, sync: { <file>: { member: value } } }`
  150. to the emitting tab only, sent before the face's outward `emit client` frames and before the ack (COMPONENTS §10).
  151. - A member that reads `session` and calls an imported class, directly or through a local
  152. method or static, is computed on the server only and never re-derived in the browser.
  153. - Such a member is already up to date when the handler continues, so a client handler that
  154. appends the face's returned row to a list derived from `session` shows it twice. Assign
  155. from what the sync brought, or leave the list to the sync.
  156. - A member derived from `session` that needs a server-only resource (a database) must reach
  157. it through an imported class or a static of one; a plain copy (`me = session.user.id`) is
  158. derived everywhere.
  159. ### Files in an emit
  160. A browser `File` (an input's `ev.target.files[0]`, a dropped file) or a list of them
  161. (`ev.target.files`) may be an argument of an `emit server …`. It never rides the socket:
  162. before the emit goes out, the client half sends each file to `/__hl/upload` as its own HTTP
  163. requests, with the page's session cookie, in parts of 1 MiB. The face gets the file in its
  164. place as `{ bytes, name, type, size }` (`bytes` a `Bytes`), or a list of those for a list:
  165. ```hybriel
  166. input { type = 'file' on change(ev) { emit send(ev) } }
  167. on send(ev) { saved = emit server saveFile(ev.target.files[0]) }
  168. on server saveFile(file) {
  169. writeFile('uploads/' + file.name, file.bytes)
  170. return file.size
  171. }
  172. ```
  173. - **Progress.** While a file is sent, every mounted component that declares
  174. `on client uploadProgress(p)` gets `p = { event, index, name, sent, size }`: the emit's
  175. event, the file's position among the emit's files, its name, the bytes sent so far and
  176. its size.
  177. - **A dropped connection.** A part that did not come back is asked for again: the client
  178. waits (250 ms, doubling up to 4 s), asks the server how much of the file it has, and goes
  179. on from there. After 8 drops in a row it gives up.
  180. - **A failed upload ends the emit.** A file the server refuses (bigger than `uploadMax`, an
  181. upload of another session) or a connection that stays down ends the emit with that error
  182. instead of sending it — except a queueable emit in an offline app, which is queued with its
  183. files when the connection is what failed (COMPONENTS §10): it gets the failed ack a failing face sends
  184. (`{ t: 'ack', i, ok: false, error }`), so a value-form emit answers null and the error is
  185. logged. The face does not run.
  186. - An upload belongs to the session that started it, and one emit takes it. An upload that
  187. nothing takes within an hour is dropped. The parts are held in the server's memory until
  188. the emit takes them.
  189. ## Offline and installable
  190. The full model is [COMPONENTS.md §10](../../COMPONENTS.md). An app writes no JavaScript for any
  191. of it.
  192. ```hybriel
  193. appTitle = "Hybriel Notes"
  194. appIcons = [ { src = "/static/icon-192.png" sizes = "192x192" } { src = "/static/icon-512.png" sizes = "512x512" } ]
  195. offline = [ NoteList, NoteEditor ]
  196. ```
  197. - `appIcons` (or `appManifest`, or `offline`) serves `/__hl/manifest.webmanifest` and links it,
  198. with an apple-touch-icon, from every page's head. `appManifest`'s entries are written over the
  199. generated manifest.
  200. - `offline` lists pages: route components, as classes or path strings. Anything else is refused
  201. at its line. The framework generates the service worker and registers it. The shell and the
  202. listed pages' documents are cached, and a navigation is network-first. What the server last
  203. said about a listed page is kept in IndexedDB and shown over an older cached document. A
  204. statement-form `emit server …` from a listed page that does not reach the server is queued and
  205. replayed in order when the socket reopens. Each queued emit carries a stable id, and the
  206. server runs it once: a replay whose ack was lost is answered again without running the handler
  207. (the last 200 ids per session are kept). A socket that goes silent without closing is noticed
  208. by the ping and reopened. A queued emit keeps its files: IndexedDB holds them with the entry,
  209. and they go up on the replay under the emit's id, once (COMPONENTS §10). A page that
  210. declares `__hlQueued = 0` /
  211. `__hlQueue = []` shows the queue. A page that declares `__hlOnline = true` has it follow the browser's
  212. connection (`navigator.onLine`, and the online/offline events), so a View can say "you are offline".
  213. - `offlineFallback = Start` (a route component, class or path string, answered by a route with no
  214. parameter; needs `offline`) names a DATA-FREE page: the worker keeps its document once, fetched without
  215. credentials, and shows it for any page it has nothing for while the network is down, instead of "Unavailable
  216. offline". Not set: nothing changes. A page (kept or the fallback) that declares `__hlDataFree = true` is kept
  217. the same way — its document is the anonymous one, and the browser keeps neither its state nor a queue for it.
  218. - `offlineFiles = ['/md-editor.js', '/vendor/lib.js']` (needs `offline`) lists the app's OWN file-route urls the
  219. worker precaches at install and serves cache-first offline (ticket #170). Exactly the urls listed: a
  220. directory route is never kept as a tree, list each file you need. Not set: no extra file is kept.
  221. - Kept state is per component for a member no route parameter feeds (the same list at every url of
  222. the page), per url for the rest. A param page that was never loaded as a document is answered offline
  223. with a kept document of the same component, booted with the url's parameters.
  224. - What is kept belongs to the last user who was logged in. An expired or fresh anonymous session
  225. changes nothing: that user's queue is held, and replays when the same user logs in again (the server
  226. refuses a replay made for another user). Another user logging in forgets the copy (state, queue and the
  227. worker's documents); an entry from before users were kept is dropped unsent. A
  228. face that logs the session out forgets the copy by itself (the ack says whose session it is now);
  229. an app with its own logout calls `forgetOffline()` from `hl:web`.
  230. - In any app, an emit in flight when its socket closes is sent again with its id over the POST
  231. fallback or the next socket, and answered there (ticket #107). A page being left
  232. (`beforeunload`, `pagehide`) reopens nothing and posts nothing.
  233. - `import { notify, notifyAt, notifyIn } from 'hl:web'` shows a notification now, or at a time while the page
  234. is open. A closed app cannot be woken at a set time without a server push.
  235. ## Web Push
  236. A reminder for a closed app is a server push the service worker shows. This is the browser half
  237. (ticket #173); the server's VAPID signature and payload encryption are `hl:crypto`'s.
  238. - `pushKey = '<base64url VAPID public key>'` (a `WebFramework` argument or a manifest member) serves
  239. the service worker — also in an app with no `offline` (it then keeps nothing and answers every fetch
  240. from the network) — and tells the page the key.
  241. - The worker handles `push`: the payload is JSON text `{ "title", "body", "url", "tag", "icon" }`, shown
  242. with `registration.showNotification` (a payload that is not JSON becomes the body, titled with the
  243. host). On `notificationclick` it focuses an open window of the app, else opens `url` (default `/`).
  244. - `import { subscribePush } from 'hl:web'`: in a handler, asks for notification permission (on first
  245. use), registers the worker if the page has none, calls `pushManager.subscribe({ userVisibleOnly:
  246. true, applicationServerKey: pushKey })` and answers `{ endpoint, expirationTime, keys = { p256dh, auth } }`,
  247. or `null` (no push support, permission refused, no `pushKey`, subscribe failed — said in the console).
  248. The app hands it on with its own emit:
  249. ```
  250. import { subscribePush } from 'hl:web'
  251. View { button { "Turn on notifications" on click(e) { let s = subscribePush() emit server savePush(s) } } }
  252. on server savePush(s) { /* store s.endpoint, s.keys.p256dh, s.keys.auth for this user and device */ }
  253. ```
  254. ### Sending a push (the server half)
  255. - `pushKey`, `pushPrivateKey` and `pushSubject` together enable `import { sendPush } from 'hl:web'`, called in an `on server`
  256. handler or a route function (in a component's browser build the name binds to a refusal, like any server-only name).
  257. - `sendPush(subscription, payload, opts)`: `subscription` is what `subscribePush()` gave (`endpoint`, `keys.p256dh`,
  258. `keys.auth`), as the app stored it; `payload` a String or Bytes up to 3993 bytes (the worker shows JSON text
  259. `{ title, body, url, tag, icon }`); `opts` = `{ ttl` (seconds, default 86400), `urgency` (`'very-low'`, `'low'`, `'normal'`,
  260. `'high'`), `topic` (up to 32 URL-safe characters) `}`. It signs a VAPID JWT (ES256, `aud` the endpoint's origin, 12 h), encrypts
  261. the payload (RFC 8291 aes128gcm, one record) and POSTs it with hl:fetch.
  262. - It answers `{ ok, status, gone, error }`: `ok` is a 2xx (201 = accepted); `gone` is a 404/410, the subscription is dead and
  263. the app drops it; `status` 0 with `error` is a malformed subscription, or a push service that cannot be reached (the latter
  264. only where the caller has an `on Error(e)` handler — without one hl:fetch faults the call, as it does everywhere).
  265. - A call blocks its handler until the push service answers (15 s at most). A missing setting is a located error.
  266. ## What it serves
  267. | url | what |
  268. |---|---|
  269. | `/<file key>` (e.g. `/components/home.hl`) | a component's browser module |
  270. | `/__hl/hl-runtime.js` | the runtime every module imports |
  271. | `/__hl/web/client.js` | this package's browser half (other packages' halves are at `/__hl/<name>/client.js`) |
  272. | `/__hl/app.css` | the one stylesheet, built from the styles file and every component's `Style` |
  273. | `/__hl/emit` | the POST fallback for emits |
  274. | `/__hl/up` | an empty `204`: the probe a tab makes once a second while its socket waits to reconnect, so it is back within about a second of a restarted server (ticket #153; the backoff between socket attempts stops at 4 s) |
  275. | `/__hl/manifest.webmanifest` | the web app manifest, for an installable app |
  276. | `/__hl/sw.js`, `/__hl/web/worker.js` | the service worker's entry script and its compiled module, for an app with `offline` or `pushKey` |
  277. | `/__hl/upload` | a file of an emit, in parts (`POST` `{ name, type, size, q, n }` → `{ id, have }`, or `{ handled }` when the session handled emit `q` already; `POST ?id=&at=` one part → `{ have }`; `GET ?id=` → `{ have }`) |
  278. The page loads the modules and the stylesheet as `<url>?v=<hash>`, where the hash covers everything the build serves. A url with the current hash is sent with `Cache-Control: public, max-age=31536000, immutable`, and any other url with `no-cache`. A deploy therefore changes every url, and a tab that navigates into a newer build loads that page as a full document.
  279. An app's own `file` and `directory` routes keep the same url across deploys, so they answer with an `ETag` of the content and `Cache-Control: no-cache` (a route's own `Cache-Control` header replaces that). A request whose `If-None-Match` names the current tag gets a `304` with no body.
  280. ## Cloned row templates: measured, not adopted (ticket #68)
  281. Svelte clones one hoisted `<template>` per row or branch shape; hl:web builds a browser-created row element by element. Measured with `tests/browser/bench-web-rows.mjs` (headless Chrome, a clean page before every run, best of 5, ms, master c183052c):
  282. | case | ms |
  283. |---|---|
  284. | replace 1000 rows (li, 3 elements, an `if` inside) | 338 |
  285. | append 10 x 100 rows (same row) | 780 |
  286. | deep row, 20 elements x 300 rows | 7.5 |
  287. | shallow row, 2 elements x 1000 rows | 14 |
  288. | toggle an `if` branch 1000 times | 45 |
  289. DOM creation is not where the time goes: the CPU profile (`HL_BENCH_PROF=<case>`) puts `createElement`, `setAttribute` and `appendChild` together under 3% of the cheap cases and the dearer cases are bound by something else. A 20-element row costs 25 us per row in total, a 2-element row 14 us; cloning could not make either 1.2x faster, and the machinery that wires sites, events and marks onto a clone is the same code the walk runs today (a claim walk over the clone), so nothing is saved there either. No prototype was built: the bound from the profile is under 1.03x.
  290. What the profile does show: the 3-element row with an `if` costs 340 us, and 115 ms of its 340 is `rehome` -> `sitesOnto`, which scans the mount's WHOLE `m.sites` for every row built and copies each site it reads (value semantics), so a build of n rows is O(n x sites). The append case is worse (780 ms) for the same reason plus `updateRow` on the rows that stay. That is the cost to attack, not element creation.
  291. ### The fix that followed (ticket #68, second step)
  292. `sitesOnto` now reads `m.sites` from the end, stops at the first site older than the walk's, and writes `el` in place instead of copying each site. `rebindRow` decides once per row body whether it composes a child (nothing to take again if not) instead of copying the seed's tree for every row that stays, and `rowPaint` reads its paint entry in place (`paintEntry`) instead of copying the compiled table. Same bench, old (c183052c) vs new, best of 5, ms:
  293. | case | old | new | ratio |
  294. |---|---|---|---|
  295. | replace 1000 rows | 342.0 | 20.0 | 17.1x |
  296. | append 10 x 100 rows | 782.3 | 92.6 | 8.5x |
  297. | deep row 20 el x 300 | 8.4 | 7.6 | 1.1x |
  298. | shallow row 2 el x 1000 | 18.2 | 13.1 | 1.4x |
  299. | toggle if-branch x 1000 | 48.8 | 40.2 | 1.2x (noise: 0.98x to 1.2x across runs) |
  300. Typing in a routger chat (a copy of the app, 30 keystrokes, main-thread time) is unchanged at about 1.5 ms per key: a keystroke builds no rows. Gates: `HL_WEB_STRICT=1` framework browser test 398 ok, `tests/core-ast/web-tickets.mjs` 205 ok.

Branches

Latest commits

  • 5909d458notes: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows without a delimiter row; tickets#49, notes#5)mre
  • 98bd6a98N5b: pipe rows without a delimiter row are a table (MdEditor ad4e929, plain copy); gate tests/dashboard-table.mjs; reportmre
  • dbf93319N5 report: components gate rerun 613 passed, 0 failedmre
  • 3a8bc0d2N5: empty Table-button table is written as a real pipe table (MdEditor 4bd1112, plain copy); gate tests/table-button.mjs; reportmre
  • c16bd443N5: step 1 report (tables pass locally; his DASHBOARD note has no delimiter row)mre
  • 6091320anotes: MdEditor 7437e32 (surface drawn at once when the page is claimed); gate measures claim-to-text on 5 note loads at 1280 and 390mre
  • 0aa9277enotes: move each component's styles into its own Style block (shell and header selector in main.hl, list, editor frame and delete question in notes.hl); styles.hl keeps the theme inherit, the accent and the message colour; .gitignore ignores a bin symlink too; tests/shots.mjs for the pixel comparemre
  • 9ba01de3notes: write the standby service out in full so the boot gate can read the main servicemre
  • 98cab40anotes: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
  • 1fadb473notes gate: the editor table now has 1 px cell lines from the notes thememre
  • 8762115cnotes: take the components e54f83a (paste as Markdown, text typed before the editor is built is kept, Table button); table lines come from the notes thememre
  • ac23e194ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • 2804f0d3Merge branch 'iw-ident-widget'mre
  • 52d8d242notes: e2e script checks Log out and the selector in the header instead of the user menumre
  • e5abf7b7notes header: the selector alone top right plus Log out as before the theme missions; the user icon is gonemre
  • a2e343aeident 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
  • 7a889b82notes: MdEditor with the Table button, typed pipe rows and the theme's table look (components mt-tables); a table note is named by its header words; gate checks that fail on mainmre
  • b96c7f70theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 6140e6a0sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • cb7e6469deploy: security gate (tests/security.mjs)mre