Adding the new event status for IDAA.

This commit is contained in:
Scott Idem
2025-02-04 12:01:32 -05:00
parent fc517540dc
commit 75d7a502f0
5 changed files with 75 additions and 15 deletions

View File

@@ -232,6 +232,10 @@ export async function qry_ae_obj_li__event(
inc_presentation_li = false,
inc_presenter_li = false,
inc_session_li = false,
enabled = 'enabled', // all, disabled, enabled
hidden = 'not_hidden', // all, hidden, not_hidden
limit = 99,
offset = 0,
order_by_li = {'start_datetime': 'DESC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
params = {},
try_cache = true,
@@ -250,6 +254,10 @@ export async function qry_ae_obj_li__event(
inc_presentation_li?: boolean,
inc_presenter_li?: boolean,
inc_session_li?: boolean,
enabled?: string,
hidden?: string,
limit?: number,
offset?: number,
order_by_li?: key_val,
params?: key_val,
try_cache?: boolean,
@@ -260,11 +268,6 @@ export async function qry_ae_obj_li__event(
console.log(`*** qry_ae_obj_li__event() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`);
}
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
let limit: number = (params.qry__limit ?? 99); // 99
let offset: number = (params.qry__offset ?? 0); // 0
// Build the params_json object. This needs to be documented better! -2024-10-01
let params_json: key_val = {};
@@ -549,6 +552,14 @@ export function db_save_ae_obj_li__event(
attend_json: obj.attend_json,
attend_text: obj.attend_text,
status: obj.status, // draft, active, inactive, archived, unknown; currently only used with IDAA
// review: obj.review,
// approve: obj.approve,
// ready: obj.ready,
// ready_on: obj.ready_on,
// archive: obj.archive,
// archive_on: obj.archive_on,
mod_abstracts_json: obj.mod_abstracts_json,
mod_badges_json: obj.mod_badges_json,
mod_exhibits_json: obj.mod_exhibits_json,

View File

@@ -32,6 +32,14 @@ export interface Event {
attend_json?: null|string;
attend_text?: null|string;
status?: null|string; // draft, active, inactive, archived, unknown; currently only used with IDAA
// review?: null|boolean;
// approve?: null|boolean;
// ready?: null|boolean;
// ready_on?: null|Date;
// archive?: null|boolean;
// archive_on?: null|Date;
mod_abstracts_json?: null|key_val;
mod_badges_json?: null|key_val;
mod_exhibits_json?: null|key_val;

View File

@@ -207,12 +207,16 @@ $: if ($idaa_trig.event_li_qry) {
api_cfg: $ae_api,
for_obj_type: 'account',
for_obj_id: $ae_loc.account_id,
order_by_li: order_by_li,
qry_conference: false,
qry_physical: and_physical,
qry_virtual: and_virtual,
qry_type: and_type,
qry_str: $idaa_loc.recovery_meetings.qry__fulltext_str,
enabled: $idaa_loc.recovery_meetings.qry__enabled,
hidden: $idaa_loc.recovery_meetings.qry__hidden,
order_by_li: $idaa_loc.recovery_meetings.qry__order_by_li,
limit: $idaa_loc.recovery_meetings.qry__limit,
try_cache: try_cache,
log_lvl: log_lvl,
})

View File

@@ -405,6 +405,8 @@ async function handle_submit_form(event: any) {
}
event_do['contact_li_json'].push(contact_2);
event_do['status'] = event_meeting_fd.status ?? null;
event_do['hide'] = !!event_meeting_fd.hide;
event_do['priority'] = !!event_meeting_fd.priority;
if (event_meeting_fd['sort']) {
@@ -1204,9 +1206,35 @@ async function handle_delete_event_obj(
<span
class="flex flex-row flex-wrap gap-2 items-center justify-evenly grow"
>
<fieldset class="flex flex-row gap-1 items-center justify-center">
<fieldset class="flex flex-col flex-wrap gap-1 items-start justify-center">
<legend class="legend text-sm font-semibold">Confirmed</legend>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="status_yes"
name="status"
value={'unknown'}
bind:group={$idaa_slct.event_obj.status}
class="radio"
>
<label for="status_yes">Not Confirmed</label>
</div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="status_no"
name="status"
value={null}
bind:group={$idaa_slct.event_obj.status}
class="radio"
>
<label for="status_no">Yes</label>
</div>
</fieldset>
<fieldset class="flex flex-col flex-wrap gap-1 items-start justify-center">
<legend class="legend text-sm font-semibold">Hide</legend>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="hide_yes"
@@ -1217,7 +1245,7 @@ async function handle_delete_event_obj(
>
<label for="hide_yes">Yes</label>
</div>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="hide_no"
@@ -1230,9 +1258,9 @@ async function handle_delete_event_obj(
</div>
</fieldset>
<fieldset class="flex flex-row gap-2">
<fieldset class="flex flex-col flex-wrap gap-1 items-start justify-center">
<legend class="legend text-sm font-semibold">Priority</legend>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="priority_yes"
@@ -1243,7 +1271,7 @@ async function handle_delete_event_obj(
>
<label for="priority_yes">Yes</label>
</div>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="priority_no"
@@ -1265,9 +1293,9 @@ async function handle_delete_event_obj(
{#if $ae_loc.administrator_access}
<span class="flex flex-row flex-wrap gap-1 items-center justify-evenly grow">
<fieldset class="flex flex-row gap-2">
<fieldset class="flex flex-col flex-wrap gap-1 items-start justify-center">
<legend class="legend text-sm font-semibold">Enable</legend>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="enable_yes"
@@ -1278,7 +1306,7 @@ async function handle_delete_event_obj(
>
<label for="enable_yes">Yes</label>
</div>
<div>
<div class="flex flex-row gap-1 items-start justify-center">
<input
type="radio"
id="enable_no"

View File

@@ -53,6 +53,15 @@ onMount(() => {
{idaa_event_obj?.name}
</h3>
{#if idaa_event_obj?.status == 'unknown'}
<span class="badge badge-warning" title="This meeting has not been confirmed by IDAA Central Office. Please reach out to the chair for current meeting list info. Meeting attendees can reach out to info@idaa.org if they know this is information is accurate and this meeting is still taking place.">
<span class="fas fa-exclamation-triangle m-1"></span>
Not Confirmed by IDAA
<!-- Unknown Status -->
<span class="fas fa-exclamation-triangle m-1"></span>
</span>
{/if}
<span class="flex flex-row flex-wrap gap-1 items-center justify-center">
<span class="badge badge-info variant-glass-tertiary">
{#if idaa_event_obj?.physical && idaa_event_obj?.virtual}