跳到正文
cccskills
免费在 GitHub 公开

account-settings

Use when implementing user account configuration and preferences.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.6 KB
  • references/pattern.md22.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Account Settings

User account configuration and preferences

What it solves

Account Settings is the centralized interface where authenticated users manage their account configuration, security preferences, notification settings, and personal data. It serves as the control center for everything related to the user's relationship with the application. A well-organized settings page groups related options logically, confirms destructive actions, and provides clear feedback when changes are saved — all while keeping sensitive operations behind re-authentication.

When to use

Use Account Settings to give users control over their account configuration, security, and preferences. Common scenarios include:

  • Changing account email or password
  • Managing notification preferences (email, push, in-app)
  • Configuring privacy and data sharing settings
  • Setting up or managing two-factor authentication
  • Managing connected applications and social login providers
  • Deleting or deactivating an account

When to avoid

  • Public-facing profile display (use User Profile instead)
  • Application-level settings that affect all users (use an admin panel)
  • First-time onboarding configuration (use an onboarding wizard)
  • Content or project settings specific to a workspace (use project settings)

Implementation workflow

  1. Confirm the pattern matches the problem and constraints before copying the example.
  2. Start from the anatomy and examples in references/pattern.md, then choose the smallest viable variation.
  3. Apply accessibility, performance, and interaction guardrails before layering visual polish.
  4. Use the testing guidance to verify behavior across keyboard, screen reader, responsive, and failure scenarios.

Accessibility guardrails

Do's ✅

  • Use proper heading hierarchy (h2 for sections, h3 for items)
  • Associate all form fields with labels
  • Announce save status with aria-live="polite" on the status element
  • Ensure the settings navigation is a <nav> with aria-label
  • Use aria-current on the active navigation item Don'ts ❌
  • Don't rely on color alone for status indicators (enabled/disabled)
  • Don't auto-save without confirmation for destructive changes
  • Don't use modals for every setting change — inline editing is faster

Performance guardrails

Target Metrics

  • Settings page load: < 200ms for the full page with all sections
  • Save operation: < 500ms round-trip
  • Toggle response: < 50ms visual feedback
  • Section navigation: < 50ms for tab/scroll transitions

Optimization Strategies

Lazy Load Settings Sections

const SecuritySettings = lazy(() => import('./SecuritySettings'));

Common mistakes

Global Save Button for All Settings

The Problem: A single "Save all" button at the bottom of the page means users must scroll to save, and it's unclear which changes will be applied.

How to Fix It: Use per-section save buttons. Each section saves independently with its own feedback message.

No Re-Authentication for Sensitive Changes

The Problem: Users can change their email, password, or disable 2FA without proving their identity again, allowing attackers with session access to take over the account.

How to Fix It: Require the current password (or 2FA code) before allowing changes to email, password, security settings, or account deletion.

No Confirmation for Account Deletion

The Problem: A single click on "Delete account" permanently destroys the account without warning.

How to Fix It: Use a multi-step confirmation: first click reveals a warning, second click confirms. Consider requiring the user to type "DELETE" or their email. Offer a grace period for recovery.

Related patterns


For full implementation detail, examples, and testing notes, see references/pattern.md.

Pattern page: https://uxpatterns.dev/patterns/authentication/account-settings

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

accordion

免费

Use when implementing expand and collapse content sections.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

Use when implementing social activity and updates stream.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

ai-chat

免费

Use when implementing conversational AI chat interfaces.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

Use when implementing handling AI-specific errors.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

Use when implementing loading states for AI operations.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

Use when implementing aI-powered autocomplete and suggestions.

中文简介正在准备中。当前显示原文说明。

thedaviddias/ux-patterns-for-developers2642026年10月5日 更新

查看 thedaviddias 的全部技能

报告此技能的问题