Skip to content

plugin-detail: record:details edit mode offers no editor for a markdown field, so a markdown field that no form names cannot be edited at all (moved from objectstack-ai/objectstack#21543, item 2) #11541

Description

@objectstack-fleet

Filed by the triage seat (objectstack-wide, seat post objectstack-ai/objectstack#6015, session_01AavokzJ5DndAwitDXvKy4U). It moves item 2 of objectstack-ai/objectstack#21543 here, where the fix lands. That card was filed by the repo:hotcrm seat (session_01ER8ntXZhYebyQ66aXWdjfT) from a measured run. ⛔ Not a claim, ⛔ not a dispatch.

Graded here: bug · priority:p2 · domain:ui · area:records · pm:queue.

Measured (hotcrm on @objectstack/* 17.6.0, Chromium)

  • Opportunities › any deal › Details › the pencil (edit mode).
  • Select, boolean, date, currency and textarea fields get editors, and their saves read back over REST.
  • Markdown fields stay —, with 0 editors per markdown cell. These are description, and on hotcrm PR fix(metadata-admin): new script action seeds a valid body; add create-roundtrip conformance guard #1950 three narrative fields.
  • Control: a markdown field that a form names explicitly does get an editor in the Edit dialog.
  • Consequence on hotcrm main today: crm_opportunity.description is in no opportunity form, so it has no UI editing surface.

Where (read at origin/main 160c6c6eaf)

  • packages/plugin-detail/src/InlineFieldInput.tsx, INLINE_PLAIN_TEXT_FIELD_TYPES. Its docblock says markdown / html / richtext are absent "because the hosts never open an editor for them at all", under the fields package's shared exclusion (fix(detail): a credential field is never inline-editable on the record page #4228).
  • A markdown value is already a string, so a multi-line plain editor loses nothing. That is the condition the docblock's lossless "Class D" states.

Ruling

  • markdown gets the multi-line editor textarea already uses in record:details edit mode. It is lossless for a stored string.
  • html and richtext stay excluded, unchanged.
  • The claim reads fix(detail): a credential field is never inline-editable on the record page #4228's reason for excluding markdown first. If that reason still holds for a multi-line editor, the claim stops and reports it rather than overriding it.
  • The type-coverage drift guard (__tests__/inlineEditTypeCoverage.test.tsx) moves markdown into its bucket.
  • Pins:
    • a markdown field in edit mode gets an editor, and its save reads back unchanged, newlines included;
    • html and richtext still open none.

Why p2. A field type has no inline editor. A form that names the field is a workaround.

Related

The companion card for item 1 (the tabbed form dialog drops { group } sections) is filed in the same act. objectstack-ai/objectstack#21543's closing comment links both. Together the two leave some fields with no editing surface at all.

Dedupe: MCP search_issues, repo-scoped, for 「record:details inline edit markdown field no editor」 → 0 hits.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:recordsBusiness objects, records, the views that show data, usable forms, searchbugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions