Skip to content

feat(grid): soft-wrap + dynamic row height + auto-grow cell editor (web-design audit #1/#2/#6) - #71

Merged
HomenShum merged 1 commit into
mainfrom
claude/brave-einstein-e177ab
Jun 28, 2026
Merged

HomenShum merged 1 commit into
mainfrom
claude/brave-einstein-e177ab

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

What & why

ultracode web-design audit (full ranked queue, batch 1/7 — data-grid, the worst-scoring surface at 3.5/10 and the user's reference standard). Research + per-surface audit committed in docs/design/SURFACE_WEB_DESIGN_AUDIT.md.

The cell-editing best-practice (Airtable/Retool/Notion/Coyier: auto-grow, soft-wrap, no in-cell scroll, dynamic row height) was not shipped here — single-line <input>, fixed-27px nowrap+ellipsis cells, and the primary GenericSheet was read-only. This lands it.

Changes (audit #1, #2, #6)

  • Soft-wrap + dynamic row height — cells white-space:normal; overflow-wrap:anywhere; word-break; rows grow to the tallest cell (vertical-align:top + min-height). No clip, no in-cell scroll. Numbers stay nowrap.
  • Auto-grow editor — EditableCell + new GridCellEditor use an auto-grow <textarea> (height = scrollHeight; resize:none; overflow:hidden; pre-wrap). Enter commits, Shift+Enter newline, Esc cancels.
  • GenericSheet now editable (double-click / Enter / F2) via the same commit()+CAS path — payload-safe (preserves evidence/status/formula), gated on locked/proposed/merged so no-clobber is never bypassed.
  • Keyboard grammar — Arrow keys move the active cell, Tab/Shift+Tab move, Enter/F2 edit, Esc cancels.
  • Cell-meta badge moved top-right (was vertically-centered, floated over wrapped text).

Verification (live, memory mode)

  • Longest research cell wraps to 73px (was fixed 27); editor is a TEXTAREA with height === scrollHeight (auto-grown, no scrollbar), resize:none, white-space:pre-wrap. Zero console errors. Screenshot confirms multi-line cells + dynamic rows.
  • Typecheck clean. e2e grid specs pass (work-surface-split, stage-focus, intake-plan-preview, mention-typeahead, semantic-rebase). excel-grid:57 is the pre-existing blank-sheet-seeding timeout, unrelated.

Deferred to a follow-up data-grid pass (P1/L): density presets + name-box/value-bar + column resize (#18).

🤖 Generated with Claude Code

…itor (web-design bar)

Lands the cell-editing standard on the surface it names. Per the surface web-design audit
(docs/design/SURFACE_WEB_DESIGN_AUDIT.md), the data grid was the worst-scoring surface
(3.5/10): single-line <input> editor, fixed 27px nowrap+ellipsis cells, primary GenericSheet
read-only.

- Display: cells soft-wrap (white-space:normal; overflow-wrap:anywhere; word-break) and rows
  grow to fit the tallest cell (vertical-align:top + min-height) - no clip, no in-cell scroll.
  Applied to the generic grid + research grid; numbers stay nowrap.
- Editor: EditableCell + new GridCellEditor use an auto-grow <textarea> (height tracks
  scrollHeight; resize:none; overflow:hidden; pre-wrap). Enter commits, Shift+Enter newline,
  Esc cancels. No resize handle, no scrollbar.
- GenericSheet is now editable (double-click / Enter / F2) through the same commit()+CAS path,
  PAYLOAD-SAFE (preserves evidence/status/formula), gated on locked/proposed/merged.
- Keyboard grammar: Arrow keys move the active cell, Tab/Shift+Tab move, Enter/F2 edit, Esc cancels.
- Cell-meta badge moved top-right (was vertically-centered, floated over wrapped text).

Verified live (memory mode): longest research cell wraps to 73px (was 27); editor is a TEXTAREA,
height===scrollHeight, no scroll; zero console errors. Typecheck clean. e2e grid specs pass
(work-surface-split, stage-focus, intake, mention, semantic-rebase); excel-grid:57 is the
pre-existing blank-sheet-seeding failure, unrelated.

Also commits the full surface web-design audit (research -> audit of all 7 surfaces).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@vercel

vercel Bot commented Jun 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
noderoom Ready Ready Preview, Comment Jun 28, 2026 9:35pm

Request Review

@HomenShum
HomenShum merged commit 08fb0f0 into main Jun 28, 2026
2 of 6 checks passed
HomenShum added a commit that referenced this pull request Jun 29, 2026
…board nav (#6) onto the fleet editor

Reconciles PR #81 with the concurrent commit 94c2986 (Nebius) that replaced the #71 cell editor
and dropped #6. Rebased onto main's editingId/.r-cell-editor editor (kept intact) + layered additively:
- #18: row-density presets (Compact clips, Default/Comfortable wrap; persisted per artifact) +
  name-box/value-bar (selected cell A1 + full value) + .num nowrap.
- #6 (restored): grid keyboard grammar - arrows move the active cell, Tab moves, Enter/F2 opens
  the fleet's editor (beginEdit), gated on locked/proposed/merged.

Verified live: namebox A1 / valuebar CardioNova; compact->nowrap, comfortable->normal; ArrowDown
moves sel (cardionova->mercury), Enter opens .r-cell-editor; no console errors. Typecheck/build clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
HomenShum added a commit that referenced this pull request Jun 29, 2026
…PRs #71-#87)

The demo-room-mobile baseline was last captured 2026-06-16 (6a86863), before the
entire web-design audit program landed (~15 styles/layout commits). It was failing
on a cumulative vertical reflow, not a functional break: actual render verified
correct (all surfaces present, mask region intact). Desktop + blank-room already
passed. Regenerated against the current served build; full design-baseline green (3/3).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
HomenShum added a commit that referenced this pull request Jun 29, 2026
test(design-baseline): refresh stale mobile snapshot (predated audit #71-#87)

This branch was successfully deployed

1 active deployment
Preview — 9b60f959 Deployed Jun 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant