feat: export a report or chat as Markdown, and file it as a Forgejo or GitHub issue #66
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!66
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/54-export"
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 #66 @
b827a40(Copy/Download .md for reports and chats, Issue trackers settings, Create issue modal) passed my real-Chromium check at 390px and desktop plus a security audit (C27), its tests (C28) and Upper Wolfjaw's own run on my computer (C29); no findings.Fixes #54
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/lamplighter/export_test.exs test/lamplighter_web/controllers/export_controller_test.exs test/lamplighter_web/live/export_live_test.exs test/lamplighter/trackers_test.exs test/lamplighter_web/live/tracker_settings_live_test.exs test/lamplighter_web/live/create_issue_live_test.exs2c658e5): exit 1b827a40): exit 0Checks
cd /home/peak/work/lamplighter-v1-2 && curl -s --noproxy '*' -o /dev/null localhost:4128/users/log-in && timeout 170 ~/.venvs/pw/bin/python checks/export_browser.py 3 1 | tail -1 | grep -qx ok, exit 0export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix precommit, exit 0b827a40passes 34 real-Chromium checks at 390px and desktop against a fake Forgejo: export access control, token never rendered or kept after a URL change, bad repos rejected before any request, double-click files one issue, modal Escape/reopen, and no overflow. (Nye):cd /home/peak/work/lamplighter-v1-2 && timeout 170 python3 review54/nye_check54.py http://localhost:4128 13 1, exit 0cd /home/peak/work/lamplighter-v1-2/lamplighter-57 && . ../env.sh && unset FORGEJO_TOKEN && mix test test/lamplighter/export_test.exs test/lamplighter/trackers_test.exs test/lamplighter_web/controllers/export_controller_test.exs test/lamplighter_web/live/create_issue_live_test.exs test/lamplighter_web/live/export_live_test.exs test/lamplighter_web/live/tracker_settings_live_test.exs && FORGEJO_TOKEN=x mix test test/lamplighter/trackers_test.exs test/lamplighter_web/live/tracker_settings_live_test.exs, exit 0cd /home/peak/work/lamplighter-v1-2 && timeout 170 python3 review54/export_browser.py 13 1, exit 0b827a40the 56 #54 tests pass, and reading Trackers and the export controller found no problems: repo format blocks path walking, no retries or redirects, token scrubbed and dropped on URL change, chats scoped to the user. Untested: a real Forgejo or GitHub; merge #65 with its F2 fix first. (Prover):cd /home/peak/work/lamplighter-v1-2/lamplighter-57 && . ../env.sh && unset FORGEJO_TOKEN && mix test test/lamplighter/export_test.exs test/lamplighter/trackers_test.exs test/lamplighter_web/controllers/export_controller_test.exs test/lamplighter_web/live/create_issue_live_test.exs test/lamplighter_web/live/export_live_test.exs test/lamplighter_web/live/tracker_settings_live_test.exs, exit 0Risks
Stacked on PR #65 (#57), which still has F2 (note box not cleared) being fixed: merge #65 with that fix first, then #66. Any signed-in user can file issues with the instance's tracker token (same model as notifications and sources). If FORGEJO_TOKEN is set in the environment but the URL is saved in settings, the env token is held back on purpose and filing says it isn't set up (the settings page warns). Cosmetic: in the chat, the export menu stays open behind the Create issue modal. Checked against a fake Forgejo only, not a real Forgejo or GitHub.
Prover
Passed (Sonnet): At
b827a40the 56 #54 tests pass, and reading Trackers and the export controller found no problems: repo format blocks path walking, no retries or redirects, token scrubbed and dropped on URL change, chats scoped to the user. Untested: a real Forgejo or GitHub; merge #65 with its F2 fix first.Every command above was run by Fortysix's Basecamp itself, on the branch named.
Screenshots at
b827a40(real Chromium, dev server + a fake Forgejo; example data: a seeded nas-01 SMART report and a chat).desktop-report-export
390-report-export
desktop-issue-modal
390-issue-modal
desktop-issue-error
desktop-issue-created
390-chat-export
desktop-chat-issue
desktop-settings
390-settings
b827a40677f0019e426eRebased onto main
1d67708after #64 (relay agent) merged, now atf0019e4. 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.