feat(reports): report timeline, acknowledge and notes (#57) #65
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!65
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/57-report-timeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
PR #65 @
4889b54: F2 fixed (note box clears after Add note, C34). Re-ran my full Chromium check at 390px and desktop with two users: ack/unack, add/edit/delete own notes, no edit/delete of others' notes (even forged events), unsafe Markdown stripped, live updates, Has notes filter, no overflow. All pass.Fixes #57
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && MIX_ENV=test mix test test/lamplighter/reports/timeline_test.exs test/lamplighter_web/live/report_timeline_live_test.exs test/lamplighter_web/api/timeline_test.exse07248f): exit 12c658e5): exit 0Checks
cd /home/peak/work/lamplighter-v1-2 && curl -s --noproxy '*' -o /dev/null -w '%{http_code}' localhost:4127/users/log-in | grep -q 200 && ~/.venvs/pw/bin/python checks/timeline_browser.py $(psql -qtA postgresql://postgres:postgres@localhost/lamplighter_dev -c "select id from reports where fingerprint like 'demo57:%' order by id desc limit 1"), exit 0cd /home/peak/work/lamplighter-v1-2/wt-57 && export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && git rev-parse --short HEAD && mix precommit 2>&1 | tail -3 && git diff --exit-code, exit 0cd /home/peak/work/lamplighter-v1-2 && timeout 170 python3 review57/nye_check57.py && timeout 120 python3 review57/nye_check57b.py, exit 04889b54, my real-Chromium checks pass: the note box is empty after Add note, and the full #57 flow (ack, notes, edit/delete, forged delete refused, Has notes filter, no overflow at 390px/desktop) still passes. (Nye):cd /home/peak/work/lamplighter-v1-2/lamplighter-57 && test "$(git rev-parse --short HEAD)" = 4889b54 && cd ../review57 && python3 nye_note_form_clears.py http://localhost:4128 && python3 nye_check57.py 2>&1 | tail -3 | grep -q 'FAILS: \[\]', exit 04889b54in my own clean worktree the full suite passes (912 tests, 0 failures), and reading the code confirms only a note's author can edit or delete it, with forged events refused. Not re-run: the dev-server Chromium scripts; not tried: concurrent edits. (Prover):cd /tmp/prov57 && E=$(ls -d /home/peak/.local/share/mise/installs/elixir/*/bin|head -1); O=$(ls -d /home/peak/.local/share/mise/installs/erlang/*/bin|head -1); export PATH=$E:$O:$PATH MIX_HOME=$E/../.mix; test "$(git rev-parse --short HEAD)" = 4889b54 && MIX_ENV=test mix test 2>&1 | grep -q " 0 failures\|passed", exit 0Found and fixed
Risks
Merge order D17: PR #65 must merge before PR #66 (#54), which carries #57's pre-fix commits; #66 and #67 will need a rebase or will pick up
4889b54on merge.Prover
Passed (Sonnet): At
4889b54in my own clean worktree the full suite passes (912 tests, 0 failures), and reading the code confirms only a note's author can edit or delete it, with forged events refused. Not re-run: the dev-server Chromium scripts; not tried: concurrent edits.Every command above was run by Fortysix's Basecamp itself, on the branch named.
Screenshots at PR head (
2c658e5), real Chromium, demo data.desktop-report
390-report
desktop-dashboard
390-dashboard
desktop-history-notes
390-history-notes
4889b540d5a669414d50Rebased onto main
1d67708after #64 (relay agent) merged, now ata669414. The only conflicts were where both added to the same list: the Settings tabs (Agents now sits after Sources), the settings routes, the server's supervision tree (silence sweeper added to server_children), and the API auth test's route check. No feature code changed.mix precommitpasses on every branch in the stack and CI is green.