fix(idaa/recovery_meetings): fix weekday chips, recurring fields, and timezone lookup
- Weekday chips: replace bind:checked (unreliable with dynamic bracket notation in
{#each}) with explicit onchange handlers + class: directives; read weekdays from
state in submit handler instead of FormData
- Recurring pattern/times: bind select and time inputs to working copy
so values display and edit correctly
- Times clearing: map empty string to null so times can be cleared once set
- liveQuery guard: skip event_obj sync while edit form is open to prevent
background refresh from overwriting in-progress user changes
- Timezone lookup: forward order_by_li, limit, offset through the full call chain
so priority sort and result count params are actually sent to the API
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,9 @@ export async function get_ae_lookup_li_v3({
|
||||
for_id,
|
||||
include_disabled = false,
|
||||
only_priority = false,
|
||||
order_by_li = null,
|
||||
limit = null,
|
||||
offset = null,
|
||||
params = {},
|
||||
headers = {},
|
||||
log_lvl = 0
|
||||
@@ -27,6 +30,9 @@ export async function get_ae_lookup_li_v3({
|
||||
for_id?: string;
|
||||
include_disabled?: boolean;
|
||||
only_priority?: boolean;
|
||||
order_by_li?: Record<string, 'ASC' | 'DESC'> | null;
|
||||
limit?: number | null;
|
||||
offset?: number | null;
|
||||
params?: key_val;
|
||||
headers?: Record<string, string>;
|
||||
log_lvl?: number;
|
||||
@@ -43,6 +49,9 @@ export async function get_ae_lookup_li_v3({
|
||||
if (for_id) params['for_id'] = for_id;
|
||||
if (include_disabled) params['include_disabled'] = true;
|
||||
if (only_priority) params['only_priority'] = true;
|
||||
if (order_by_li) params['order_by_li'] = JSON.stringify(order_by_li);
|
||||
if (limit != null) params['limit'] = limit;
|
||||
if (offset != null) params['offset'] = offset;
|
||||
|
||||
// Lookup data is often global; ensure account context is handled if needed,
|
||||
// but GUIDE says it uses site Whitelist Policy.
|
||||
|
||||
Reference in New Issue
Block a user