Commit 537c7a3
feat(public): unified disclosure page with sub-tabs (disclosure + claim + opt-out + abuse)
The /disclosure (new), /claim, /opt-out, /abuse routes now serve a
single focused HTML extracted from public-site.html. Path-driven
sub-tab JS reveals the matching pane on load and intercepts tab
clicks with history.pushState (graceful fallback if JS disabled —
each path serves the same HTML directly). Existing form-POST
endpoints under /api/public/* are unchanged.
Test: public_disclosure_routes_serve_form_content (in-process,
GETs all 4 paths and asserts each carries #responsible-disclosure +
#claim + #opt-out + #abuse + the sub-tab strip).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ef60f6f commit 537c7a3
2 files changed
Lines changed: 2445 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| |||
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
607 | 612 | | |
608 | 613 | | |
609 | 614 | | |
| |||
4483 | 4488 | | |
4484 | 4489 | | |
4485 | 4490 | | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
4486 | 4530 | | |
0 commit comments