Commit 93b90da
authored
fix(ui): use consistent empty state styling in relationship table (#15914)
# Overview
Applies the same empty state styling fix from #15555 to the
`RelationshipTable` component.
## Key Changes
- Replaced inline empty state div with shared `NoListResults` component
- `RelationshipTable` was using its own inline implementation with
different styling
- Now uses the same centered, dashed-border design as List, Folder, and
Browse-by-Folder views
- Restructured empty state to use `Message` and `Actions` props
- Message includes heading ("No Results.") and description
- Actions conditionally includes the AddNewButton when user has create
permission
## Design Decisions
Follows the exact pattern from #15555 where all list views were
standardized to use the `NoListResults` component. `RelationshipTable`
was missed in that PR and had the same inconsistent left-aligned,
no-border styling.
The shared component ensures visual consistency across all empty states
in the admin UI.
### Before
<img width="1329" height="142" alt="Screenshot 2026-03-11 at 1 53 19 PM"
src="https://github.com/user-attachments/assets/f85284a0-8abf-49f7-b6bf-6058e514ad1a"
/>
### After
<img width="1313" height="188" alt="Screenshot 2026-03-11 at 2 23 02 PM"
src="https://github.com/user-attachments/assets/aa84c3b7-ae01-44ae-a767-b2c14a87fe71"
/>1 parent 62f2b7c commit 93b90da
File tree
2 files changed
+49
-23
lines changed- packages/ui/src/elements/RelationshipTable
- test/joins
2 files changed
+49
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
358 | 371 | | |
359 | 372 | | |
360 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
| |||
1454 | 1457 | | |
1455 | 1458 | | |
1456 | 1459 | | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1457 | 1470 | | |
1458 | 1471 | | |
1459 | 1472 | | |
| |||
0 commit comments