More and more code removal and clean up
This commit is contained in:
@@ -53,12 +53,12 @@ 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. Inline Field Editing — `element_ae_obj_field_editor_v3`
|
||||
## 6. Inline Field Editing — `element_ae_obj_field_editor`
|
||||
|
||||
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';
|
||||
import Element_ae_obj_field_editor from '$lib/elements/element_ae_obj_field_editor.svelte';
|
||||
```
|
||||
|
||||
### Basic usage — text field with custom display
|
||||
@@ -66,7 +66,7 @@ import Element_ae_obj_field_editor_v3 from '$lib/elements/element_ae_obj_field_e
|
||||
Wrap the display content in the default snippet. The component renders it in view mode and swaps in the input on edit.
|
||||
|
||||
```svelte
|
||||
<Element_ae_obj_field_editor_v3
|
||||
<Element_ae_obj_field_editor
|
||||
object_type={'event_session'}
|
||||
object_id={session.id}
|
||||
field_name={'name'}
|
||||
@@ -75,7 +75,7 @@ Wrap the display content in the default snippet. The component renders it in vie
|
||||
on_success={() => events_func.load_ae_obj_id__event_session({ api_cfg: $ae_api, event_session_id: session.id })}
|
||||
>
|
||||
<h1 class="text-2xl font-bold">{session.name}</h1>
|
||||
</Element_ae_obj_field_editor_v3>
|
||||
</Element_ae_obj_field_editor>
|
||||
```
|
||||
|
||||
### Field types
|
||||
@@ -94,7 +94,7 @@ Wrap the display content in the default snippet. The component renders it in vie
|
||||
### Select with nullable FK
|
||||
|
||||
```svelte
|
||||
<Element_ae_obj_field_editor_v3
|
||||
<Element_ae_obj_field_editor
|
||||
object_type={'event_presenter'}
|
||||
object_id={presenter.event_presenter_id}
|
||||
field_name={'person_id'}
|
||||
@@ -105,7 +105,7 @@ Wrap the display content in the default snippet. The component renders it in vie
|
||||
on_success={() => events_func.load_ae_obj_id__event_presenter({ api_cfg: $ae_api, event_presenter_id: presenter.event_presenter_id })}
|
||||
>
|
||||
{presenter.person_id ?? 'Not linked'}
|
||||
</Element_ae_obj_field_editor_v3>
|
||||
</Element_ae_obj_field_editor>
|
||||
```
|
||||
|
||||
### Key props
|
||||
|
||||
Reference in New Issue
Block a user