Skip to content

refactor: terse abuse-report messages, no P1/P2 jargon - #173

Merged
Nachtalb merged 2 commits into
masterfrom
fix/report-terse-messages
Aug 24, 2026
Merged

refactor: terse abuse-report messages, no P1/P2 jargon#173
Nachtalb merged 2 commits into
masterfrom
fix/report-terse-messages

Conversation

@Nachtalb

Copy link
Copy Markdown
Owner

Summary

The abuse-report messages read like a novel. Cut them down.

  • No more P1/P2. There are exactly two secrets β€” the page password and the image key β€” so the labels only ever added a decoder ring. Gone from every message, placeholder and error string; internal variable names are unchanged.
  • One line per outcome. User 8973086922 was already filed with NCMEC in report #255941210 along with 34 other file(s). The plaintext files were deleted from disk after filing (the encrypted copies are kept in that report) β€” nothing new to report. β†’ βœ… already filed with NCMEC in report #255941210 with an Open 8973086922 button carrying the id. Same for the active/cleared/nothing-on-disk cases, and for the /report DM.
  • Create field fits on one line β€” the long placeholder wrapped it; now just ID, @username, file or URLs.
  • Tap the image key to copy it (clipboard API with a textarea fallback for older Telegram webviews); the chip flashes copied.

Test plan

  • Full gate green: ruff check, ruff format --check, ty check, pytest (564 passed).
  • Both webview script blocks pass node --check.
  • Assertions that pinned the old P1 <code> / "P1" wording updated to the new strings, so they still fail if the text regresses.

Every result already carries the user id in its own row or button, and
there are exactly two secrets β€” the page password and the image key β€” so
the P1/P2 labels only added a decoder ring. Cut the prose walls down to
one line per outcome and name the secrets plainly. Internal variable
names are unchanged.
The long placeholder wrapped the input onto two lines; a short one keeps
it at one. Result rows lose the redundant id (the open button carries
it), and the image key is now a tap-to-copy chip.
@Nachtalb
Nachtalb force-pushed the fix/report-terse-messages branch from f365c29 to 0b4184c Compare August 24, 2026 16:58
@Nachtalb
Nachtalb merged commit d64bd94 into master Aug 24, 2026
7 checks passed
@Nachtalb
Nachtalb deleted the fix/report-terse-messages branch August 24, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant