Skip to content

Commit 9752e11

Browse files
AchoArnoldCopilot
andcommitted
fix(web): mark contacts headers unsortable
Remove misleading sort affordances from the contacts table. Keep the subtitle aligned with the active search state. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8ef0d7f commit 9752e11

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

web/app/pages/contacts/index.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ const { formatPhoneNumber, humanizeTime, formatTimestamp } = useFilters()
4949
const avatarPalette = ['primary', 'secondary', 'info', 'success']
5050
5151
const headers = [
52-
{ title: 'Name', key: 'name', sortable: true },
52+
{ title: 'Name', key: 'name', sortable: false },
5353
{ title: 'Phone Numbers', key: 'phone_numbers', sortable: false },
5454
{ title: 'Emails', key: 'emails', sortable: false },
55-
{ title: 'Created', key: 'created_at', sortable: true },
56-
{ title: 'Updated', key: 'updated_at', sortable: true },
55+
{ title: 'Created', key: 'created_at', sortable: false },
56+
{ title: 'Updated', key: 'updated_at', sortable: false },
5757
{ title: 'Actions', key: 'actions', sortable: false, align: 'end' as const },
5858
]
5959
@@ -99,6 +99,8 @@ const searchTerm = computed({
9999
},
100100
})
101101
102+
const trimmedSearchTerm = computed(() => contactsStore.search.trim())
103+
102104
const dialogTitle = computed(() =>
103105
editingId.value ? 'Edit Contact' : 'Add Contact',
104106
)
@@ -384,7 +386,12 @@ onBeforeUnmount(() => {
384386
<div>
385387
<h1 class="text-display-large mb-1">Contacts</h1>
386388
<p class="text-medium-emphasis mb-0">
387-
Manage your contacts. {{ contactsStore.total }} total
389+
Manage your contacts.
390+
{{
391+
trimmedSearchTerm
392+
? `${contactsStore.total} found`
393+
: `${contactsStore.total} total`
394+
}}
388395
</p>
389396
</div>
390397
<VSpacer />

0 commit comments

Comments
 (0)