Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ gem "turbo-rails"
gem "stimulus-rails"
# The owner-only feedback button and local error reports;
# config/initializers/pocket_kit.rb sets both up. Pinned to pocket-kit's
# v0.3.0 release, which adds the opt-in session replay.
gem "pocket_kit", github: "calebl/pocket-kit", tag: "v0.3.0"
# v0.4.0 release: stored session replays expire after 7 days and the replay
# viewer answers only this machine.
gem "pocket_kit", github: "calebl/pocket-kit", tag: "v0.4.0"
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GIT
remote: https://github.com/calebl/pocket-kit.git
revision: cdcee988c9f49769f4b579d8078b6e43f3b0a582
tag: v0.3.0
revision: 76ac1d94d9c23a5eec32b3a0c028673121fd00bc
tag: v0.4.0
specs:
pocket_kit (0.3.0)
pocket_kit (0.4.0)
importmap-rails (>= 2.0)
rails (>= 8.0)
stimulus-rails (>= 1.3)
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ A feedback note or a page error report also carries a session replay:
pocket-kit keeps about the last 30 seconds of the page in memory and sends it
only with a report. Typed text stays masked, both in the fields and where the
page echoes a typed line back; narration is recorded as shown. Accepted
replays are saved under `tmp/pocket_kit/replays` and the report names a viewer
path, which for now opens only from the machine running the app. A page error
replays are saved under `tmp/pocket_kit/replays`, are deleted after 7 days,
and the report names a viewer path that opens only from the machine running
the app. A page error
reported as the page closes may be too large to arrive. With neither command
set, nothing is recorded.

Expand Down
4 changes: 4 additions & 0 deletions config/initializers/pocket_kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@
# that echo a typed line back (`.command`, the saved-turn notice) carry
# `rr-mask` so the line is not recorded in clear there either. Narration
# that restates what the player did is game prose and is recorded.
#
# NOT KEPT AND NOT SHARED: a stored replay expires after pocket-kit's
# default 7 days (`replay.max_age`, left unset) and the viewer answers only
# this machine, which `replay.viewer` could narrow but never widen.
config.replay.enabled = true
end
Loading