fix: resolve svelte-check warnings (non-IDAA batch)

- Remove dead .field_editing_wrapper CSS rules from element_ae_crud_v2.svelte
  (template migrated to field_editing_wrapper_v2 with Tailwind)
- Fix TS error: use optional chaining on person_obj key in ae_comp__person_obj_tbl.svelte
- Fix state_referenced_locally: wrap data.user init with untrack() in users/[user_id]/+page.svelte
- Replace misused <label> with <span> for visual section headings (a11y) in:
  launcher_cfg_native_os.svelte, launcher_cfg_health.svelte,
  launcher_cfg_local_actions.svelte, launcher_cfg_template.svelte
This commit is contained in:
Scott Idem
2026-03-06 18:15:31 -05:00
parent 48d5fe8995
commit 3ca9503b88
7 changed files with 18 additions and 104 deletions

View File

@@ -13,7 +13,7 @@
const meta = $ae_loc.native_device?.meta_json;
// loadavg is [1m, 5m, 15m] - use 1m load
if (!meta?.loadavg || !Array.isArray(meta.loadavg)) return 15;
// Load average is usually 0.0 to N (cores). Normalize to 0-100 based on cores if available.
const load = meta.loadavg[0];
const cores = (meta.cpus || []).length || 1;
@@ -166,8 +166,8 @@
>
</div>
<div class="mt-2 opacity-40">
<label class="text-[8px] uppercase font-bold"
>Raw Device JSON</label
<span class="text-[8px] uppercase font-bold"
>Raw Device JSON</span
>
<pre
class="text-[7px] max-h-32 overflow-y-auto bg-black/20 p-1 rounded mt-1">

View File

@@ -72,9 +72,9 @@
<div class="col-span-full flex flex-col gap-3">
<!-- 1. Reset Actions -->
<div class="flex flex-col gap-1">
<label
<span
class="text-[9px] font-bold uppercase opacity-50 ml-1 text-error-500"
>Maintenance & Resets</label
>Maintenance & Resets</span
>
<select
bind:value={selected_reset}

View File

@@ -205,9 +205,9 @@
</div>
</div>
<div class="flex flex-col gap-1">
<label
<span
class="text-[9px] font-bold uppercase opacity-50 text-error-500"
>Power</label
>Power</span
>
<div class="grid grid-cols-1 gap-1">
<button

View File

@@ -159,9 +159,9 @@
<!-- Dangerous Actions -->
<div class="grid grid-cols-2 gap-2">
<div class="flex flex-col gap-1">
<label
<span
class="text-[9px] font-bold uppercase opacity-50 text-warning-500"
>System Config</label
>System Config</span
>
<button
type="button"
@@ -173,9 +173,9 @@
</button>
</div>
<div class="flex flex-col gap-1">
<label
<span
class="text-[9px] font-bold uppercase opacity-50 text-error-500"
>Danger Zone</label
>Danger Zone</span
>
<button
type="button"
@@ -189,9 +189,9 @@
<!-- Form Inputs -->
<div class="grid grid-cols-1 gap-2">
<div class="flex flex-col gap-1">
<label
<span
class="text-[9px] font-bold uppercase opacity-50 ml-1"
>Raw Settings</label
>Raw Settings</span
>
<div class="flex gap-1">
<input