Skip to content

feat(fraud): mark as sus#2080

Merged
NeonGamerBot-QK merged 6 commits intohackclub:mainfrom
NeonGamerBot-QK:sussy
Apr 14, 2026
Merged

feat(fraud): mark as sus#2080
NeonGamerBot-QK merged 6 commits intohackclub:mainfrom
NeonGamerBot-QK:sussy

Conversation

@NeonGamerBot-QK
Copy link
Copy Markdown
Member

@NeonGamerBot-QK NeonGamerBot-QK commented Apr 7, 2026

fixes #1652
260407_18h27m01s_screenshot
This is a great feature which will help fraud dept diffrentiate between people

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “suspicious user” flagging mechanism to User (tracking who flagged them), exposes mark/unmark actions via admin UI and webhook endpoints, and improves audit log rendering for these changes.

Changes:

  • Add users.marked_sus_by (string array) and a derived User#is_sus? helper.
  • Add admin UI controls + banner on the admin user page to mark/unmark a user as suspicious.
  • Add webhook + admin routes/controllers for mark/unmark, and enhance audit log detail display for marked_sus_by diffs.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
db/schema.rb Updates schema version and adds marked_sus_by array column to users.
db/migrate/20260407220819_add_marked_sus_by_to_users.rb Migration introducing users.marked_sus_by.
config/routes.rb Adds webhook endpoints and admin member routes for mark/unmark sus.
app/views/admin/users/show.html.erb Shows “sus” banner and mark/unmark controls in admin UI.
app/views/admin/audit_logs/show.html.erb Adds special-case display for sus events and a detailed diff UI.
app/models/user.rb Adds is_sus? derived helper.
app/controllers/webhooks/mark_sus_controller.rb Implements webhook mark/unmark sus endpoints.
app/controllers/admin/users_controller.rb Implements admin mark/unmark sus actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/controllers/webhooks/mark_sus_controller.rb
Comment thread app/controllers/webhooks/mark_sus_controller.rb
Comment thread app/controllers/admin/users_controller.rb
Comment thread app/views/admin/audit_logs/show.html.erb
Comment thread app/views/admin/audit_logs/show.html.erb
Comment thread app/views/admin/users/show.html.erb
@cskartikey
Copy link
Copy Markdown
Member

cskartikey commented Apr 8, 2026 via email

@NeonGamerBot-QK
Copy link
Copy Markdown
Member Author

NeonGamerBot-QK commented Apr 8, 2026

Why is this required? Please fix your commit message
this was a requested feature which will help the fraud dept, idk what you mean by fix the commit message

nothing else is changed besides adding the ability to mark people as sus..?

@NeonGamerBot-QK NeonGamerBot-QK added this pull request to the merge queue Apr 14, 2026
Merged via the queue into hackclub:main with commit 1bc9bf5 Apr 14, 2026
6 checks passed
@NeonGamerBot-QK NeonGamerBot-QK deleted the sussy branch April 14, 2026 23:54
@skyfallwastaken
Copy link
Copy Markdown
Member

sus

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.

feat: sussy

4 participants