@vitrinka/web 0.9.1 → 0.9.3

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,50 @@
1
1
  # @vitrinka/web
2
2
 
3
+ ## 0.9.3
4
+
5
+ - **Reporting stays in the window, not the app's modal.** The floating
6
+ button, report card and recorder sheets paint in their own browser
7
+ top-layer popover, even while associated with an open dialog for focus
8
+ and native-modal interaction. A centered, transformed or clipped dialog
9
+ no longer moves the button into its corner or clips the report UI. The
10
+ underlying dialog and both drafts remain intact.
11
+
12
+ ## 0.9.2
13
+
14
+ - **A linked member co-owns what they report.** When this browser holds a
15
+ vitrinka member link for the widget's `base`, Report a problem proves it
16
+ to the server: the link's token rides in the body of the report
17
+ (`memberToken` on `POST /api/v1/reports`) and of the reporter session
18
+ (`POST /api/v1/report/session {token, memberToken}`), so the member owns
19
+ the report beside the reporter and finds it in **My reports**. Your
20
+ `vkb_` key stays the bearer. A link minted on another vitrinka is never
21
+ sent, and neither is a `vkr_` key your build passes. With a reporter your
22
+ server signed and a linked member, My reports lists what vitrinka returns
23
+ for the two: the reporter's reports and the member's. Without a signed
24
+ reporter there is still no session, and My reports stays this browser's
25
+ list.
26
+ - **A link vitrinka refuses never costs the report.** Either call may come
27
+ back with `memberError`: the link was revoked, belongs to another
28
+ workspace, or its person is no longer a member. The report files anyway,
29
+ and the console says why once. A revoked link, or one whose person left,
30
+ is forgotten, as a link a session door answers 401 is. A link for another
31
+ workspace stays.
32
+ - **Linking, unlinking or relinking opens a fresh session.** The reporter
33
+ session and the My reports list it read were held for your token alone.
34
+ They are now held for your token and the member link together, so
35
+ **Unlink** (cs **Odpojit**), a new link, or a change in another tab drops
36
+ both, a list still loading included, and an open My reports reloads.
37
+
38
+ Upgrading:
39
+
40
+ - **The server side ships in vitrinka first.** An older vitrinka refuses
41
+ the unknown `memberToken` by name; the widget then sends the report, or
42
+ opens the session, again without it, once, as 0.8.0 does for `type`. The
43
+ link is ignored: the report files as the reporter's alone and My reports
44
+ reads as before. The widget now reads that refusal for the field it
45
+ names, never for a field the server lists as accepted, so the reporter's
46
+ `type` stays.
47
+
3
48
  ## 0.9.1
4
49
 
5
50
  - **The button keeps its name with a shortcut set.** 0.9.0's default
package/README.md CHANGED
@@ -224,10 +224,12 @@ preference too (`sheetW`, `sheetH` in CSS px, 0 = the default). It is sent
224
224
  in a PATCH of its own when you let go. A server that predates it answers 422,
225
225
  and the size then stays on the device while size and details still sync.
226
226
 
227
- The sheet renders inside the topmost open dialog when one exists, so a
228
- Radix focus trap or a `<dialog>.showModal()` never fights it, and nothing
229
- you do on the pill reaches the page (a "close on outside click" never fires
230
- because of the recorder).
227
+ The sheet stays associated with the topmost open dialog when one exists,
228
+ so a Radix focus trap or a `<dialog>.showModal()` never fights it. Its own
229
+ manual popover paints in the browser's top layer: the report button, card
230
+ and recorder sheets keep their window positions even when the dialog is
231
+ transformed or clips its content. Nothing you do on the pill reaches the
232
+ page (a "close on outside click" never fires because of the recorder).
231
233
 
232
234
  ## With the Vitrinka extension
233
235
 
@@ -432,7 +434,10 @@ portal**. A list opens inside the card with ← back.
432
434
  /api/v1/report/session`, renewed when it lapses) and reads `GET
433
435
  /api/v1/report/mine` with it (header `X-Vitrinka-Reporter`): each report
434
436
  with its step — Received, Planned, In progress, Fixed, Done — linked to
435
- its page. The `vkb_` key alone reads nothing.
437
+ its page. The `vkb_` key alone reads nothing. When the browser also holds
438
+ a member link for the widget's `base` (below), the trade proves it too,
439
+ and the list is what vitrinka returns for the two: the reporter's
440
+ reports and the member's.
436
441
  - **An asserted email, or anonymous**: this browser's own sends — the last
437
442
  20 for this vitrinka and this site, filed or "Waiting for approval",
438
443
  marked "Sent from this browser" (`localStorage`). A signed reporter gets
@@ -444,7 +449,11 @@ account from the account popover with the pill's flow: a short code,
444
449
  browser's own `vkr_` token, kept where the pill keeps its link
445
450
  (`vitrinka.recorder.link`, with the `base` it was minted on), so linking
446
451
  here links the pill on this site and **Unlink** forgets it for both.
447
- Reporters never need it: your token vouches for them.
452
+ Reporters never need it: your token vouches for them. Every report sent
453
+ from a linked browser proves the link (`memberToken` in the body, your
454
+ `vkb_` key still the bearer), so the member co-owns it and finds it in My
455
+ reports. A link vitrinka refuses never stops the report: one revoked, or
456
+ whose person is no longer a member, is forgotten.
448
457
 
449
458
  **The face switch** (npm entry only). A browser holding a member link for
450
459
  the widget's `base` gets **Record** and **Recent recordings** in the ⋯