Edit a looked-up field from its table cell

Closed
FE
3d ago
+11651-2566

Makes a lookup cell editable: editing Company › Name from a People row updates the company. Last PR of the lookup-columns part of the stack.

Changes

  • Saving: the lookup cell updates the related record through the table's own updater (RecordTableUpdateContext), which now takes an optional object name.
  • Read-only state is derived from the related record: read-only when there is no related record, when the row is read-only or the table's cells are non-editable, when the target field is restricted, or when the user cannot update that field on the related object.
  • Editor state is keyed by the column and the related record's field, so opening the cell drafts and focuses that field (keyed by the row, the input opened empty and Enter did not save).

Stack

Merge top to bottom. Size counts changed lines outside tests and generated files: S < 300, M 300–800, L > 800. Sizes are a snapshot and are not kept in sync with every push.

#PRAreaWhat it doesSizeCodeTests / generated
1#30339serverPer-column settings on view fields (label, record limit)S+300 −2+703 −152
2#30341serverA view can be owned by a one-to-many view field (scope view)M+584 −56+892 −4
3#30347serverHonor filter / orderBy / first on nested one-to-many connectionsM+462 −86+509
4#30465serverEach alias of a nested relation gets its own arguments and rowsL+556 −273+665 −21
5#30348frontExtra table columns and the Edit column panelM+718 −76+152 −30
6#30466serverupsertViewFieldWithScope: save a column and its scope in one migration (~600 lines moved out of view-widget-upsert)L+1323 −567+1061 −256
7#30468frontQuery a relation under an alias with its own filter, sort and limitS+140 −19—
8#30469frontSave record filters and sorts to a given view (replaces the old hooks)M+341 −348—
9#30349frontScope one-to-many columns from the Edit column panelL+1053 −92+316 −18
10#30438serverLookup: a view field shows one field of its related recordM+290 −39+476 −4
11#30439frontLookup columns in the tableL+712 −188+283 −30
12#30440 👈frontEdit a looked-up field from its cellS+93 −35—
13#30458frontLookup and scoped columns on boards and calendarsM+404 −284+140 −7

Off the main line:

  • #30450 (server, S, code +31, tests +222): Expose lookup columns and column scopes in the view AI tools (branches off #30438)

Testing

  • Browser check on People: edited a row's Company › Name to "Google Inc" and pressed Enter. The company was renamed in the database, and every cell showing it updated, including the Company columns and the other Google rows.
  • Typecheck and lint.

View guided diff in cubic


Generated by Claude Code