fix(core): replace legacy *_id_random with V3 short-form IDs across all core pages
- sites, accounts, addresses, contacts, users list/detail pages - ae_comp__person_obj_tbl: fix bulkGet→where/anyOf, rename prop person_id_random_li→person_id_li - person_view: ~20 person_id_random refs in API calls/props - people page + search + form components - activity_logs: intentionally unchanged (person_id_random is a real field there)
This commit is contained in:
@@ -85,8 +85,8 @@ onMount(() => {
|
||||
onSave={(new_con) => {
|
||||
show_add_form = false;
|
||||
load_contacts();
|
||||
if (new_con.contact_id_random) {
|
||||
goto(`/core/contacts/${new_con.contact_id_random}`);
|
||||
if (new_con.contact_id) {
|
||||
goto(`/core/contacts/${new_con.contact_id}`);
|
||||
}
|
||||
}}
|
||||
onCancel={() => (show_add_form = false)} />
|
||||
@@ -151,7 +151,7 @@ onMount(() => {
|
||||
</h3>
|
||||
|
||||
<div class="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
{#each filtered_li as con (con.contact_id_random)}
|
||||
{#each filtered_li as con (con.contact_id)}
|
||||
<div
|
||||
class="card preset-tonal-surface border-surface-500/10 hover:border-primary-500/30 group relative space-y-4 border p-5 shadow-md transition-all">
|
||||
<div class="absolute top-4 right-4">
|
||||
@@ -202,7 +202,7 @@ onMount(() => {
|
||||
|
||||
<a
|
||||
class="btn btn-sm preset-filled-primary w-full font-bold shadow-lg transition-all group-hover:brightness-110"
|
||||
href="/core/contacts/{con.contact_id_random}">
|
||||
href="/core/contacts/{con.contact_id}">
|
||||
Manage Contact
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -292,7 +292,7 @@ async function handle_delete() {
|
||||
<p class="flex justify-between">
|
||||
<span>ID:</span>
|
||||
<span class="text-primary-500 font-bold"
|
||||
>{contact.contact_id_random}</span>
|
||||
>{contact.contact_id}</span>
|
||||
</p>
|
||||
<p class="flex justify-between">
|
||||
<span>Created:</span>
|
||||
|
||||
@@ -86,11 +86,11 @@ async function handleSubmit(event: Event) {
|
||||
|
||||
try {
|
||||
let result;
|
||||
if (contact?.contact_id_random) {
|
||||
if (contact?.contact_id) {
|
||||
// Update existing
|
||||
result = await update_ae_obj__contact({
|
||||
api_cfg: $ae_api,
|
||||
contact_id: contact.contact_id_random,
|
||||
contact_id: contact.contact_id,
|
||||
data_kv: payload,
|
||||
log_lvl: 1
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user