gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitee4aee1eee4aee1eMedia player: a new queue item shows its own speed, mute, play state and time and starts when asked, also for two videos in a row; the media route reads suffix ranges and ignores range lists and garbage instead of answering 500; stronger gate checks (the 10 percent drag, the played bar, the queue tap)mreee4aee1e/components/media-player/media-player.hl

20.0 KB

  1. // media-player.hl — THE MEDIA PLAYER, all Hybriel (no JavaScript file): audio and video in one phone-first player.
  2. // `MediaPlayer { src = "/media/x.mp4" kind = "video" title = "The clip" artist = "Someone" }` — `kind = "audio"` shows a
  3. // cover image (`cover`) with the title and artist instead of the video area. The browser's own media element plays (no
  4. // `controls`: this component draws the controls, sized for a thumb): a seek bar you drag with a finger (the played part in
  5. // the accent colour, the buffered part as a lighter bar, a 44 px tall touch area with a thin visible bar), Back 10 s,
  6. // play/pause (the largest button), Forward 10 s, mute, the current time / total time, the playback speed (1 / 1.25 / 1.5 / 2)
  7. // and, on video, fullscreen. THE QUEUE is the host's list: `queue = [{ src, title, dur }]` renders under the player, the
  8. // item that plays is marked with the accent colour only, and a tap calls the host's function with the record's `src`
  9. // (hybriel#87: a child talks upward through a function its host gives it) — the host hands a new `src` back, the player
  10. // loads and plays it; when an item ends, the next one is picked the same way. USE ONE PER PAGE (a composed component's
  11. // members are the page's state). Keyboard: the media element takes the focus (a click on it), Space plays / pauses,
  12. // ArrowLeft / ArrowRight jump 10 s. The handlers read the elements' own state, never the members.
  13. import Icon from '../icons/icons.hl'
  14. String src = ''
  15. String kind = 'video'
  16. String title = ''
  17. String artist = ''
  18. String cover = ''
  19. String playLabel = 'Play'
  20. String pauseLabel = 'Pause'
  21. String backLabel = 'Back 10 seconds'
  22. String forwardLabel = 'Forward 10 seconds'
  23. String muteLabel = 'Mute'
  24. String unmuteLabel = 'Unmute'
  25. String speedLabel = 'Playback speed'
  26. String fullscreenLabel = 'Fullscreen'
  27. String queueLabel = 'Queue'
  28. Hybrid queue = []
  29. onPlay = null
  30. Number jump = 10
  31. // the state the media events write (the framework repaints the sites that read them)
  32. String playing = 'false'
  33. String muted = 'false'
  34. String timeText = '0:00'
  35. String totalText = '0:00'
  36. String playedPct = '0'
  37. String bufferedPct = '0'
  38. String speedText = '1'
  39. String dragging = 'false'
  40. String bufferedStyle = 'width:0%'
  41. String playedStyle = 'width:0%'
  42. String thumbStyle = 'left:0%'
  43. String autoPlay = 'false'
  44. String playClass = 'mp-play'
  45. String playLabelNow = playLabel
  46. String playIsNow = playLabel
  47. String muteClass = 'mp-mute'
  48. String muteLabelNow = muteLabel
  49. // "1:23" — whole seconds are enough for a time line
  50. clockText(t) {
  51. if (t == null || t < 0 || t != t) { return '0:00' }
  52. s = t - t % 1
  53. m = (s - s % 60) / 60
  54. sec = s - m * 60
  55. return m + ':' + (sec < 10 ? '0' : '') + sec
  56. }
  57. // the player's own element (the video or audio tag of this component)
  58. mediaOf(node) { return node.closest('media-player').querySelector('video, audio') }
  59. // the media element an event came from: the element itself (its own events can arrive while it is not yet in the page),
  60. // or the one of the player the node belongs to (the mount tick of the cover image)
  61. mediaFrom(node) { return node.matches('video, audio') ? node : mediaOf(node) }
  62. // the seek bar of this component
  63. barOf(node) { return node.closest('media-player').querySelector('mp-seek') }
  64. // the media element's buffered end as a percent of its duration
  65. bufferedPctOf(v) {
  66. if (v == null || v.buffered.length == 0 || v.duration == 0 || v.duration == null) { return '0' }
  67. return '' + ((v.buffered.end(v.buffered.length - 1) / v.duration) * 100 - (v.buffered.end(v.buffered.length - 1) / v.duration) * 100 % 1)
  68. }
  69. Style {
  70. 'media-player' { display = 'block' font = 'inherit' color = 'var(--color-text, #000)' background = 'var(--color-background, #fff)' }
  71. 'media-player video' { display = 'block' width = '100%' aspectRatio = '16 / 9' height = 'auto' objectFit = 'contain' background = 'var(--color-background-sunken, #555)' borderRadius = 'var(--radius-large, 10px)' cursor = 'pointer' }
  72. 'media-player audio' { display = 'none' }
  73. // the mount tick (the code editor's trick): an endless 100 ms animation fires animationiteration once
  74. // the page is live; the handler turns it off again. The AUDIO element itself is display:none (a CSS
  75. // animation never runs there), so the cover image carries the tick for it.
  76. 'media-player .mp-media, media-player .mp-cover img' { animation = 'media-player-mount 100ms linear infinite' }
  77. '@keyframes media-player-mount' { 'from' { opacity = '.999' } to { opacity = '1' } }
  78. // the cover of an audio item, with the title and the artist
  79. 'media-player .mp-cover' { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '0 0 .4rem' }
  80. 'media-player .mp-cover img' { flex = 'none' width = '5rem' height = '5rem' objectFit = 'cover' borderRadius = 'var(--radius-large, 10px)' background = 'var(--color-surface, #ddd)' }
  81. 'media-player .mp-cover h2' { margin = '0' fontSize = '1.15rem' lineHeight = '1.3' color = 'var(--color-text-strong, #000)' overflowWrap = 'anywhere' }
  82. 'media-player .mp-cover p' { margin = '.15rem 0 0' color = 'var(--color-text-muted, #555)' overflowWrap = 'anywhere' }
  83. // THE SEEK BAR: a 44 px touch area, the visible bar thin in the middle (a fat bar is decoration); the played part is the
  84. // accent, the buffered part a lighter grey over the pale track. No border anywhere.
  85. 'media-player mp-seek' { display = 'block' position = 'relative' height = '2.75rem' margin = '.15rem 0' touchAction = 'none' cursor = 'pointer' }
  86. 'media-player mp-seek .mp-track' { position = 'absolute' left = '.3125rem' right = '.3125rem' top = '1.1875rem' height = '.375rem' borderRadius = 'var(--radius-small, 5px)' background = 'var(--color-surface, #ddd)' overflow = 'hidden' }
  87. 'media-player mp-seek .mp-buffered' { position = 'absolute' left = '0' top = '0' bottom = '0' width = '0' background = 'var(--color-grey, #999)' opacity = '.55' }
  88. 'media-player mp-seek .mp-played' { position = 'absolute' left = '0' top = '0' bottom = '0' width = '0' background = 'var(--color-accent, #000)' }
  89. 'media-player mp-seek .mp-thumb' { position = 'absolute' top = '1.0625rem' width = '.625rem' height = '.625rem' borderRadius = '50%' background = 'var(--color-accent, #000)' transform = 'translateX(-50%)' left = '0' marginLeft = '.3125rem' }
  90. // the buttons: 44 px (the play / pause one larger); only the icon buttons on the row, the times between them
  91. 'media-player mp-buttons' { display = 'flex' alignItems = 'center' flexWrap = 'wrap' gap = '.2rem' }
  92. 'media-player mp-buttons button' { display = 'inline-flex' alignItems = 'center' justifyContent = 'center' minWidth = '2.75rem' minHeight = '2.75rem' padding = '0' font = 'inherit' fontWeight = '600' color = 'var(--color-text, #000)' background = 'transparent' border = '0' borderRadius = 'var(--radius-small, 5px)' cursor = 'pointer' }
  93. 'media-player mp-buttons button:hover' { background = 'var(--color-surface, #f2f2f2)' }
  94. 'media-player mp-buttons button:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  95. 'media-player mp-buttons button.mp-play' { background = 'var(--color-surface, #f2f2f2)' minWidth = '3.25rem' minHeight = '3.25rem' width = '3.25rem' height = '3.25rem' }
  96. 'media-player mp-buttons .mp-times' { display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' padding = '0' flex = '0 1 auto' flexWrap = 'nowrap' fontVariantNumeric = 'tabular-nums' fontSize = '.85rem' whiteSpace = 'nowrap' color = 'var(--color-text-muted, #555)' }
  97. // the two icons of a toggle button: one shows, the other waits (an `if` would re-create the DOM);
  98. // the wrapping spans are inline-flex with no leading, or the icon rides the text baseline (3 px high)
  99. 'media-player mp-buttons .i-play, media-player mp-buttons .i-pause, media-player mp-buttons .i-on, media-player mp-buttons .i-off' { display = 'inline-flex' flex = 'none' lineHeight = '0' }
  100. 'media-player .mp-play .i-pause' { display = 'none' }
  101. 'media-player .mp-play.is-playing .i-play' { display = 'none' }
  102. 'media-player .mp-play.is-playing .i-pause' { display = 'inline-flex' }
  103. 'media-player .mp-mute .i-off' { display = 'none' }
  104. 'media-player .mp-mute.is-muted .i-on' { display = 'none' }
  105. 'media-player .mp-mute.is-muted .i-off' { display = 'inline-flex' }
  106. // THE QUEUE under the player: title and length per row, dense (a 44 px tap area with thin rows, not loose ones)
  107. 'media-player .mp-queue-title' { margin = '1rem 0 .2rem' fontSize = '1rem' color = 'var(--color-text-strong, #000)' }
  108. 'media-player ol.mp-queue' { display = 'grid' gap = '.1rem' margin = '0' padding = '0' listStyle = 'none' }
  109. 'media-player ol.mp-queue li' { margin = '0' }
  110. 'media-player ol.mp-queue button' { display = 'flex' alignItems = 'center' gap = '.5rem' width = '100%' minHeight = '2.75rem' padding = '.3rem .55rem' font = 'inherit' textAlign = 'left' color = 'var(--color-text, #000)' background = 'transparent' border = '0' borderRadius = 'var(--radius-small, 5px)' cursor = 'pointer' }
  111. 'media-player ol.mp-queue button:hover' { background = 'var(--color-surface, #f2f2f2)' }
  112. 'media-player ol.mp-queue button:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  113. 'media-player ol.mp-queue li.current button' { color = 'var(--color-accent, #000)' background = 'var(--color-surface, #f2f2f2)' }
  114. 'media-player ol.mp-queue .mp-q-title' { flex = '1' minWidth = '0' overflowWrap = 'anywhere' textAlign = 'left' }
  115. 'media-player ol.mp-queue .mp-q-dur' { flex = 'none' fontSize = '.85rem' color = 'var(--color-text-muted, #555)' }
  116. 'media-player ol.mp-queue li.current .mp-q-dur' { color = 'inherit' }
  117. }
  118. View {
  119. mediaPlayer {
  120. if (isVideo) { video { src = src preload = "metadata" playsinline = "playsinline" tabindex = "0" title = title class = "mp-media"
  121. on animationiteration(e) { emit mpMount(e) } on click(e) { emit mpToggle(e) } on play(e) { emit mpStarted(e) } on pause(e) { emit mpPaused(e) } on ended(e) { emit mpEnded(e) } on timeupdate(e) { emit mpTime(e) } on durationchange(e) { emit mpTotal(e) } on loadedmetadata(e) { emit mpLoad(e) } on progress(e) { emit mpBuffered(e) } on volumechange(e) { emit mpVolume(e) } on ratechange(e) { emit mpRate(e) } on keydown(e) { emit mpKey(e) }
  122. } }
  123. if (isAudio) { audio { src = src preload = "metadata" class = "mp-media"
  124. on animationiteration(e) { emit mpMount(e) } on play(e) { emit mpStarted(e) } on pause(e) { emit mpPaused(e) } on ended(e) { emit mpEnded(e) } on timeupdate(e) { emit mpTime(e) } on durationchange(e) { emit mpTotal(e) } on loadedmetadata(e) { emit mpLoad(e) } on progress(e) { emit mpBuffered(e) } on volumechange(e) { emit mpVolume(e) } on ratechange(e) { emit mpRate(e) } on keydown(e) { emit mpKey(e) }
  125. }
  126. if (hasCover) { div { class = "mp-cover"
  127. img { src = cover alt = "" on animationiteration(e) { emit mpMount(e) } }
  128. div {
  129. h2 { title }
  130. p { artist }
  131. }
  132. } }
  133. }
  134. mpSeek { role = "slider" 'aria-label' = "Seek" 'aria-valuemin' = "0" 'aria-valuemax' = "100" 'aria-valuenow' = playedPct tabindex = "0"
  135. on pointerdown(e) { emit mpDown(e) } on pointermove(e) { emit mpMove(e) } on pointerup(e) { emit mpUp(e) } on pointercancel(e) { emit mpUp(e) } on keydown(e) { emit mpBarKey(e) }
  136. div { class = "mp-track"
  137. div { class = "mp-buffered" style = bufferedStyle }
  138. div { class = "mp-played" style = playedStyle }
  139. }
  140. div { class = "mp-thumb" style = thumbStyle }
  141. }
  142. mpButtons {
  143. button { type = "button" class = "mp-back" title = backLabel 'aria-label' = backLabel Icon { name = "skipBack" size = "1.5em" } on click(e) { emit mpBack(e) } }
  144. button { type = "button" class = playClass title = playLabelNow 'aria-label' = playIsNow
  145. span { class = "i-play" Icon { name = "play" size = "1.75em" } }
  146. span { class = "i-pause" Icon { name = "pause" size = "1.75em" } }
  147. on click(e) { emit mpToggle(e) }
  148. }
  149. button { type = "button" class = "mp-forward" title = forwardLabel 'aria-label' = forwardLabel Icon { name = "skipForward" size = "1.5em" } on click(e) { emit mpForward(e) } }
  150. span { class = "mp-times"
  151. time { timeText }
  152. span { 'aria-hidden' = "true" "/" }
  153. time { totalText }
  154. }
  155. button { type = "button" class = muteClass title = muteLabelNow 'aria-label' = muteLabelNow
  156. span { class = "i-on" Icon { name = "volume" } }
  157. span { class = "i-off" Icon { name = "volumeOff" } }
  158. on click(e) { emit mpMute(e) }
  159. }
  160. button { type = "button" class = "mp-speed" title = speedLabel 'aria-label' = speedLabel on click(e) { emit mpSpeed(e) }
  161. span { 'aria-hidden' = "true" speedText + '×' }
  162. }
  163. if (isVideo) { button { type = "button" class = "mp-fullscreen" title = fullscreenLabel 'aria-label' = fullscreenLabel Icon { name = "fullscreen" } on click(e) { emit mpFull(e) } } }
  164. }
  165. if (hasQueue) { div {
  166. h2 { class = "mp-queue-title" queueLabel }
  167. ol { class = "mp-queue" 'aria-label' = queueLabel
  168. for (q of rows) { li { class = q.cls
  169. button { type = "button" 'data-src' = q.src title = q.title
  170. span { class = "mp-q-title" q.title }
  171. span { class = "mp-q-dur" q.dur }
  172. on click(e) { emit mpPick(e) }
  173. }
  174. } }
  175. }
  176. } }
  177. }
  178. }
  179. isVideo = kind != 'audio'
  180. isAudio = kind == 'audio'
  181. hasCover = kind == 'audio' && cover != ''
  182. hasQueue = queue.length > 0
  183. Hybrid rows = rowsOf(queue, src)
  184. // the queue rows with the current one marked (a row's class must be a field of the record)
  185. rowsOf(list, now) {
  186. out = []
  187. let i = 0
  188. while (i < list.length) {
  189. out.push({ src = list[i].src title = list[i].title dur = list[i].dur cls = list[i].src == now ? 'current' : '' })
  190. i = i + 1
  191. }
  192. return out
  193. }
  194. // ---- the buttons ----------------------------------------------------------------------------------------
  195. on mpToggle(e) {
  196. v = mediaOf(e.target)
  197. if (v.paused) { v.play() } else { v.pause() }
  198. return null
  199. }
  200. on mpBack(e) {
  201. v = mediaOf(e.target)
  202. if (v.currentTime > jump) { v.currentTime = v.currentTime - jump } else { v.currentTime = 0 }
  203. return null
  204. }
  205. on mpForward(e) {
  206. v = mediaOf(e.target)
  207. if (v.duration > 0 && v.currentTime + jump < v.duration) { v.currentTime = v.currentTime + jump } else if (v.duration > 0) { v.currentTime = v.duration }
  208. return null
  209. }
  210. on mpMute(e) {
  211. v = mediaOf(e.target)
  212. v.muted = !v.muted
  213. return null
  214. }
  215. on mpSpeed(e) {
  216. v = mediaOf(e.target)
  217. s = v.playbackRate
  218. let next = 1
  219. if (s == 1) { next = 1.25 } else if (s == 1.25) { next = 1.5 } else if (s == 1.5) { next = 2 }
  220. v.playbackRate = next
  221. speedText = '' + next
  222. return null
  223. }
  224. on mpFull(e) {
  225. p = e.target.closest('media-player')
  226. if (document.fullscreenElement != null) { document.exitFullscreen() } else { p.requestFullscreen() }
  227. return null
  228. }
  229. // ---- the seek bar ---------------------------------------------------------------------------------------
  230. // the percent of the bar a pointer x lands on
  231. pctOf(bar, x) {
  232. r = bar.getBoundingClientRect()
  233. if (r.width == 0) { return 0 }
  234. let p = (x - r.left) / r.width * 100
  235. if (p < 0) { p = 0 }
  236. if (p > 100) { p = 100 }
  237. return p - p % 1
  238. }
  239. on mpDown(e) {
  240. v = mediaOf(e.target)
  241. bar = barOf(e.target)
  242. bar.setPointerCapture(e.pointerId)
  243. dragging = 'true'
  244. if (v.duration > 0) { v.currentTime = pctOf(bar, e.clientX) / 100 * v.duration }
  245. return null
  246. }
  247. on mpMove(e) {
  248. if (dragging != 'true') { return null }
  249. v = mediaOf(e.target)
  250. bar = barOf(e.target)
  251. if (v.duration > 0) { v.currentTime = pctOf(bar, e.clientX) / 100 * v.duration }
  252. return null
  253. }
  254. on mpUp(e) {
  255. dragging = 'false'
  256. return null
  257. }
  258. // the seek bar itself takes the keyboard too: arrows jump, Home / End go to the ends
  259. on mpBarKey(e) {
  260. v = mediaOf(e.target)
  261. if (e.key == 'ArrowLeft') { e.preventDefault() emit mpBack(e) return null }
  262. if (e.key == 'ArrowRight') { e.preventDefault() emit mpForward(e) return null }
  263. if (e.key == 'Home' && v.duration > 0) { e.preventDefault() v.currentTime = 0 return null }
  264. if (e.key == 'End' && v.duration > 0) { e.preventDefault() v.currentTime = v.duration return null }
  265. return null
  266. }
  267. // ---- the media element's events --------------------------------------------------------------------------
  268. // the whole display read from the media element: the labels, the times, the bars, the play / mute / speed state. A new
  269. // source on the SAME element (a queue item of the same kind) or a new element (the kind changed) must never show the
  270. // old item's state: the time, the bars, the speed and the mute of the element are what the buttons show.
  271. on mpSync(e) {
  272. v = mediaFrom(e.target)
  273. timeText = clockText(v.currentTime)
  274. totalText = v.duration > 0 ? clockText(v.duration) : '0:00'
  275. playedPct = v.duration > 0 ? '' + (v.currentTime / v.duration * 100 - v.currentTime / v.duration * 100 % 1) : '0'
  276. playedStyle = 'width:' + playedPct + '%'
  277. thumbStyle = 'left:' + playedPct + '%'
  278. bufferedPct = bufferedPctOf(v)
  279. bufferedStyle = 'width:' + bufferedPct + '%'
  280. speedText = '' + v.playbackRate
  281. muted = v.muted ? 'true' : 'false'
  282. muteClass = v.muted ? 'mp-mute is-muted' : 'mp-mute'
  283. muteLabelNow = v.muted ? unmuteLabel : muteLabel
  284. playClass = v.paused ? 'mp-play' : 'mp-play is-playing'
  285. playLabelNow = v.paused ? playLabel : pauseLabel
  286. playIsNow = playLabelNow
  287. return null
  288. }
  289. // the metadata of a new source arrived after the handlers were bound (a queue pick of the same kind keeps the element and
  290. // only changes its src; `loadstart` is not a DOM event the framework knows, `loadedmetadata` is): read the display again
  291. // and, when the host asked for it, start the new item
  292. on mpLoad(e) {
  293. emit mpSync(e)
  294. v = mediaFrom(e.target)
  295. if (autoPlay == 'true') { v.play() }
  296. return null
  297. }
  298. on mpRate(e) { speedText = '' + e.target.playbackRate return null }
  299. // the first tick of the mount animation: the element's own state (already loaded before the handlers bound)
  300. // is read in, then the animation is turned off
  301. on mpMount(e) {
  302. e.target.style.animationName = 'none'
  303. emit mpSync(e)
  304. v = mediaOf(e.target)
  305. if (autoPlay == 'true') { v.play() }
  306. return null
  307. }
  308. on mpStarted(e) { playing = 'true' playClass = 'mp-play is-playing' playLabelNow = pauseLabel playIsNow = pauseLabel return null }
  309. on mpPaused(e) { playing = 'false' playClass = 'mp-play' playLabelNow = playLabel playIsNow = playLabel return null }
  310. on mpTime(e) {
  311. v = e.target
  312. timeText = clockText(v.currentTime)
  313. if (v.duration > 0) {
  314. playedPct = '' + (v.currentTime / v.duration * 100 - v.currentTime / v.duration * 100 % 1)
  315. playedStyle = 'width:' + playedPct + '%'
  316. thumbStyle = 'left:' + playedPct + '%'
  317. if (totalText == '0:00') { totalText = clockText(v.duration) }
  318. bufferedPct = bufferedPctOf(v)
  319. bufferedStyle = 'width:' + bufferedPct + '%'
  320. }
  321. return null
  322. }
  323. on mpTotal(e) {
  324. if (e.target.duration > 0) { totalText = clockText(e.target.duration) }
  325. return null
  326. }
  327. on mpBuffered(e) {
  328. v = e.target
  329. bufferedPct = bufferedPctOf(v)
  330. bufferedStyle = 'width:' + bufferedPct + '%'
  331. if (v.duration > 0 && totalText == '0:00') { totalText = clockText(v.duration) }
  332. return null
  333. }
  334. on mpVolume(e) {
  335. muted = e.target.muted ? 'true' : 'false'
  336. muteClass = muted == 'true' ? 'mp-mute is-muted' : 'mp-mute'
  337. muteLabelNow = muted == 'true' ? unmuteLabel : muteLabel
  338. return null
  339. }
  340. on mpKey(e) {
  341. if (e.key == ' ' || e.key == 'Spacebar') { e.preventDefault() emit mpToggle(e) return null }
  342. if (e.key == 'ArrowLeft') { e.preventDefault() emit mpBack(e) return null }
  343. if (e.key == 'ArrowRight') { e.preventDefault() emit mpForward(e) return null }
  344. return null
  345. }
  346. // ---- the queue ---------------------------------------------------------------------------------------------
  347. // a tap on a queue item tells the host, which hands a new src back (the player is built anew with it)
  348. // a tap on a queue item tells the host, which hands a new src back (the player is built anew with it); the
  349. // new one starts playing at once (the user asked for it — autoplay policies allow a play after a tap)
  350. on mpPick(e) {
  351. b = e.target.closest('button')
  352. if (onPlay != null) { onPlay(b.getAttribute('data-src')) }
  353. return null
  354. }
  355. // an item ended: the next one is picked the same way (the last one just stops)
  356. on mpEnded(e) {
  357. playing = 'false'
  358. let i = 0
  359. let next = ''
  360. while (i < queue.length) {
  361. if (queue[i].src == src && i + 1 < queue.length) { next = queue[i + 1].src }
  362. i = i + 1
  363. }
  364. if (next != '' && onPlay != null) { onPlay(next) }
  365. return null
  366. }

Branches

Latest commits

  • ee4aee1eMedia player: a new queue item shows its own speed, mute, play state and time and starts when asked, also for two videos in a row; the media route reads suffix ranges and ignores range lists and garbage instead of answering 500; stronger gate checks (the 10 percent drag, the played bar, the queue tap)mre
  • 9a4f9b31Merge mp-player: media served from the committed filesmre
  • ab96e686Media route: serve the demo's media from the committed files in components/media-player (storage/ is not in git, the deploy gate found no files)mre
  • b2980734Merge mp-player: the media player (components/media-player), its demo and the media iconsmre
  • 1c41293eMediaPlayer: back / forward 10 s as replay / forward 10 icons (circular arrow with a 10), the play button keeps its surface background on audio and video, the media route's range end is a letmre
  • 9e1ab228MP: report, LOG line, STATUS entrymre
  • dd003e5dMediaPlayer: audio and video in one phone-first player (components/media-player), its demo /media-player with a queue, the media icons in components/icons, the demo's media files served with ranges (lib/media.hl), 35 gate checksmre
  • e54f83adMdEditor: text typed before the editor is built is kept (the build takes it in once, the input handler no longer writes it to the field first), tickets#35mre
  • 8c920932gate: the 11 old drop-zone checks now test the one-box pick mode (drop anywhere in the box, Choose files button inside it, no drop zone)mre
  • 626de199MdEditor: copy and cut put the selection's Markdown on the clipboard, a clipboard with HTML only pastes its text, gate checks for copy, cut and paste (components#20)mre
  • 5228126dUX: components synced from the tickets/layouts UX mission (comments: State select in the footer and button words; files-upload: one-box pick mode; modal: footer rule for its own footer). WIP: the gate's #18 pick-mode checks still expect the old drop zone (11 fail), see the UX2 reportmre
  • 0a9216fbMdEditor: a Table button in the toolbar, a typed pipe row fills the cells, tables take the page theme's look; gate checks updated for 12 toolbar buttonsmre
  • f9d405c8comments: reactions row half as far from its comment (creator 2026-10-24: 'half this distance please'); the 44 px tap targets staymre
  • 4922f9cfsessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 0355975areports/MC-mobile.md, LOG, STATUS (MC)mre
  • 3f0a7229Month view, date picker, range picker: names follow the page language (English by default, not the browser's), weekday/month names formatted in UTC (a UTC+12 zone showed Tue first), 44 px day cells and buttons, Send row air; gate checks at 390 px for every page, popup and dialog (MC)mre
  • 29eb07eaPhone: 44 px targets on the site (brand, home links, buttons), comments, modal and pagination; the header is the brand alone on a phone; comments demo: labelled 'You are' group with the chosen user pressed (MC)mre
  • d1cc83e2reports/E2-toolbar.mdmre
  • 214c3183MdEditor on a phone: toolbar as two even rows of 44 px targets (no clipped icon, no swipe), 'Markdown source' label 15 px, table head 16 px; gate checks (E2)mre
  • 9215bbaareports/F5-empty.mdmre