@equal-experts/kuat-react 0.14.0-beta.2 → 0.15.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-docs/AGENTS.md +1 -1
- package/agent-docs/README.md +1 -1
- package/agent-docs/external/kuat-agent-rules/reference/accessibility/accessibility.md +27 -1
- package/agent-docs/external/kuat-agent-rules/reference/design-language/colour-usage.md +107 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/colours.md +86 -11
- package/agent-docs/external/kuat-agent-rules/reference/design-language/tokens/colors.tokens.json +193 -5
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/patterns/README.md +6 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/website.md +14 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/README.md +1 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/accessibility.md +0 -29
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/colour-modes.md +58 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-decision-tree.md +3 -32
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-registry.md +1 -1
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/product-content.md +0 -26
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/README.md +14 -5
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{forms.md → complete-a-form.md} +43 -53
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{dashboards.md → dashboard.md} +42 -51
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/documentation.md +41 -51
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{authentication.md → sign-in.md} +42 -52
- package/agent-docs/manifest.json +3 -3
- package/agent-docs/rules/LOADING-consumer.md +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Help users to sign in
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**User goal:** Get into the product quickly and securely, and recover access without friction when a
|
|
4
|
+
password is forgotten.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
> **Pattern:** *Help users to…* · single-medium (web-product) — concept and implementation together.
|
|
7
|
+
> Covers login, registration, password reset, and MFA / code entry.
|
|
6
8
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
### User Goals
|
|
9
|
+
## Context
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
Authentication is a barrier to the user's real task. Users want to get in quickly, trust that their
|
|
12
|
+
credentials are protected, and recover easily when something goes wrong. It is the first impression of
|
|
13
|
+
the product's competence, so friction and unclear errors here cost disproportionately.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Principles
|
|
16
16
|
|
|
17
|
-
| Principle |
|
|
17
|
+
| Principle | What it means |
|
|
18
18
|
|-----------|----------------|
|
|
19
19
|
| Minimise friction | Only ask for essential information |
|
|
20
20
|
| Clear feedback | Immediate, helpful error messages |
|
|
21
21
|
| Maintain trust | Security indicators, clear privacy info |
|
|
22
22
|
| Support recovery | Easy password reset, account recovery |
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Success shows up as: time to complete login/registration, password-reset completion rate, error and
|
|
25
|
+
recovery rates, and abandonment rate.
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
- Password reset completion rate
|
|
28
|
-
- Error rate and recovery success
|
|
29
|
-
- Abandonment rate
|
|
27
|
+
## Solution in web-product
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## Layout
|
|
29
|
+
### Layout
|
|
34
30
|
|
|
35
31
|
**Base Layout:** Single Column
|
|
36
32
|
|
|
37
33
|
Authentication pages should minimise distraction and focus users on the task.
|
|
38
34
|
|
|
39
|
-
|
|
35
|
+
#### Page Structure
|
|
40
36
|
|
|
41
37
|
```
|
|
42
38
|
┌─────────────────────────────────────────┐
|
|
@@ -59,7 +55,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
59
55
|
└─────────────────────────────────────────┘
|
|
60
56
|
```
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
#### Specifications
|
|
63
59
|
|
|
64
60
|
| Element | Value |
|
|
65
61
|
|---------|-------|
|
|
@@ -71,23 +67,21 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
71
67
|
| Minimum viewport height | 100vh |
|
|
72
68
|
| Logo placement | Centered above card, or inside card header |
|
|
73
69
|
|
|
74
|
-
|
|
70
|
+
#### Header
|
|
75
71
|
|
|
76
72
|
- **Minimal navigation** - Logo only, no full navigation
|
|
77
73
|
- Logo links to marketing site or app home
|
|
78
74
|
- No distracting elements
|
|
79
75
|
|
|
80
|
-
|
|
76
|
+
#### Footer
|
|
81
77
|
|
|
82
78
|
- Minimal: legal links only (Privacy Policy, Terms)
|
|
83
79
|
- Copyright notice optional
|
|
84
80
|
- No marketing content
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
## Design
|
|
82
|
+
### Design
|
|
89
83
|
|
|
90
|
-
|
|
84
|
+
#### Color Tokens
|
|
91
85
|
|
|
92
86
|
| Element | Token |
|
|
93
87
|
|---------|-------|
|
|
@@ -98,7 +92,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
98
92
|
| Error text | `text-destructive` |
|
|
99
93
|
| Link text | `text-primary` |
|
|
100
94
|
|
|
101
|
-
|
|
95
|
+
#### Typography
|
|
102
96
|
|
|
103
97
|
| Element | Style |
|
|
104
98
|
|---------|-------|
|
|
@@ -109,7 +103,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
109
103
|
| Error messages | `text-sm text-destructive` |
|
|
110
104
|
| Links | `text-sm text-primary underline` |
|
|
111
105
|
|
|
112
|
-
|
|
106
|
+
#### Spacing
|
|
113
107
|
|
|
114
108
|
| Element | Spacing |
|
|
115
109
|
|---------|---------|
|
|
@@ -119,11 +113,9 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
119
113
|
| Form to button | 24px |
|
|
120
114
|
| Button to secondary link | 16px |
|
|
121
115
|
|
|
122
|
-
|
|
116
|
+
### Content
|
|
123
117
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Login Page
|
|
118
|
+
#### Login Page
|
|
127
119
|
|
|
128
120
|
**Required Elements:**
|
|
129
121
|
|
|
@@ -146,7 +138,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
146
138
|
| Forgot link | "Forgot your password?" |
|
|
147
139
|
| Register link | "Don't have an account? Sign up" |
|
|
148
140
|
|
|
149
|
-
|
|
141
|
+
#### Registration Page
|
|
150
142
|
|
|
151
143
|
**Required Elements:**
|
|
152
144
|
|
|
@@ -166,7 +158,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
166
158
|
- Unmet: `text-muted-foreground`
|
|
167
159
|
- Met: `text-green-600` with checkmark
|
|
168
160
|
|
|
169
|
-
|
|
161
|
+
#### Password Reset Flow
|
|
170
162
|
|
|
171
163
|
**Step 1: Request Reset**
|
|
172
164
|
|
|
@@ -181,16 +173,14 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
181
173
|
- Password requirements visible
|
|
182
174
|
- "Reset password" button
|
|
183
175
|
|
|
184
|
-
|
|
176
|
+
#### MFA / Code Entry
|
|
185
177
|
|
|
186
178
|
- 6-digit code input (individual boxes or single field)
|
|
187
179
|
- "Resend code" link with countdown timer
|
|
188
180
|
- "Use different method" secondary action
|
|
189
181
|
- Clear instructions on where code was sent
|
|
190
182
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
## Accessibility
|
|
183
|
+
### Accessibility
|
|
194
184
|
|
|
195
185
|
**Base requirements:** See [accessibility foundations](../../../accessibility/accessibility.md) and [web accessibility](../accessibility.md)
|
|
196
186
|
|
|
@@ -205,7 +195,7 @@ Authentication pages should minimise distraction and focus users on the task.
|
|
|
205
195
|
| Password toggle | Toggle button is keyboard accessible |
|
|
206
196
|
| Error announcement | Screen reader announces errors on submit |
|
|
207
197
|
|
|
208
|
-
|
|
198
|
+
#### Form Validation
|
|
209
199
|
|
|
210
200
|
Follow the standard validation pattern:
|
|
211
201
|
|
|
@@ -215,11 +205,9 @@ Follow the standard validation pattern:
|
|
|
215
205
|
- **Error summary** - Show summary at top with links to fields
|
|
216
206
|
- **Focus first error** - Move focus to first invalid field
|
|
217
207
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
## Implementation
|
|
208
|
+
### Implementation
|
|
221
209
|
|
|
222
|
-
|
|
210
|
+
#### Button Placement
|
|
223
211
|
|
|
224
212
|
**Component guide:** `shadcn:button` — the `components/button.md` guide lives in the consumer package or overlay (see [component-registry.md](../component-registry.md)).
|
|
225
213
|
|
|
@@ -229,7 +217,7 @@ Follow the standard validation pattern:
|
|
|
229
217
|
| Secondary link | Below button, centered | Text link |
|
|
230
218
|
| Forgot password | Below password field, right | Text link |
|
|
231
219
|
|
|
232
|
-
|
|
220
|
+
#### Error States
|
|
233
221
|
|
|
234
222
|
| Error Type | Display Location |
|
|
235
223
|
|------------|-----------------|
|
|
@@ -238,7 +226,7 @@ Follow the standard validation pattern:
|
|
|
238
226
|
| Rate limiting | Alert above form with wait time |
|
|
239
227
|
| Network error | Alert above form with retry option |
|
|
240
228
|
|
|
241
|
-
|
|
229
|
+
#### Security Considerations
|
|
242
230
|
|
|
243
231
|
| Requirement | Implementation |
|
|
244
232
|
|-------------|----------------|
|
|
@@ -247,7 +235,7 @@ Follow the standard validation pattern:
|
|
|
247
235
|
| Password visibility | Toggle with clear state indication |
|
|
248
236
|
| Session timeout | Warn before logging out |
|
|
249
237
|
|
|
250
|
-
|
|
238
|
+
#### Responsive Behavior
|
|
251
239
|
|
|
252
240
|
| Breakpoint | Behavior |
|
|
253
241
|
|------------|----------|
|
|
@@ -255,8 +243,6 @@ Follow the standard validation pattern:
|
|
|
255
243
|
| Tablet | Centered card, 400px max |
|
|
256
244
|
| Desktop | Centered card, 400px max |
|
|
257
245
|
|
|
258
|
-
---
|
|
259
|
-
|
|
260
246
|
## Best Practices
|
|
261
247
|
|
|
262
248
|
### Do's
|
|
@@ -294,10 +280,14 @@ Follow the standard validation pattern:
|
|
|
294
280
|
| Email not verified | Offer to resend verification |
|
|
295
281
|
| Session expired mid-flow | Preserve form data, prompt re-authentication |
|
|
296
282
|
|
|
297
|
-
|
|
283
|
+
## Examples
|
|
284
|
+
|
|
285
|
+
The single centred auth card above (max 400px, logo centred, primary action full-width) is the canonical
|
|
286
|
+
mid-fidelity frame. The same frame serves login, registration, password reset, and MFA — the fields and
|
|
287
|
+
microcopy change, the layout does not.
|
|
298
288
|
|
|
299
|
-
## Related
|
|
289
|
+
## Related
|
|
300
290
|
|
|
301
291
|
- [Product Design](../design.md) - Layout patterns
|
|
302
292
|
- [Web Accessibility](../accessibility.md) - Form validation pattern
|
|
303
|
-
- [
|
|
293
|
+
- [Help users to complete a form](./complete-a-form.md) - General form patterns
|
package/agent-docs/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"packageVersion": "0.
|
|
2
|
+
"packageVersion": "0.15.0-beta.0",
|
|
3
3
|
"rules": {
|
|
4
|
-
"snapshotRef": "
|
|
5
|
-
"snapshotDate": "2026-07-
|
|
4
|
+
"snapshotRef": "24ebd2dee5cc5153859fd56beb166826f4d98e3a",
|
|
5
|
+
"snapshotDate": "2026-07-06T10:02:11.557Z",
|
|
6
6
|
"sourceRepo": "equalexperts/kuat-agent-docs",
|
|
7
7
|
"loadingPath": "agent-docs/rules/LOADING-consumer.md"
|
|
8
8
|
}
|