Fix SSR errors, enhance Person activity views, and expand Core CRUD

- Resolved Svelte 5 / SvelteKit SSR errors by adding browser checks for window.postMessage and Dexie database operations
- Prevented side effects on global state during detail page preloading by refactoring people/[person_id]/+page.ts to use shallow copies
- Implemented full V3 CRUD support, detail pages, and editable_fields for Address and Contact modules
- Enhanced Event and Post search to support filtering by person_id, enabling real related data in the Person detail view
- Fixed missing onMount import in Person detail component
This commit is contained in:
Scott Idem
2026-01-06 19:20:27 -05:00
parent 6d0531e227
commit c0fc5052ab
14 changed files with 940 additions and 63 deletions

View File

@@ -322,6 +322,7 @@ export async function qry__post({
api_cfg,
account_id,
qry_str,
qry_person_id = null,
enabled = 'enabled',
hidden = 'not_hidden',
view = 'default',
@@ -338,6 +339,7 @@ export async function qry__post({
api_cfg: any;
account_id: string;
qry_str?: string;
qry_person_id?: string | null;
enabled?: 'enabled' | 'all' | 'not_enabled' | undefined;
hidden?: 'hidden' | 'all' | 'not_hidden' | undefined;
view?: string;
@@ -356,6 +358,10 @@ export async function qry__post({
search_query.q = qry_str;
}
if (qry_person_id) {
search_query.and.push({ field: 'external_person_id', op: 'eq', value: qry_person_id });
}
ae_promises.load__post_obj_li = await api.search_ae_obj_v3({
api_cfg,
obj_type: 'post',