From bf9aa9710c064db35f201cea093bbf1ea9a546f2 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 20 Mar 2026 10:09:19 -0400 Subject: [PATCH] docs: add V3 field editor usage section to GUIDE__Development.md Fulfills Phase 4 open item from PROJECT__AE_Object_Field_Editor_V3_upgrade.md. Covers import, basic text usage, all field types, select with nullable FK, key props table, and behavior notes (optimistic display, edit_mode visibility). Co-Authored-By: Claude Sonnet 4.6 --- documentation/GUIDE__Development.md | 74 ++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/documentation/GUIDE__Development.md b/documentation/GUIDE__Development.md index 78b91dec..88511f0a 100644 --- a/documentation/GUIDE__Development.md +++ b/documentation/GUIDE__Development.md @@ -53,7 +53,79 @@ You are not working in a vacuum. Coordinate with the Backend Agent via MCP tools | `documentation/PROJECT__AE_Events_Launcher_Native_integration.md` | Electron/Launcher reference | | `tests/README.md` | Playwright test guide — shared helpers, hard-won lessons, demo IDs | -## 6. URL Parameters +## 6. Inline Field Editing — `element_ae_obj_field_editor_v3` + +The standard component for single-field inline editing throughout the platform. Wraps a `PATCH /v3/crud/{obj_type}/{obj_id}` call behind a click-to-edit UI that respects `$ae_loc.edit_mode`. + +```svelte +import Element_ae_obj_field_editor_v3 from '$lib/elements/element_ae_obj_field_editor_v3.svelte'; +``` + +### Basic usage — text field with custom display + +Wrap the display content in the default snippet. The component renders it in view mode and swaps in the input on edit. + +```svelte + events_func.load_ae_obj_id__event_session({ api_cfg: $ae_api, event_session_id: session.id })} +> +

{session.name}

+
+``` + +### Field types + +| `field_type` | Input rendered | +| --- | --- | +| `text` (default) | `` — Enter key saves | +| `textarea` | `