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

@@ -321,6 +321,7 @@ export async function qry_ae_obj_li__event({
for_obj_type = 'account',
for_obj_id,
qry_str,
qry_person_id = null,
enabled = 'enabled',
hidden = 'not_hidden',
view = 'default',
@@ -333,6 +334,7 @@ export async function qry_ae_obj_li__event({
for_obj_type?: string;
for_obj_id: string;
qry_str?: string;
qry_person_id?: string | null;
enabled?: 'enabled' | 'all' | 'not_enabled';
hidden?: 'hidden' | 'all' | 'not_hidden';
view?: string;
@@ -344,6 +346,10 @@ export async function qry_ae_obj_li__event({
const search_query: any = { and: [] };
if (qry_str) search_query.q = qry_str;
if (qry_person_id) {
search_query.and.push({ field: 'external_person_id', op: 'eq', value: qry_person_id });
}
return await api.search_ae_obj_v3({
api_cfg,
obj_type: 'event',