From a78986664218ad2ca36d6b4afaeef9301e467f66 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 7 Aug 2025 10:29:46 -0400 Subject: [PATCH] First version of the technical help notification is ready for IDAA. --- src/lib/e_app_help_tech.svelte | 310 +++++++++++++++++--------- src/routes/idaa/(idaa)/+layout.svelte | 4 +- 2 files changed, 207 insertions(+), 107 deletions(-) diff --git a/src/lib/e_app_help_tech.svelte b/src/lib/e_app_help_tech.svelte index 8efbd2b7..d8d76829 100644 --- a/src/lib/e_app_help_tech.svelte +++ b/src/lib/e_app_help_tech.svelte @@ -55,6 +55,7 @@ if (log_lvl) { } let help_tech_text: string = $state(''); +let hide_additional_info: boolean = $state(true); function preventDefault(fn) { return function (event) { @@ -102,12 +103,13 @@ function send_help_tech_email() { api.send_email({ api_cfg: $ae_api, from_email: $ae_loc.site_cfg_json?.noreply_email ?? 'noreply+tech@oneskyit.com', - from_name: $ae_loc.site_cfg_json?.noreply_name ?? 'Tech NoReply', + from_name: $ae_loc.site_cfg_json?.noreply_name ?? 'IT NoReply', // to_email: $ae_loc.site_cfg_json?.admin_email ?? 'admin+tech@oneskyit.com', // 'scott+idaabb@oneskyit.com', - to_email: 'scott+tech@oneskyit.com', + to_email: 'it+tech@oneskyit.com', // to_email: $idaa_slct.post_obj.email, // to_email: 'scott+idaabb@oneskyit.com', - to_name: $ae_loc.site_cfg_json?.admin_name ?? 'Tech Admin', + // to_name: $ae_loc.site_cfg_json?.admin_name ?? 'IT Tech', + to_name: 'IT Tech', // to_name: $idaa_slct.post_obj.full_name ?? 'IDAA BB Poster', subject: subject, body_html: body_html, @@ -121,18 +123,23 @@ function send_help_tech_email() {
@@ -144,114 +151,204 @@ function send_help_tech_email() { transition-all " > - {#if e_success} - - - Help Requested - - {:else} - - - - Notify Technical Support - - - {/if} - -
{ - // Do stuff... - send_help_tech_email(); - - // Hide the request form - $ae_sess.show_help_tech = false; - })} - > - -
+
-

- This is intended for technical issues only. Please contact your organization's staff if you have a question about your membership, recorded content, meetings, or posts. -

+
{ + // Do stuff... + send_help_tech_email(); -
-

- Additional Information Included -

-
    -
  • Datetime = {new Date().toISOString()}
  • -
  • URL: {window.location.href}
  • -
  • Browser = {navigator.userAgent}
  • -
  • Viewport Size = {window.innerWidth} x {window.innerHeight}
  • -
  • Screen Resolution = {window.screen.width} x {window.screen.height}
  • -
  • In iframe = {$ae_loc?.iframe}
  • -
  • Theme Mode = {$ae_loc?.theme_mode}
  • -
  • Theme Name = {$ae_loc?.theme_name}
  • -
  • Account ID = {$slct.account_id}
  • -
  • Access Type = {$ae_loc?.access_type}
  • - {#if $ae_loc?.person_id} -
  • person_id = {$ae_loc?.person_id}
  • -
  • full_name = {$ae_loc?.full_name}
  • - {/if} - {#if $ae_loc?.user_id} -
  • user_id = {$ae_loc?.user_id}
  • -
  • username = {$ae_loc?.username}
  • -
  • email = {$ae_loc?.email}
  • - {/if} -
  • API Base URL: {$ae_api.base_url}
  • + // Hide the request form + $ae_sess.show_help_tech = false; + })} + > + + + + + +
    + This is intended for technical issues only. Please contact your organization's staff if you have a question about your membership, recorded content, meetings, or posts. +
    + +
    +
    +

    + Additional Information Included + + +

    + + +
    +
      +
    • Datetime = {new Date().toISOString()}
    • +
    • URL = {window.location.href}
    • +
    • Browser = {navigator.userAgent}
    • +
    • Viewport Size = {window.innerWidth} x {window.innerHeight}
    • +
    • Screen Resolution = {window.screen.width} x {window.screen.height}
    • +
    • In iframe = {$ae_loc?.iframe}
    • +
    • Theme Mode = {$ae_loc?.theme_mode}
    • +
    • Theme Name = {$ae_loc?.theme_name}
    • +
    • Account ID = {$slct.account_id}
    • +
    • Access Type = {$ae_loc?.access_type}
    • + {#if $ae_loc?.person_id} +
    • person_id = {$ae_loc?.person_id}
    • +
    • full_name = {$ae_loc?.full_name}
    • + {/if} + {#if $ae_loc?.user_id} +
    • user_id = {$ae_loc?.user_id}
    • +
    • username = {$ae_loc?.username}
    • +
    • email = {$ae_loc?.email}
    • + {/if} +
    • API Base URL = {$ae_api.base_url}
    • + + {#if additional_kv && Object.keys(additional_kv).length > 0} +

      Component Info:

      +
        + {#each Object.entries(additional_kv) as [key, value]} +
      • {key} = {value ?? '-- not set --'}
      • + {/each} +
      + {/if} - {#if additional_kv && Object.keys(additional_kv).length > 0} -

      Additional Component Info:

      -
        - {#each Object.entries(additional_kv) as [key, value]} -
      • {key} = {value}
      • - {/each}
      - {/if} +
      + This information will be included in the help request to assist technical support in diagnosing the issue. +
      -
    -

    - This information will be included in the help request to assist technical support in diagnosing the issue. -

    +
    + + +
- + + {:else} @@ -259,7 +356,6 @@ function send_help_tech_email() { onclick={() => ($ae_sess.show_help_tech = true)} class=" btn btn-sm - m-1 preset-outlined-warning-600-400 transition-all {btn_class} @@ -267,9 +363,11 @@ function send_help_tech_email() { title={btn_title} > {#if !hide_icon} - + {/if} + {/if} diff --git a/src/routes/idaa/(idaa)/+layout.svelte b/src/routes/idaa/(idaa)/+layout.svelte index 5ee83520..456da0bf 100644 --- a/src/routes/idaa/(idaa)/+layout.svelte +++ b/src/routes/idaa/(idaa)/+layout.svelte @@ -194,8 +194,10 @@ if (browser) { {#if (browser && ($ae_loc.trusted_access || ($ae_loc.authenticated_access && $idaa_loc.novi_uuid)))} + +