@vitrinka/web 0.5.3 → 0.6.0
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 +42 -0
- package/README.md +22 -17
- package/build/hud.iife.js +150 -28
- package/build/protocol/index.d.ts +10 -0
- package/build/recorder/hud/Hud.js +206 -31
- package/build/recorder/hud/NotesSheet.d.ts +24 -0
- package/build/recorder/hud/NotesSheet.js +147 -0
- package/build/recorder/hud/RecorderPill.d.ts +34 -12
- package/build/recorder/hud/RecorderPill.js +52 -14
- package/build/recorder/hud/Sheet.d.ts +18 -15
- package/build/recorder/hud/Sheet.js +13 -13
- package/build/recorder/hud/controller.d.ts +81 -4
- package/build/recorder/hud/drop.d.ts +26 -0
- package/build/recorder/hud/drop.js +35 -0
- package/build/recorder/hud/icons.d.ts +6 -0
- package/build/recorder/hud/icons.js +12 -0
- package/build/recorder/hud/notes-rows.d.ts +39 -0
- package/build/recorder/hud/notes-rows.js +49 -0
- package/build/recorder/hud/resize.d.ts +6 -3
- package/build/recorder/hud/resize.js +8 -4
- package/build/recorder/hud/styles.d.ts +1 -19
- package/build/recorder/hud/styles.js +62 -19
- package/build/recorder/page-controller.js +13 -7
- package/build/recorder/queue.d.ts +22 -1
- package/build/recorder/queue.js +84 -5
- package/build/recorder/recents.d.ts +20 -4
- package/build/recorder/recents.js +41 -6
- package/build/recorder/session.d.ts +25 -6
- package/build/recorder/session.js +50 -8
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @vitrinka/web
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
The pill now says what it is doing at every step, and keeps what you write.
|
|
6
|
+
|
|
7
|
+
- **After Stop: Saving… → Building board · k/n → Board ready.** "Saved"
|
|
8
|
+
used to mean only that the server accepted the Stop, and the board link
|
|
9
|
+
appeared later without a word. The pill now shows the server's build
|
|
10
|
+
(`projection` step and progress) and then **Board ready · Open board**. A
|
|
11
|
+
failed build says so, with **Retry** when another pass can fix it (the
|
|
12
|
+
Retry closes the session again, a door a recorder token already has). The
|
|
13
|
+
✕ became **Done**: it only ever dismissed the face.
|
|
14
|
+
- **Start reads as an action.** The idle dot is red, **Starting…** shows
|
|
15
|
+
while a session boots, the ⋯ keeps the tray's inset from the pill's edge,
|
|
16
|
+
and a one-time hint per site says what Start does.
|
|
17
|
+
- **The sync chip left the tray.** The rec dot carries the sync state as a
|
|
18
|
+
ring (green, amber backlog, warn offline, red ended); while the tools are
|
|
19
|
+
out, a float above the pill counts what the server acknowledged — actions,
|
|
20
|
+
frames, notes, pages (`HudSync.acked`).
|
|
21
|
+
- **History.** A tray button lists the recording's notes and annotations in
|
|
22
|
+
the board annotation island's layout. **Save edit** sends a NEW note with
|
|
23
|
+
`replaces: <cid>` (the stream stays append-only; the board keeps the
|
|
24
|
+
versions in the thread); **reference** starts a note carrying `refs:
|
|
25
|
+
[<cid>]`, which the board turns into an annotation ref. Every note now
|
|
26
|
+
carries a client id, `cid` (`docs/PROTOCOL.md`). The list is kept on the
|
|
27
|
+
device for the recording's life (a recorder token reads nothing back).
|
|
28
|
+
- **The composer.** The `board | task` toggle is gone: everything lands on
|
|
29
|
+
the board. The sheet names what an annotation points at — its crop where
|
|
30
|
+
the host can read pixels (`HudController.captureRegion`, the extension),
|
|
31
|
+
else its size and route — with **Reselect**. A dragged height is now a
|
|
32
|
+
minimum: releasing the grip never snaps the box back. A draft left by a
|
|
33
|
+
click on the page parks as a small drop on the pill; hover previews it, a
|
|
34
|
+
click resumes it.
|
|
35
|
+
- **Honest flashes.** The clock says **queued** until the server
|
|
36
|
+
acknowledged a note, then **Saved** (`HudSync.pendingNotes`). A note
|
|
37
|
+
written while paused is queued and sent instead of dropped.
|
|
38
|
+
- **A recording in another tab** shows a quiet "Recording in another tab"
|
|
39
|
+
pill instead of no recorder at all (`HudSnapshot.followingElsewhere`).
|
|
40
|
+
- **Controller contract.** `HudAnnotation.task` is removed; `note` and
|
|
41
|
+
`annotate` take a `HudNoteLink`; `listNotes`, `captureRegion` and
|
|
42
|
+
`retryBuild` are optional. A host that omits them gets today's behaviour
|
|
43
|
+
for that part.
|
|
44
|
+
|
|
3
45
|
## 0.5.3
|
|
4
46
|
|
|
5
47
|
- **Credentials in URL paths no longer reach vitrinka (`sanitizeUrl`).**
|
package/README.md
CHANGED
|
@@ -162,19 +162,23 @@ returned unchanged otherwise.
|
|
|
162
162
|
## Using the pill
|
|
163
163
|
|
|
164
164
|
Idle, the HUD is a 28px glass puck: a hollow ring until the device is linked
|
|
165
|
-
(**Link recorder**), a
|
|
166
|
-
title is `document.title`, or the `title` prop
|
|
167
|
-
on hover or focus.
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
(**Link recorder**), a red record dot once it is (**Start recording** — the
|
|
166
|
+
session title is `document.title`, or the `title` prop; **Starting…** while it
|
|
167
|
+
boots); the label and a ⋯ slide out on hover or focus. The first time on a
|
|
168
|
+
site a small hint says what Start does (**Start** · **Got it**). Recording, it
|
|
169
|
+
rests as a dot + timer capsule (**Recorder controls**) that unfolds into the
|
|
170
|
+
tools on hover, focus or tap and folds back 2.5s after you leave (a tooltip
|
|
171
|
+
names each tool and its shortcut). The dot's ring is the sync state; while the
|
|
172
|
+
tools are out, a float above the pill says what reached vitrinka — `on
|
|
173
|
+
vitrinka` (or `sending N`) · actions · frames · notes · pages:
|
|
170
174
|
|
|
171
175
|
| Control | Shortcut | What |
|
|
172
176
|
|---|---|---|
|
|
173
|
-
|
|
|
174
|
-
| ⏸ Pause / ▶ Resume | ⌥⇧P (Alt⇧P) | freezes the clock and capture |
|
|
175
|
-
| ✎ Note | ⌥⇧N | the note sheet — Enter sends, ⇧Enter newline, Esc / ✕ / click-outside cancel
|
|
176
|
-
| ⌖ Annotate | ⌥⇧A | click or tap an element, or drag a region (a finger too). While annotating, the page gets no press, move or hover, does not scroll, and selects no text. Then describe it
|
|
177
|
-
| ■ Stop | ⌥⇧S | the pill asks **Stop & save?** (Esc / **Keep recording** cancels), shows **Saving…** with progress while the tail drains, then **
|
|
177
|
+
| ≣ History | | this recording's notes and annotations, newest first, in the board's annotation-island layout: open one to see its versions, **Save edit** (sent as a new note that `replaces` it), or **reference** it from a new note |
|
|
178
|
+
| ⏸ Pause / ▶ Resume | ⌥⇧P (Alt⇧P) | freezes the clock and capture (a note written while paused is still sent) |
|
|
179
|
+
| ✎ Note | ⌥⇧N | the note sheet — Enter sends, ⇧Enter newline, Esc / ✕ / click-outside cancel. A cancelled draft (and its images) parks as a small drop on the pill: hover shows its first line, a click resumes it. The clock says **queued**, then **Saved** once the server has the note. Images: see [Attach images](#attach-images) |
|
|
180
|
+
| ⌖ Annotate | ⌥⇧A | click or tap an element, or drag a region (a finger too). While annotating, the page gets no press, move or hover, does not scroll, and selects no text. Then describe it; the sheet names what you picked (its crop where the host can read pixels — the extension — else its size and route) with **Reselect**. Everything lands on the board |
|
|
181
|
+
| ■ Stop | ⌥⇧S | the pill asks **Stop & save?** (Esc / **Keep recording** cancels), shows **Saving…** with progress while the tail drains, then **Building board · k/n** while the server builds it, then **Board ready · Open board** until **Done** (a failed build says so, with **Retry**) |
|
|
178
182
|
| ⋯ | | the linked account · **Report a bug** (below) · **Open this board** · **Recent** (this device's last five recordings, each linked to its board) · **Go to vitrinka** · **Size** S/M/L · **Technical details** · **Position** · **Unlink this device** (asks first) |
|
|
179
183
|
|
|
180
184
|
Move it anywhere: drag the puck or capsule and it lands on one of eight
|
|
@@ -188,11 +192,11 @@ wherever the HUD sits: sideways from a vertical one. They flip and shift so
|
|
|
188
192
|
they never leave the viewport. On a phone, sheets are a bottom sheet above
|
|
189
193
|
the keyboard and the link sheet drops the QR.
|
|
190
194
|
|
|
191
|
-
The sync
|
|
192
|
-
everything captured. A backlog reads `sending N
|
|
193
|
-
`offline · N` (nothing is dropped; the tail is kept in `localStorage`).
|
|
194
|
-
session the server closed reads `ended
|
|
195
|
-
an outage or an ended session. Stop drains first and refuses while the server
|
|
195
|
+
The sync state is honest: `on vitrinka` means the server confirmed it holds
|
|
196
|
+
everything captured. A backlog reads `sending N` (an amber ring). An outage
|
|
197
|
+
reads `offline · N` (nothing is dropped; the tail is kept in `localStorage`).
|
|
198
|
+
A session the server closed reads `ended` (a red ring). A one-line detail
|
|
199
|
+
also unfolds for an outage or an ended session. Stop drains first and refuses while the server
|
|
196
200
|
is unreachable: the pill says so and offers **Retry**.
|
|
197
201
|
|
|
198
202
|
**Size** and **Technical details** are user preferences. For a linked device
|
|
@@ -206,8 +210,9 @@ the recorder version.
|
|
|
206
210
|
The note, annotate and bug-report sheet is 440 px wide at every HUD size,
|
|
207
211
|
and its text box grows with what you type up to 20 rows, then scrolls. Drag
|
|
208
212
|
the grip on the sheet's free corner (the one away from the pill) to change
|
|
209
|
-
the width and
|
|
210
|
-
|
|
213
|
+
the width and the height: a dragged height is kept as the box's minimum, and
|
|
214
|
+
a longer draft still grows past it up to the room it has. On a phone the
|
|
215
|
+
sheet spans the screen, so its grip changes the height alone. With the grip focused, the arrow keys move it 16 px
|
|
211
216
|
(Shift: 64 px), and Enter or a double-click restores the default. The size is a
|
|
212
217
|
preference too (`sheetW`, `sheetH` in CSS px, 0 = the default). It is sent
|
|
213
218
|
in a PATCH of its own when you let go. A server that predates it answers 422,
|