Feature plan: Step 1 · Step 2 · Step 3 · Step 4

Layered interface: Step 2 feature description

Problem

A first-time visitor to mitrapclub.com sees the whole v3 board. The club's simple purpose, sharing tracks for Friday, gets lost among tools most members never need.

User stories

  • As a new club member, I want to see only the tracks queue, the share box and the next meeting, so I know what the site is for at a glance.

  • As a curious or technical member, I want a hidden π that opens the full board, so I can explore without cluttering everyone else's view.

  • As a member with several tabs open, I want a switch in one tab to reach the others within about a second.

  • As a visitor without JavaScript, I want the same basic view and a working π, so the site never locks me out.

Core requirements

  • Two independent switches, as in Pollyanna: advanced (off by default) and beginner (on by default). Every visitor starts with beginner on and advanced off.

  • Content falls into four groups: base (always shown), beginner tips, advanced parts, and beginner tips for advanced parts. The last group shows only when both switches are on: a small explanation bubble beside each technical detail.

  • A small π sits in the bottom-right corner of every page. It turns advanced on and leaves beginner as it is, so a newcomer to advanced still gets the explanations. Tapping it again turns advanced off. The π looks lit while advanced is on, is reachable by keyboard, and has a text label for screen readers.

  • Beginner tips carry an "I already know this stuff" ✕ that turns beginner off on its own, without touching advanced.

  • The layer lives in a cookie and in localStorage. The code says why: the cookie lets the server and /layer.css start the page in the right layer; localStorage lasts longer in some browsers and lets other tabs follow.

  • On load, the copy written more recently wins, and the other copy is corrected.

  • Cached and static pages stay the same for every visitor. Only the small /layer.css answer varies.

Delivery scope

  • Work type: application change.

  • Behind a new feature flag, off by default. The mitrapclub site profile turns it on. Other sites see no change.

  • No read-model or database schema change.

  • The help or About page answers "Where is everything?" with "Did you click the π?"

Completion boundary

  • Normal entry: a new visitor opens mitrapclub.com on a phone and sees the basic view.

  • End-to-end outcome: they tap the π, see the full board, and tap it again to return.

  • Recovery: if the two copies disagree, or localStorage was wiped, the page still settles on one layer without a visible jump.

  • Release: the flag is on for mitrapclub, and Ilya has tried both layers on his iPhone.

Known user or environment

Ilya uses an iPhone with Safari, which clears localStorage after about seven days without a visit. Entry: he opens mitrapclub.com after a week away. The cookie still says advanced, so the page starts in advanced and localStorage is rewritten from it. If the page shows the wrong layer, one tap on the π fixes it. Evidence: a check on iPhone Safari after clearing site storage, not a desktop result.

Risks

  • A layer flash on cached pages. Impact: content jumps after load. Validate early with a cached page and an advanced cookie. Mitigation: /layer.css loads in the head before paint, like the theme stylesheet.

  • /layer.css gets cached across visitors. Impact: one visitor's layer reaches another. Validate with the high-traffic and static rules in public/.htaccess. Mitigation: the route never goes through the static path and is sent as private and uncached.

  • Basic hides something a member needs. Impact: members get stuck. Validate by listing each nav item and control as basic or advanced in Step 3. Mitigation: the π is always visible and always restores everything.

  • The π is too hard to find on a phone. Impact: advanced is effectively lost there. Validate on the iPhone SE Ilya demos with. Mitigation: a tap target of at least 44 points, even though it looks small.

Shared component inventory

  • Theme setting (templates/layout.php head script, ThemeRegistry::THEME_HINT_COOKIE, TemplateRenderer::themeHint(), public/assets/theme_toggle.js): reuse its cookie-plus-storage pattern and its before-paint timing.

  • Cross-tab updates (public/assets/member_approval.js storage listener): reuse the same approach.

  • Browser storage keys (browserNamespace in SiteProfileRegistry, as thread_density_toggle.js uses): reuse, so the key is per site.

  • Feature flags (FeatureFlagRegistry): add one flag.

  • Site profile (SiteProfileRegistry, mitrapclub entry): turn the flag on there.

  • No-script rules (site.css first-paint block): the π link works without scripts, so it needs no .requires-script.

  • Status bar (site-status-bar in layout.php): not reused for the π, because it is hidden from screen readers.

Concepts touched

Site profile, page theme, no-script presentation, feature flags, static publication. New: layer setting, a per-visitor choice of basic or advanced, kept in a cookie and localStorage.

User flow

  1. A new member opens mitrapclub.com and sees the tracks queue, the share box and the next meeting.

  2. They notice the π in the corner and tap it.

  3. The full board appears, with small explanation bubbles beside the technical parts, and the π lights up. Other open tabs switch too.

  4. Once they know their way around, they tap "I already know this stuff" and the bubbles go away.

  5. They tap the π again and return to basic.

  6. A week later they come back, and the site remembers both switches.

Success criteria

  • A new visitor's first view shows only the basic items, with and without JavaScript.

  • A switch reaches other open tabs within one second.

  • No cached page varies by visitor; only /layer.css does.

  • On iPhone Safari with storage cleared, the layer follows the cookie with no visible jump.

  • Sites without the flag look exactly as before.

Open questions

  1. Which nav items are basic on mitrapclub? A first guess: Music (the tracks queue), Calendar and About.

  2. Is a third "member" layer wanted later?

  3. Templates mark the four groups with plain class names. Nested elements, as in Pollyanna, or a single combined class name for "beginner tips for advanced"? Step 3 can decide.

— Claude · 2026-12-04 UTC — Revised by Claude · 2026-12-04 UTC (two switches; the π leaves beginner on; "I already know this stuff", per Ilya)

Approval

Approved Step 2 on 2026-12-04 by Ilya, by voice while driving ("approve step two"). He plans to review the document later.