Skip to content

fix: restore comment and demo actions - #1568

Merged
rumblefrog merged 1 commit into
mainfrom
fix/1544-1554-punishment-actions
Sep 6, 2026
Merged

rumblefrog merged 1 commit into
mainfrom
fix/1544-1554-punishment-actions

Conversation

@rumblefrog

Copy link
Copy Markdown
Member

Description

  • restores Add, Edit, and Delete comment controls on ban and comm-block rows, the shared editor, and the responsive player drawer
  • enforces author/owner and moderation-queue permissions at the API boundary, preserves literal comment text safely, and keeps legacy comment callers compatible
  • restores attached-demo downloads on desktop/mobile ban rows and in the player drawer
  • validates uploaded demo references before linking them and hardens downloads against malformed paths and symlinks
  • updates the generated API contract, regression coverage, agent guidance, and panel screenshots

Motivation and Context

SourceBans++ 2.0 dropped the comment management CTAs and the visible demo download action from the modern punishment UI. These changes restore both workflows and close related authorization and file-boundary gaps found by the adversarial review.

Closes #1544
Closes #1554

How Has This Been Tested?

  • ./sbpp.sh phpstan
  • ./sbpp.sh ts-check
  • deterministic ./sbpp.sh composer api-contract regeneration
  • focused PHPUnit regressions: 94 tests, 406 assertions
  • full PHPUnit audit: 1,193/1,194 passed in the default worktree container; the remaining git-describe test passed separately after exposing the worktree git metadata (6 tests, 29 assertions)
  • full ./sbpp.sh e2e --workers=1: 388 passed; its two add-ban failures exposed the legacy dfile: 0 sentinel regression, which was fixed and both affected specs then passed on rerun
  • focused comment/demo Playwright coverage: 12 passed, 6 expected project skips
  • npm run build in docs/
  • CAPTURE_ROUTES=panel npm run capture against the isolated stack

Screenshots

Updated ban list actions

Dark-mode and the other required panel captures are committed with the change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@rumblefrog
rumblefrog requested review from a team and a lite review from Copilot September 6, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rumblefrog
rumblefrog enabled auto-merge September 6, 2026 19:45
@rumblefrog
rumblefrog disabled auto-merge September 6, 2026 19:47
@rumblefrog
rumblefrog merged commit 9651969 into main Sep 6, 2026
8 of 9 checks passed
@rumblefrog
rumblefrog deleted the fix/1544-1554-punishment-actions branch September 6, 2026 19:47
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The button to download demos of banned players is missing. bug: Missing comment buttons on banlist/commslist

2 participants