@vitrinka/web 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @vitrinka/web
2
2
 
3
+ ## 0.8.1
4
+
5
+ - **Record keeps the report you started.** A linked member's **Record**
6
+ swaps Report a problem for the recorder pill by unmounting the card, so a
7
+ typed but unsent report — the description, a mark and its note, the
8
+ picked type, an attached file — went with it. Record now waits while the
9
+ card holds any of them, as it already did while a report was sending or
10
+ waiting on **Try again**, and says why under its label: "Send or clear
11
+ the report you started first" (cs "Odešlete nebo smažte rozepsané
12
+ hlášení", also its accessible description). The waiting item stays
13
+ reachable with the menu's arrows, so a screen reader reads the reason,
14
+ and pressing it does nothing; it now looks unavailable. Since 0.8.0.
15
+ - **A report never sits on Sending….** No request of a report had a time
16
+ limit, so one nothing answered — a server stuck in a handler, a
17
+ connection or proxy holding it — left the card on **Sending…** for good:
18
+ a follow-up report with an attached PNG was created, then waited minutes
19
+ with its file, replay and submit unsent. Every leg now has a deadline,
20
+ 30 s for a call and 30 s plus the bytes at 32 KiB/s for an upload (a
21
+ 10 MiB file gets about six minutes), and preparing the capture gets 30 s
22
+ before the report goes without it. A leg past its deadline fails like a
23
+ dropped connection: the card shows the error and **Try again**, which
24
+ resumes at that leg. Since 0.7.0.
25
+ - **A report opened early still shows the page.** The page recorder loads
26
+ lazily; a card opened before it ran (a slow network, device or CI
27
+ runner) froze a clip with no screen in it, and the report went without
28
+ its replay. When the recorder runs by Send, the report now takes its view
29
+ then, as it already did for a recorder that had only just started.
30
+ Since 0.7.0.
31
+ - **Report a problem: motion where it belongs.** The marking bar's shape
32
+ indicator is in place on its first frame instead of growing in; a parked
33
+ card rescales and follows a resized window in its corner instead of
34
+ overhanging and gliding back; reduced motion now also stops the menu's
35
+ rise, the coach's dim and the chevron's turn. Since 0.8.0.
36
+ - **Two tabs no longer lose a note to a shared seq.** On the IndexedDB
37
+ lane (hosts without Web Locks) a browser can deliver another tab's
38
+ `localStorage` writes after the lock has passed to the next tab, so two
39
+ tabs could number captures with the same seq; the server keeps the first
40
+ row per seq, and a note vanished from both. Each holder now leaves a
41
+ fence (`vitrinka.recorder.lock.seq`) that the next one waits to read, so
42
+ the previous holder's writes are visible first; after 1 s it numbers
43
+ anyway and warns once, so a cleared store never wedges it. The Web Locks
44
+ lane is unchanged. Since 0.3.4.
45
+
3
46
  ## 0.8.0
4
47
 
5
48
  **Report a problem grows back up.** The calm face now gives the people in
package/README.md CHANGED
@@ -446,7 +446,9 @@ Reporters never need it: your token vouches for them.
446
446
  the widget's `base` gets **Record** and **Recent recordings** in the ⋯
447
447
  menu. **Record** swaps Report a problem for the recorder pill in place,
448
448
  recording on the member's link, never your `vkb_` key; the idle pill's ⋯
449
- menu then offers **Report a problem**, which swaps back. The pick is
449
+ menu then offers **Report a problem**, which swaps back. **Record** waits,
450
+ and says so, while the card holds a report not sent yet — words, a mark,
451
+ a picked type, a file — since the swap would lose it. The pick is
450
452
  remembered per browser and origin (`vitrinka.report.face`); a member who
451
453
  never picked starts on the pill when their vitrinka display mode is dev
452
454
  (`displayMode` from `/api/v1/recorder/me`, learned when the card opens).
@@ -499,7 +501,9 @@ happens next: a filed report says the team will take a look, with **See
499
501
  your report** when the server returns the report's page; one held for
500
502
  approval (an asserted or anonymous reporter) says the team checks it
501
503
  before it is filed. A failed send keeps every word; **Try again** resumes
502
- the same report.
504
+ the same report. A request nothing answers counts as failed: each call
505
+ gets 30 s, an upload 30 s plus its bytes at 32 KiB/s, so the card never
506
+ stays on Sending.
503
507
 
504
508
  ## Attach images
505
509
 
@@ -631,10 +635,15 @@ others through the driver's optional `watch(key, onChange)` (the
631
635
  `localStorage` driver implements it with the `storage` event).
632
636
 
633
637
  Event and rrweb-chunk sequence numbers are allocated under a cross-tab
634
- Web Lock, or an IndexedDB transaction on hosts without Web Locks. Stop
635
- waits for these allocations before draining. A custom driver shared across
636
- documents must implement `withLock(name, run)` and run the synchronous
637
- callback exclusively across them; a document-local driver needs no lock.
638
+ Web Lock, or an IndexedDB transaction on hosts without Web Locks. A
639
+ browser can deliver another tab's `localStorage` writes after that
640
+ transaction has handed over, so on that lane each holder leaves a fence in
641
+ `localStorage` (`vitrinka.recorder.lock.seq`) and in IndexedDB, and the
642
+ next one waits until it reads that fence. Stop waits for these allocations
643
+ before draining. A custom driver shared across documents must implement
644
+ `withLock(name, run)` and run the synchronous callback exclusively across
645
+ them, with every earlier holder's writes readable; a document-local driver
646
+ needs no lock.
638
647
  A driver that shares an origin with the package's own (e.g. one that
639
648
  re-keys a single entry) passes the package's `withRecorderLock` from
640
649
  `@vitrinka/web/recorder`, so both number events under the same lock.