Commit f0060e4
Design pipeline: UX overhaul across all app pages (#24)
* Design pipeline: UX overhaul across all app pages
Full design critique and remediation pass across dashboard, analytics,
compare, search, obligations, deals, document detail, and graph pages.
Bug fixes:
- Fix search highlightMatch regex stateful lastIndex bug
- Fix mobile nav active state mismatch (startsWith vs exact match)
- Add click-outside handlers for compare picker and export dropdown
- Change modal backdrops to onMouseDown for touch device reliability
- Fix document.addEventListener shadowing with window.document
Empty states (delight):
- Analytics: skeleton preview of stat cards + heatmap grid
- Compare: side-by-side document skeleton preview
- Deals: 3-column capability grid with guided CTA
- Obligations: filtered vs unfiltered states with clear-filters action
- Search: shows failed query, mode, and mode-switching buttons
- Graph: dynamic empty state with document filename
Visual improvements:
- Risk level border-l-4 accents on analytics stat cards and clause cards
- Graph page: pinch-to-zoom, touch pan, mobile filter chips, bottom sheet
- Varied motion choreography per page (scale, x-slide, opacity-only)
- Page headers render instantly (no animation delay)
- Standardized h1 sizing, empty state padding, main content padding
- Obligations view button: title -> aria-label
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* E2E: add design pipeline verification tests and fix port config
- Add 21 new tests covering all PR checklist items (instant headers,
search highlight, mobile nav, compare picker, modal dismiss, empty
states, risk borders, h1 sizing, motion variation)
- Fix all test files to use port 3001 matching playwright.config.ts
- Update empty state text assertions to match redesigned content
- Fix obligations selector (title -> aria-label)
All 84 chromium + 68 mobile-chrome tests passing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2dfde92 commit f0060e4
20 files changed
Lines changed: 1011 additions & 163 deletions
File tree
- frontend
- src
- app
- analytics
- compare
- dashboard
- deals
- documents/[id]
- graph
- obligations
- search
- lib
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 165 | + | |
170 | 166 | | |
171 | 167 | | |
172 | 168 | | |
173 | 169 | | |
174 | | - | |
| 170 | + | |
175 | 171 | | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | | - | |
| 176 | + | |
181 | 177 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
191 | 218 | | |
192 | 219 | | |
193 | 220 | | |
194 | 221 | | |
195 | 222 | | |
196 | 223 | | |
197 | 224 | | |
198 | | - | |
199 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
200 | 228 | | |
201 | 229 | | |
202 | 230 | | |
| |||
228 | 256 | | |
229 | 257 | | |
230 | 258 | | |
231 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
232 | 267 | | |
233 | 268 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
238 | 273 | | |
239 | 274 | | |
240 | 275 | | |
| |||
251 | 286 | | |
252 | 287 | | |
253 | 288 | | |
254 | | - | |
| 289 | + | |
255 | 290 | | |
256 | 291 | | |
257 | 292 | | |
258 | 293 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
262 | 297 | | |
263 | 298 | | |
264 | 299 | | |
| |||
352 | 387 | | |
353 | 388 | | |
354 | 389 | | |
355 | | - | |
356 | | - | |
357 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
358 | 393 | | |
359 | 394 | | |
360 | 395 | | |
| |||
403 | 438 | | |
404 | 439 | | |
405 | 440 | | |
406 | | - | |
407 | | - | |
408 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
409 | 444 | | |
410 | 445 | | |
411 | 446 | | |
| |||
421 | 456 | | |
422 | 457 | | |
423 | 458 | | |
424 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
425 | 467 | | |
426 | 468 | | |
427 | 469 | | |
428 | 470 | | |
429 | 471 | | |
430 | | - | |
| 472 | + | |
431 | 473 | | |
432 | 474 | | |
433 | 475 | | |
| |||
459 | 501 | | |
460 | 502 | | |
461 | 503 | | |
462 | | - | |
| 504 | + | |
463 | 505 | | |
464 | 506 | | |
465 | 507 | | |
| |||
468 | 510 | | |
469 | 511 | | |
470 | 512 | | |
471 | | - | |
472 | | - | |
473 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
474 | 516 | | |
475 | 517 | | |
476 | 518 | | |
| |||
541 | 583 | | |
542 | 584 | | |
543 | 585 | | |
544 | | - | |
| 586 | + | |
545 | 587 | | |
546 | | - | |
| 588 | + | |
547 | 589 | | |
548 | 590 | | |
549 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
35 | 48 | | |
36 | 49 | | |
| |||
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 174 | + | |
166 | 175 | | |
167 | 176 | | |
168 | 177 | | |
169 | 178 | | |
170 | | - | |
| 179 | + | |
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
| |||
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
208 | | - | |
| 217 | + | |
209 | 218 | | |
210 | 219 | | |
211 | 220 | | |
| |||
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
265 | | - | |
| 274 | + | |
266 | 275 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
277 | 315 | | |
278 | 316 | | |
279 | 317 | | |
280 | 318 | | |
281 | 319 | | |
282 | | - | |
283 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
284 | 323 | | |
285 | 324 | | |
286 | 325 | | |
| |||
406 | 445 | | |
407 | 446 | | |
408 | 447 | | |
409 | | - | |
410 | | - | |
411 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
412 | 451 | | |
413 | 452 | | |
414 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| |||
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
466 | | - | |
| 469 | + | |
467 | 470 | | |
468 | 471 | | |
469 | 472 | | |
| |||
0 commit comments