GeezerVison is showing github.com — feat(id): operator block list surface - blocks page, block routes, one-click peer block (#2245) by dezren39 · Pull Request #8212 · developing-today/code
Conversation
dezren39
commented
Nov 10, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Implements the operator surface for the block list — the remainder of #2245 (task 8517). The backend (persisted Block/BlockKind storage, BlockList trait, enforcement in abuse.rs / blob_gate.rs / pull_policy.rs) landed in PR #4874 and PR #4972, but no production caller of add_block/remove_block existed, so an operator could not actually block anyone.
- Routes (
pkgs/id/src/web/routes.rs): GET /blocks page, GET /api/blocks partial, POST /api/blocks (write a block row: peer_key / ip / topic_tag, reason, optional expiry in unix ms), POST /api/blocks/remove (unblock). Form values are validated (peer keys parse as endpoint IDs, IPs parse as addresses), post-action redirects are restricted to local paths, and refusals render escaped.
- Peers page (
templates.rs): every peer row gets a one-click Block action; already-blocked peers render a blocked badge with an Unblock action. The auto-refresh partial (render_peers_content, id(web): peers auto-refresh nests a duplicate #peers-content — /api/peers returns the full page wrapper, but fetchPartial assigns it as innerHTML #6956) carries the same state.
- Blocks page (
templates.rs::render_blocks): lists every row (kind, value, added, reason, expiry, active/expired) with an unblock action per row, plus an add-a-block form. Nav links added.
- LocalEvents (
local_events.rs): add_block / remove_block / blocks / is_blocked wrappers over the EventStore, so web-written rows are the same rows the enforcement seams read live.
/blocks, /api/blocks, /api/blocks/remove added to the host reserved routes.
Provenance
The implementation was found uncommitted in the task 8517 worktree from a prior session; this shift verified it, rebased it onto current main (resolving the routes/templates conflicts against the #6956 peers-partial refactor by threading the blocked set through render_peers_content), and finished it.
Tests
Laptop, pkgs/id workspace, --features web, current main after rebase:
Refs #2245
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 34 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1a8f701d-2ceb-44d9-a49f-ea64f8172032
Commits
-
Reviewing files that changed from the base of the PR and between db972e8 and b231fe4.
Files selected for processing: 4
-
pkgs/id/src/local_events.rs
pkgs/id/src/web/app_interface.rs
pkgs/id/src/web/routes.rs
pkgs/id/src/web/templates.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…e-click peer block (#2245)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|