Now with ability to sync person record to presenter record. Also some other editing.

This commit is contained in:
Scott Idem
2024-06-28 10:45:37 -04:00
parent a0085723c9
commit 298f87960a
5 changed files with 166 additions and 124 deletions

View File

@@ -222,7 +222,7 @@ export async function handle_update_ae_obj__event_file(
}: {
api_cfg: any,
event_file_id: string,
data_kv: any,
data_kv: key_val,
params?: key_val,
log_lvl?: number
}

View File

@@ -183,7 +183,7 @@ export async function handle_update_ae_obj__event_presenter(
}: {
api_cfg: any,
event_presenter_id: string,
data_kv: any,
data_kv: key_val,
params?: key_val,
log_lvl?: number
}
@@ -299,11 +299,15 @@ export function handle_db_save_ae_obj_li__event_presenter(
created_on: obj.created_on,
updated_on: obj.updated_on,
// From SQL view
file_count: obj.file_count,
person_external_id: obj.person_external_id,
person_given_name: obj.person_given_name,
person_family_name: obj.person_family_name,
person_full_name: obj.person_full_name,
person_professional_title: obj.person_professional_title,
person_affiliations: obj.person_affiliations,
person_primary_email: obj.person_primary_email,
person_passcode: obj.person_passcode,
});

View File

@@ -413,66 +413,69 @@ export interface Presenter {
event_presenter_id: string;
event_presenter_id_random: string;
external_id: string;
code: string;
external_id?: string;
code?: string;
event_id: string;
event_id_random: string;
event_session_id: string;
event_session_id_random: string;
event_person_id: null|string;
event_person_id_random: null|string;
event_person_id?: null|string;
event_person_id_random?: null|string;
event_presentation_id: string;
event_presentation_id_random: string;
person_id: null|string;
person_id_random: null|string;
person_profile_id: null|string;
person_profile_id_random: null|string; // The new table person_profile will be used soon...
person_id?: null|string;
person_id_random?: null|string;
person_profile_id?: null|string;
person_profile_id_random?: null|string; // The new table person_profile will be used soon...
pronouns: null|string;
informal_name: null|string;
title_names: null|string;
pronouns?: null|string;
informal_name?: null|string;
title_names?: null|string;
given_name: string;
middle_name: null|string;
family_name: null|string;
designations: null|string;
middle_name?: null|string;
family_name?: null|string;
designations?: null|string;
professional_title: null|string;
professional_title?: null|string;
full_name: string;
full_name?: string;
affiliations: null|string;
affiliations?: null|string;
email: string;
email?: string;
biography: null|string;
biography?: null|string;
agree: null|boolean;
comments: null|string;
agree?: null|boolean;
comments?: null|string;
passcode: null|string;
passcode?: null|string;
hide_event_launcher: null|boolean;
hide_event_launcher?: null|boolean;
data_json: null|string;
data_json?: null|string;
enable: null|boolean;
hide: null|boolean;
priority: null|boolean
sort: null|number;
group: null|string;
notes: null|string;
created_on: Date;
updated_on: null|Date;
hide?: null|boolean;
priority?: null|boolean
sort?: null|number;
group?: null|string;
notes?: null|string;
created_on?: Date;
updated_on?: null|Date;
// Additional fields for convenience (database views)
file_count: null|number;
file_count?: null|number;
person_given_name: null|string;
person_family_name: null|string;
person_full_name: null|string;
person_primary_email: null|string;
person_passcode: null|string;
person_external_id?: null|string;
person_given_name?: null|string;
person_family_name?: null|string;
person_full_name?: null|string;
person_professional_title?: null|string;
person_affiliations?: null|string;
person_primary_email?: null|string;
person_passcode?: null|string;
}

View File

@@ -57,10 +57,6 @@ onMount(() => {
<section class="svelte_component event_file_uploaded_manage {container_class_li.join(' ')}">
<h3 class="h4">
Manage Files: {$lq__event_file_obj_li ? `${$lq__event_file_obj_li.length}x` : '-- none --'}
</h3>
<button
type="button"
on:click={() => {
@@ -76,6 +72,9 @@ onMount(() => {
Refresh Files
</button>
<h3 class="h4">
Manage Files: {$lq__event_file_obj_li ? `${$lq__event_file_obj_li.length}x` : '-- none --'}
</h3>
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length}