@testerpaykit/expo 0.11.0 → 2.0.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 CHANGED
@@ -2,6 +2,58 @@
2
2
 
3
3
  All notable changes to `@testerpaykit/expo` are documented here.
4
4
 
5
+ ## 2.0.0 — 2026-11-07
6
+
7
+ Breaking: tester UI only for confirmed and approved testers; local earnings props removed. Same release as Flutter, Web and Swift 2.0.0. Needs `@testerpaykit/api-client` 2.0.0.
8
+
9
+ ### Added
10
+ - `tpk.access` (`'ready' | 'hidden'`), `tpk.handle`, `tpk.onAccessChange()`,
11
+ `tpk.refreshAccess()` and `tpk.openVerification()`: the host can offer
12
+ its own "Become a tester" entry and see when the widget is visible.
13
+ - Daily briefing on the first FAB tap of a local day (after the tour):
14
+ greeting with the handle, money of yesterday and this week split into
15
+ released and in review (play-money label, held start bonus), up to three
16
+ bug news ("Behoben / Angenommen / War schon gemeldet / Wird angeschaut:
17
+ …"), messages, retests and open checklist tasks; "Los geht's" opens the
18
+ menu. Shows again the same day for new bug news. No money block when
19
+ `showCompensation` is false or offline.
20
+ - Unread messages as a yellow badge on the FAB; a 6-second banner for new
21
+ bug news (polled on app resume, menu open and every 60 s in front).
22
+ - "Du bist <handle>" at the top of the menu, "Du meldest als <handle>" in
23
+ the bug and voice sheets, "Mein Geld" in the menu.
24
+ - Thank-you after every submit: "Danke, <handle> — ist angekommen. Du
25
+ hörst von uns, sobald jemand draufschaut." (+ "Angenommene Bugs bringen
26
+ 2–8 € Spielgeld" for bugs in play money); a queued report says it is
27
+ sent once online.
28
+ - Wrapper props `enableTesterDashboard`, `showCompensation`, `showDebugLogs`.
29
+
30
+ ### Changed
31
+ - Bug thanks no longer name amounts: "Danke für deine Bug-Meldung, <handle>! Bugs werden belohnt – je nach Schwere und ob sie neu sind." (play money); "Mein Geld" says time pay applies only to test orders with an announced duration.
32
+ - Voice bug input records up to 3 minutes (was 60 s); the timer shows elapsed / max.
33
+ - The widget only appears for confirmed **and** approved testers, in every
34
+ build: FAB, shake, voice and every tester sheet stay hidden for everyone
35
+ else. Re-checked on app resume; a 403 from the tester gate on any request
36
+ hides it again.
37
+ - Every report (bug, voice, shake, general and session feedback, crash)
38
+ carries the current screen (kept apart from the breadcrumb ring, so it
39
+ survives an overflow and the background flush), the last 20 breadcrumbs
40
+ and the device as `{platform, os, osVersion, model, modelId, …}`.
41
+ - Session-end rating and comments: title "Session feedback: N/5", the
42
+ ratings structured in `appSnapshot.sessionFeedback`.
43
+ - Debug logs in the menu only in development builds by default; the
44
+ dashboard entry only when enabled.
45
+
46
+ ### Removed
47
+ - Deprecated local-estimate props `sessionStartedAt`, `earningsBaseAmount`,
48
+ `earningsPerMinuteRate`, `earningsCurrency` (FAB) and the earnings props
49
+ of `SessionDetailsSheet`. The ledger is the only source of money.
50
+
51
+ ## 1.2.0 — 2026-11-01
52
+
53
+ ### Changed
54
+ - Live link: a redacted card number no longer swallows the space after it.
55
+ - Same version number as all TesterPayKit SDKs (Flutter, Expo, Swift, Web) from now on: one release train, one feature set. No functional change against the previous version.
56
+
5
57
  ## 0.11.0 — 2026-10-31
6
58
 
7
59
  Requires `@testerpaykit/api-client` **^1.7.0** (the dependency range now
package/README.md CHANGED
@@ -168,6 +168,39 @@ export function App() {
168
168
  If your app already owns `TpkExpo.init()`, pass the initialized client
169
169
  into `TesterPayKitProvider` instead of `config`.
170
170
 
171
+ ## Who sees the widget
172
+
173
+ `<TesterPayKitWrapper>` shows its button, shake-to-report, the voice flow
174
+ and every tester sheet **only** for a tester with a confirmed phone number
175
+ **and** an admin's approval — in every build, TestFlight included.
176
+ Everyone else sees your app and nothing from TesterPayKit.
177
+
178
+ ```ts
179
+ tpk.access; // 'ready' | 'hidden'
180
+ tpk.handle; // 'moinsen-uli' while ready
181
+ tpk.onAccessChange(() => …); // returns the unsubscribe
182
+ await tpk.refreshAccess(); // re-asks the server (offline keeps the cache)
183
+ await tpk.openVerification(); // your own "Become a tester" entry
184
+ ```
185
+
186
+ `openVerification()` opens the wrapper's phone sheet when the number is
187
+ not confirmed yet and says so when the approval is pending. Access is
188
+ re-checked whenever the app comes to the front; any 403
189
+ `phone_required` / `approval_required` hides the widget at once. If you
190
+ render `<TpkOnboarding>` or `<TpkWelcomeSheet>` yourself, render them only
191
+ while `tpk.access === 'ready'`.
192
+
193
+ Wrapper options for the menu: `enableTesterDashboard` (default true),
194
+ `showCompensation` (default true — false hides every amount, the money
195
+ block of the daily briefing and the bug-bonus hint), `showDebugLogs`
196
+ (default `__DEV__`).
197
+
198
+ The first FAB tap of a day shows a short briefing (credits of yesterday
199
+ and this week, news about your reports, messages, retests, open checklist
200
+ tasks). Unread messages show as a yellow number on the FAB, new bug news
201
+ as a banner for six seconds, and every submit ends with a thank-you that
202
+ names the tester.
203
+
171
204
  ## What `TpkExpo.init()` does
172
205
 
173
206
  1. Reads cached anonymous-tester JWT from AsyncStorage (key