At the bottom of the "settings" tab, add a "Danger Zone" #39
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#39
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At the bottom of the settings page that I have copied above, I want you to add a section called the "Danger Zone"
The first entry for this zone is going to be "Delete Repository"
Everything in the danger zone needs confirmation by typing the repository name and then clicking a confirm button.
Fixed by #56 (branch fix/issue-39): Danger Zone at the bottom of Settings with Delete Repository behind an exact owner/name typed confirm; reuses the existing admin-only DELETE …/api. Browser-verified dark+light, zero console errors.
Review of PR #56 (fix/issue-39, commit
a9fde1d). Scope as expected: UI+docs only, 5 files, no package.json / no new deps (law 1 clean).DangerConfirm semantics — all correct:
Admin-gating (checked, not a defect): Settings page itself is NOT admin-gated and DangerZone renders for non-admins — consistent with perms.jsx P6 (server authoritative, client gating cosmetic) and the 08 doc line 'server is the admin gate'. A non-admin attempt 403s and the text lands in the entry's inline error line. Intentional; noting so it's on record.
Backend claims — spot-checked, all true:
Tests: danger.test.js 3/3 pass; full web/test/unit 227 pass / 2 fail, and both failures (data-guard, reaction-cache) reproduce identically on origin/main scratch worktree — pre-existing, unrelated. vite build clean (105 modules, 1.46s). No browser drive (node tests + reasoning only, per instructions); no Go tests needed (no backend files touched). Main worktree untouched (read-only; all work in /tmp scratch worktrees, removed after).
MERGE RECOMMENDATION: ready to merge.
Fixed by PR #56 (review clean; danger matcher tests green), merged. Closing.