Fix: Stabilize Journal Entries query logic and UI search behavior

- Consolidated LiveQuery logic into [journal_id]/+page.svelte and removed redundancy from layout.
- Added automatic load trigger on journal_id change to ensure data freshness.
- Hardened Enabled/Hidden filters to correctly include NULL/undefined values in default views.
- Refined search behavior to distinguish between "default view" (null) and "no results found" ([]).
- Updated modal_journals_config.svelte with standardized module-level settings.
- Robust ID handling in bulk retrieval to handle varying property names (id, random_id).
This commit is contained in:
Scott Idem
2026-01-23 11:08:59 -05:00
parent 6925229d56
commit b026a00af5
9 changed files with 229 additions and 219 deletions

View File

@@ -349,19 +349,17 @@
type="button"
onclick={() => {
if (
$journals_loc.filter__category_code ==
$journals_loc.entry.qry__category_code ==
journals_journal_entry_obj.category_code
) {
$journals_loc.filter__category_code = null;
$journals_loc.entry.qry__category_code = null;
} else {
$journals_loc.filter__category_code =
journals_journal_entry_obj.category_code;
$journals_loc.qry__category_code =
$journals_loc.entry.qry__category_code =
journals_journal_entry_obj.category_code;
}
$journals_trig.journal_entry_li = true;
}}
class:bg-green-100={$journals_loc.filter__category_code ==
class:bg-green-100={$journals_loc.entry.qry__category_code ==
journals_journal_entry_obj.category_code}
class="btn btn-sm variant-outline-secondary hover:preset-filled-secondary-500 transition py-1 px-2"
title={`Filter by category: ${journals_journal_entry_obj.category_code}`}
@@ -559,6 +557,6 @@
/>
{/if}
{:else}
<p>No journal entry available to show.</p>
<p>No &AElig; Journal Entry available to show.</p>
{/if}
</section>