Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Przegląd i audyt

ui-ux-active

/ui-ux-active

Sprawdza planowane lub przeglądane przyciski i działania użytkownika, zwłaszcza usuwanie, nadpisywanie, wysyłkę i blokady: potwierdzenia, cofanie i uprawnienia.

Repozytorium
ui-ux-behaves ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Sprawdza planowane lub przeglądane przyciski i działania użytkownika, zwłaszcza usuwanie, nadpisywanie, wysyłkę i blokady: potwierdzenia, cofanie i uprawnienia.

Wyzwalacze z opisu

Are you sure?
Oryginalny opis (EN)

User-triggered actions. Use when a button, action, or menu item is planned or reviewed—especially when data is deleted, overwritten, sent, submitted, or locked, or when confirmation, undo, trash, warnings, or permissions are involved, or when "Are you sure?" dialogs are flagged.

Jak działa

  1. Buttons
  2. Warn, but Recover
  3. action.success and action.failed
  4. Accessibility
  5. Responsive
  6. Checklist per dangerous action
Sekcje z nagłówków SKILL.md, w oryginale · 73 linii, 559 słów
Podgląd SKILL.md
---
name: ui-ux-active
description: User-triggered actions. Use when a button, action, or menu item is planned or
  reviewed—especially when data is deleted, overwritten, sent, submitted, or locked, or when
  confirmation, undo, trash, warnings, or permissions are involved, or when "Are you sure?"
  dialogs are flagged.
---

# Actions (active) and "Warn, but Recover"

Friction increases with **consequence, scope, and irreversibility**. Each action ends with a
result, a way back, and a next step (forgiveness pattern, peak-end principle).

## Buttons

| Key | Rule |
|---|---|
| `action.primary` | One per area, verb + noun ("Create record"), never "OK" |
| `action.secondary` | Cancel, alternatives; placed before the primary action |
| `action.danger` | Separate from everyday actions, at the bottom of the menu; never default, never on Enter |
| `action.pending` | Button shows progress; a second click has no effect |
| `action.hidden` | No permission → hide. Frontend permissions are convenience only; the backend always checks |
| `action.blocked` | Blocked by state → hint with a way out (state, action, button to resolve, "How it works"); the button points to it via `aria-describedby` |

## Warn, but Recover

Sequence: `action.warn` (early) → `action.notice` (inline) → `action.warn` (escalated) →
`action.confirm` → `action.success` + `action.undo`. **Routine actions skip everything up to
`action.success`.**

Decision, top to bottom, the first "yes" wins:

| Question | Yes → |
|---|---|
| 1. Reversible? | Execute immediately, `action.undo` (undo ≥ 10 s) |
| 2. Still referenced (other records, documents, links)? | `action.deactivate`: offer only "Deactivate"; "Delete" appears only when nothing points to it any more |
| 3. Can it be cushioned? | Trash with a retention period, versions, audit log; then as 1 |
| 4. Would a mistake be serious? | `action.confirm`: consequence with object, count, names **before** confirming |
| 5. Worst case catastrophic and rare (delete permanently, send to an external office)? | Multi-layered: confirmation + log; `action.confirmTyped` (type the name) only here |

Also: frequent action → keep it light; user in flow (data entry, writing) → do not interrupt
with a modal. Do not add artificial waiting times.

**Rule:** protect catastrophic and hard-to-fix actions; provide a way back for everything that
is easily undone.

## `action.success` and `action.failed`

- Specific: "Letter sent to Anna Weber.", not "Action completed".
- Undo **and** the next sensible step as a button; offer undo only when it works reliably.
- Failure: what is kept, what works now, "Try again"; without technical jargon or blame (`../ui-ux/references/helpful-feedback.md`).

In detail (four strategies, mistakes, measuring): `references/warn-but-recover.md`.

## Accessibility

- Announce success and undo via a live region; the message does **not** take focus.
- The undo message stays while hovered/focused, can be closed, and is keyboard reachable (WCAG 2.2.1).
- After the action: focus a sensible target (neighbouring row, heading), never lost.
- Button names unambiguous without context ("Delete record Weber" in the row menu).

## Responsive

- At 375 px the primary action stays visible; further actions go into the menu.
- Stacked buttons: the safe action is reached first, the dangerous one not under the thumb.

## Checklist per dangerous action

- [ ] Would undo or deactivate suffice instead of a confirmation?
- [ ] Consequence names object, count, names before confirming?
- [ ] The safe option is default and has initial focus?
- [ ] Success with undo **and** next step?
- [ ] Keyboard, announcement, focus afterwards checked?
- [ ] Worst case protected in several layers?

Heuristics (`../ui-ux/references/masters.md`): H3 control and freedom, H5 error prevention,
H9 a way out when blocked (`action.blocked`).

Implementation: mapping of the keys in the design-system mapping
(`ui-ux/references/design-system-mapping.md`).
Pliki w paczce (2)
  • SKILL.md 4 KB
  • references/warn-but-recover.md 3 KB

Wersje

W bazie nie ma innych skilli o nazwie ui-ux-active.

Migawka bazy z 13.11.2026 · wersja paczki d57b142d7064 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100designing-user-experience
    Pomaga projektować zachowanie interfejsu: przepływy użytkownika, nawigację, formularze i walidację, stany ładowania, puste i błędów, potwierdzenia, cofanie oraz komunikaty.
  • 100forgiveness
    Projektuje funkcje wybaczające błędy użytkownika: usuwanie, wysyłanie, publikowanie, cofanie, soft-delete, szkice i okna potwierdzeń.
  • 100forgiveness-undo-and-soft-delete
    Projektuje odwracalność działań: cofanie, soft delete, archiwum z odzyskiwaniem, historię wersji i okna odzyskiwania.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.