Commit 74ce141
chore(v1.100.1b.B): GOTH PR-D4 stage 2 — delete cmd/nftban-ui + cmd/nftban-ui-auth + internal/ui source trees (#500)
* chore(goth): delete cmd/nftban-ui/ source tree
Per 1.100.1b.B narrow boundary (locked 2026-04-26 after read-only
breakage-map scoping pass): zero non-self Go consumers, zero compile-
survival edits required.
Files removed:
cmd/nftban-ui/main.go (474 LOC)
cmd/nftban-ui/handlers/goth.go (3,408 LOC)
cmd/nftban-ui/handlers/metrics_handlers.go (1,284 LOC)
cmd/nftban-ui/handlers/settings_handlers.go (671 LOC)
cmd/nftban-ui/handlers/settings_handlers_test.go (396 LOC)
cmd/nftban-ui/handlers/sse_handlers.go (359 LOC)
cmd/nftban-ui/handlers/chart_handlers.go (187 LOC)
cmd/nftban-ui/disable-dev-mode.sh (script)
cmd/nftban-ui/enable-dev-mode.sh (script)
Total: 9 files, ~6,779 LOC + 2 dev-mode shell scripts.
The packages internal/api, internal/middleware, internal/auth,
internal/session, internal/authproto become orphaned-but-still-
compiling; their deletion is deferred to 1.100.1b.C.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(goth): delete cmd/nftban-ui-auth/ source tree
Per 1.100.1b.B narrow boundary: zero non-self Go consumers,
zero compile-survival edits required.
Files removed:
cmd/nftban-ui-auth/main.go (249 LOC)
cmd/nftban-ui-auth was the PAM-backed authentication daemon that
served the Web GUI. Its imports of internal/auth + internal/authproto
leave with this delete; the packages themselves become orphaned-but-
still-compiling (they have other internal callers via internal/api +
internal/middleware) and are deferred to 1.100.1b.C.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(goth): delete internal/ui/ package
Per 1.100.1b.B narrow boundary: only cmd/nftban-ui imported this
package; that consumer was deleted in the prior commit on this branch.
Now zero callers, zero compile-survival edits required.
Files removed:
internal/ui/types.go (1,185 LOC)
internal/ui/layout.templ + _templ (~1,000 LOC compiled)
internal/ui/pages/ (7 pages: health, metrics, modules, network,
system, whitelist, settings — both .templ and
generated _templ.go pairs)
internal/ui/components/ (templ component subtree)
internal/ui/ui-registry.json (UI route registry)
Total: 34 files, ~23,894 LOC.
This is the largest single deletion of v1.100.1b.B by LOC count.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(changelog): v1.100.1b.B — GOTH PR-D4 stage 2 (source-tree delete)
Document the 3-directory narrow source delete: cmd/nftban-ui (~6,947
LOC), cmd/nftban-ui-auth (249 LOC), internal/ui (~23,894 LOC). Total
~31,090 LOC removed across 44 files.
Note that orphaned-but-still-compiling packages (internal/api,
internal/middleware, internal/auth, internal/session, internal/authproto)
remain for 1.100.1b.C, and lifecycle completion (PR-25-30) remains
explicitly open.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(deps): go mod tidy after 1.100.1b.B source delete
Removed dependencies that were only used by the deleted GOTH UI surface:
- github.com/a-h/templ (templ rendering — used by internal/ui)
- github.com/msteinert/pam/v2 (PAM bindings — used by cmd/nftban-ui-auth)
Plus go.sum lines for transitively-removed deps (76 → 70 lines).
Mechanical fallout from the source-tree delete in this same PR. No new
dependencies added; no version bumps. Verified via `go mod tidy` on
lab2 (Go 1.25.0).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(docker): prune Dockerfile UI/auth references after 1.100.1b.B
Mechanical fallout of cmd/nftban-ui + cmd/nftban-ui-auth + internal/ui
deletion. Removes the build-graph references that no longer exist:
- linux-pam-dev (build) — only required by nftban-ui-auth
- go install templ + templ generate — only generated internal/ui/*.templ
- go build ./cmd/nftban-ui — directory deleted
- linux-pam (runtime) — only required by nftban-ui-auth
- COPY /out/nftban-ui — binary no longer built
No general Docker refactor; no image slimming beyond stale-line removal;
no behavior change for nftban-core or nftband.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bf2a9dc commit 74ce141
48 files changed
Lines changed: 23 additions & 31108 deletions
File tree
- cmd
- nftban-ui-auth
- nftban-ui
- handlers
- internal/ui
- pages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
14 | 32 | | |
15 | 33 | | |
16 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
33 | 31 | | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | | - | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| |||
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
57 | | - | |
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments