GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 10, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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:

  • web:: — 605 passed, 0 failed
  • local_events — 19 passed, 0 failed
  • render_peers — 4 passed (incl. the id(web): peers auto-refresh nests a duplicate #peers-content — /api/peers returns the full page wrapper, but fetchPartial assigns it as innerHTML #6956 no-wrapper regression, updated for the new signature)
  • block — 63 passed (block-list storage/enforcement plus route-adjacent coverage)
  • Default-feature lib build also compiles clean.

Refs #2245


Autofix with [code]smith
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.

All reactions
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 19:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 10, 2026
id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) #2245
Closed
repo-worker-code-k
feat(id): operator block list surface - blocks page, block routes, on…
b231fe4
…e-click peer block (#2245)
@dezren39
dezren39 force-pushed the queue/8517-2245-operator-block-list branch from f4cf48c to b231fe4 Compare November 11, 2026 05:45
@dezren39
dezren39 merged commit 60234f0 into main Nov 11, 2026
2 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/8517-2245-operator-block-list branch November 11, 2026 05:46
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.