diff --git a/docs/superpowers/plans/2026-05-13-rcon-password-display-v1.md b/docs/superpowers/plans/2026-05-13-rcon-password-display-v1.md new file mode 100644 index 0000000..dfaba4e --- /dev/null +++ b/docs/superpowers/plans/2026-05-13-rcon-password-display-v1.md @@ -0,0 +1,131 @@ +# RCON Password Display Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Show the RCON password on the server detail page with a show/hide toggle. + +**Architecture:** Three-file change. An external JS file (`password-reveal.js`) provides the reveal/hide interaction via event delegation on `[data-password-toggle]` attributes — no inline handlers or HTML event attributes. The template adds a row to the existing `.server-info` definition list with a masked span, value span, and toggle button. Base.html adds the script include alongside existing JS files. + +**Tech Stack:** Vanilla JS, Jinja2 templates, Flask + +--- + +## File Structure + +| File | Responsibility | +|------|---------------| +| `l4d2web/static/js/password-reveal.js` | New. Delegated click listener for show/hide toggle on `[data-password-toggle]` | +| `l4d2web/templates/server_detail.html` | Add one `