Commit 6046927
fix(app-shell): Studio UX hardening — object nav = runtime grid, discoverable add-field (#2070)
Deep-test pass on the Studio surface surfaced two issues, both fixed:
1. Interfaces object nav leaf rendered the object field-form preview
(getMetadataPreview('object')) instead of the records grid — inconsistent
with the Data pillar and the running app, and it spread object metadata
(pluralLabel/isSystem/active/abstract) onto DOM nodes (React warnings).
Now object leaves render the object-view records grid (preview = runtime),
are excluded from `isEditable` (no stray draft/save), and show a hint that
schema editing lives in the Data pillar. Removes the console warnings.
2. The grid's trailing "+" add-field affordance is off-screen-right for wide
objects (hard to discover). Added a visible "+ 添加字段" button to the Data
pillar header (next to the field count) as a second entry point to the same
form.
Verified live: Interfaces Projects/Tasks now show the records grid (no prop
warnings after clearing the console); the Data header button opens the
add-field form. eslint 0 / tsc 0.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 96b1293 commit 6046927
1 file changed
Lines changed: 23 additions & 5 deletions
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
523 | 526 | | |
524 | 527 | | |
525 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
526 | 534 | | |
527 | 535 | | |
528 | 536 | | |
| |||
534 | 542 | | |
535 | 543 | | |
536 | 544 | | |
537 | | - | |
538 | | - | |
539 | 545 | | |
540 | 546 | | |
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
545 | | - | |
| 551 | + | |
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
549 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
550 | 560 | | |
551 | 561 | | |
552 | 562 | | |
| |||
747 | 757 | | |
748 | 758 | | |
749 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
750 | 768 | | |
751 | 769 | | |
752 | 770 | | |
| |||
0 commit comments