fix(journals): standardize component naming, props, and libraries
- Renamed all Journal components to follow the ae_comp__* snake_case convention. - Normalized all custom event handler props from PascalCase (onSave) to snake_case (on_save) across the module. - Migrated all icon imports from @lucide/svelte to lucide-svelte for consistency. - Resolved ReferenceErrors and file corruption issues in Journals config and entry views. - Updated qry__journal_entry logic to support category filtering. - Verified module integrity and component interop.
This commit is contained in:
@@ -302,6 +302,7 @@ export async function qry__journal_entry({
|
||||
api_cfg,
|
||||
journal_id,
|
||||
qry_str = null, // Example: 'name:contains:"test"'
|
||||
qry_category_code = null,
|
||||
qry_created_on = null, // Example greater than: '2024-10-24'
|
||||
qry_alert = null,
|
||||
qry_priority = null,
|
||||
@@ -325,6 +326,7 @@ export async function qry__journal_entry({
|
||||
api_cfg: any;
|
||||
journal_id: any;
|
||||
qry_str?: null | string;
|
||||
qry_category_code?: null | string;
|
||||
qry_created_on?: null | string;
|
||||
qry_alert?: null | string;
|
||||
qry_priority?: null | number;
|
||||
@@ -351,6 +353,10 @@ export async function qry__journal_entry({
|
||||
params['lk_qry'] = { 'default_qry_str': qry_str.trim() };
|
||||
}
|
||||
|
||||
if (qry_category_code) {
|
||||
search_query.and.push({ field: 'category_code', op: 'eq', value: qry_category_code });
|
||||
}
|
||||
|
||||
if (qry_created_on) {
|
||||
search_query.and.push({ field: 'created_on', op: 'gt', value: qry_created_on });
|
||||
}
|
||||
@@ -386,6 +392,7 @@ export async function qry__journal_entry({
|
||||
order_by_li,
|
||||
limit,
|
||||
offset,
|
||||
params,
|
||||
log_lvl
|
||||
})
|
||||
.then(async function (journal_entry_obj_li_get_result) {
|
||||
|
||||
@@ -207,6 +207,11 @@ export interface ae_JournalEntry extends ae_BaseObj {
|
||||
billable?: boolean;
|
||||
bill_to?: string;
|
||||
bill_rate?: number;
|
||||
|
||||
// Attached files/media
|
||||
linked_li_json?: any[];
|
||||
hosted_file_obj_li?: any[];
|
||||
upload_complete?: boolean;
|
||||
billable_minutes?: number;
|
||||
|
||||
alert?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user