Skip to content

Add a property by pressing Enter in its value field.#244

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 24, 2026
Merged

Add a property by pressing Enter in its value field.#244
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Add a property by pressing Enter in its value field.

When adding a frontmatter property, typing a name, pressing Tab, typing a value, and pressing Enter now commits the new property — the whole interaction is keyboard-driven. Previously Enter in the value field only settled the value and blurred the input, so the property was not added until you clicked "Add" with the mouse. This works for text, number, and date values, in both the document property panel and a folder's properties; editing an existing property's value keeps its prior Enter-to-settle behavior.

…eld (#2040)

* fix(open-knowledge): add a property by pressing Enter in its value field

In the add-property row, pressing Enter while typing a value only settled
the value and blurred the input, forcing a mouse click on "Add". The value
editors (text / number / date) now accept an optional onSubmit handler that
the add-property row wires to commit the whole property on Enter, forwarding
the freshly-typed value so the commit doesn't race the async draft update.
Existing-row editors omit onSubmit and keep blur-to-settle Enter behavior.

Fixes PRD-7160.

* test(open-knowledge): cover DateWidget Enter-to-add + guard empty value in PropertyPanel

Address review feedback on PRD-7160:
- Add DateWidget Enter-in-value regression tests (valid parse commits;
  invalid parse does not call onSubmit) — the most complex of the three
  scalar Enter paths was untested.
- Mirror FolderPropertiesCard's empty-value guard in PropertyPanel.commitAdd
  so the Enter-to-add keyboard path errors explicitly instead of silently
  no-opping when the value is empty.
- Simplify AddPropertyRow's onSubmit passthrough to onSubmit={onCommit}.

* chore(open-knowledge): regenerate Lingui catalogs for PropertyPanel value-required string

The empty-value guard added a second reference to the existing "Value is
required" message. Re-extracted en + pseudo catalogs to clear i18n drift.

---------

GitOrigin-RevId: a3e88ff6535e424a3510854fc1c68283a51e1643

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28075649978). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit feb67fb into main Jun 24, 2026
2 checks passed
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 24, 2026 04:44
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.

2 participants