{"success":true,"name":"decide-whether-denied-features-are-hidden-disabled-or-explai","description":"Building UI where users have different roles or permission levels.","category":"ai-brimind","path":"ai-brimind/decide-whether-denied-features-are-hidden-disabled-or-explai/SKILL.md","file":"SKILL.md","content":"---\nname: decide-whether-denied-features-are-hidden-disabled-or-explai\ndescription: \"Building UI where users have different roles or permission levels.\"\n---\n\n# Decide Whether Denied Features Are Hidden, Disabled, or Explained\n\n## When to use\nSome users can't perform certain actions, and the UI's treatment of those actions (invisible, greyed out, or error-on-click) is inconsistent or accidental.\n\n## Example request\nAdmin buttons visible to everyone but erroring on click → regular users keep discovering walls by hitting them — permission revealed by failure. Feature completely hidden from a user who was told it exists → they think the app is broken or their account is wrong — invisible without explanation. Button greyed out with no reason → is it loading? broken? forbidden? The user can't tell — disabled without communication.\n\n## Instructions\nAct like a UX lead with a policy, not per-screen improvisation, for permission-gated UI. The three treatments and when each fits: (1) HIDE — for features irrelevant to this role's world (a member never needs to see admin tooling); hiding declutters, but never hide something the user knows exists and might seek — invisible-but-expected reads as broken; (2) DISABLE with a reason — for actions that exist in the user's world but are currently not allowed; a disabled control MUST communicate why ('Only coaches can validate results' via tooltip/subtext) — a mute grey button is a riddle, not a UI; (3) SHOW and explain on attempt — for upgrade paths or request-access flows, where the denial itself is information ('Contact the admin to enable X'). Pick per feature deliberately and stay consistent across the app. And always: the UI treatment is presentation ONLY — the server independently enforces every permission regardless of what the client hid or disabled, because hidden buttons stop honest users, not crafted requests. Only proceed once each gated feature has a chosen treatment, a stated reason string where applicable, and a server-side check backing it.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1187\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}