You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 111fbc3
Browse filesBrowse the repository at this point in the historyBrowse files
|`enabled`|`true`|`false` (or the whole value `false`): every submit answers `disabled`|
416
+
|`scale.id`|`"stars5"`| 1-32 of `[a-z0-9_]`, on every row; give a changed scale a new id (old rows keep theirs) |
417
+
|`scale.type`|`"stars"`|`thumbs` (rating 0 down / 1 up), `stars` or `scale` (rating 1..steps) |
418
+
|`scale.steps`|`5`| 2..10; thumbs is always 2 |
419
+
|`scale.labels`| none | one per step, lowest first (thumbs: 2, e.g. `["Down", "Up"]`); the rated step's label goes on the row |
420
+
|`maxText`|`1000`| most characters of text kept (1..2000); the row also keeps at most 2000 UTF-8 bytes |
421
+
|`rate.perMinute`, `rate.perDay`|`2`, `20`| accepted submits per player (in memory, kept across swaps, cleared when the player leaves) |
422
+
423
+
An invalid record value disables feedback (warned once per value); an invalid `configure` throws. Text is sanitised
424
+
(control and invisible characters stripped, whitespace collapsed, trimmed) and capped without splitting a code point;
425
+
`len` keeps the original length. `rating` must be an integer in the scale (`bad_rating`); a submit needs a rating or
426
+
some text (`empty`); `no_session` when no `AnalyticsEngine` runs or the player isn't in this server. Refused submits
427
+
don't count against the limits. The row's props (`scale`, `type`, `steps`, `r?`, `norm?`, `label?`, `text?`, `len`,
428
+
`topic?`, `play_s`, `ctx?`) are in src/analytics/SCHEMA.md. On a client `feedback()` throws; in edit mode every
429
+
submit is `disabled`.
387
430
-**Edit mode** (UI Labs stories, no kernel): `running` is false, identity has defaults, `persist` keeps a local table,
388
431
events never fire, and the server-only reads throw.
389
432
@@ -622,7 +665,9 @@ bun run build # rbxtsc --type package -> out/
622
665
`test-explorer-core` (Dex), `test-toolbox-sanitize` (the Creator Store sanitizer), `test-sha256` (SHA-256 / HMAC in util and the
623
666
pairing-code fingerprint), `test-notifications` (the launch token with the contract's shared vector, intent checks,
624
667
the queue: batches of 200, rev order, a swap's handover), `test-notify-server` (the notifications server against
625
-
mocked services) and `test-analytics-join` (the join row's metadata; no other player's UserId). `node scripts/check-self-calls.mjs out` flags compiled functions that call themselves on their first
668
+
mocked services), `test-analytics-join` (the join row's metadata; no other player's UserId) and `test-feedback`
669
+
(`feedback()`: the scale config, rating normalisation, text sanitising and caps with multi-byte text, rate limits, the
670
+
row's shape; run from framework/: `lune run scripts/test-feedback.luau out/`). `node scripts/check-self-calls.mjs out` flags compiled functions that call themselves on their first
626
671
lines (after `bun run build`).
627
672
-**Package contents:** only `out/` (no `.tsbuildinfo`), `README.md` and `LICENSE`; check with `bun pm pack --dry-run`.
628
673
-**Explorer class icons:**`assets/class-icons.png` (kept locally, not in the repo: it is Roblox's own texture) is
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@typetorch/framework",
3
-
"version": "0.6.3",
3
+
"version": "0.7.0",
4
4
"description": "TypeTorch framework for roblox-ts: hot-swappable modules (dependency injection, lifecycle, troves), guarded networking, hot assets and the in-game dev menu. Ships inside every TypeTorch artifact.",
0 commit comments