2 Commits

Author SHA1 Message Date
Sebastian d16dc6afdf chore(deps): update dependency vite to v8.1.4 2026-07-14 03:03:31 +00:00
Sebastian a3622a297c refactor: standardize module tool bar
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-07-13 22:03:20 -04:00
3 changed files with 46 additions and 39 deletions
+8 -8
View File
@@ -1351,9 +1351,9 @@
"license": "ISC"
},
"node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
"integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
"license": "MIT",
"engines": {
"node": ">=12"
@@ -1610,16 +1610,16 @@
}
},
"node_modules/vite": {
"version": "8.1.3",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.1.3.tgz",
"integrity": "sha512-Ds+gBRbj0lwRO2Y5hwnUBdxSwlAve9LeRyU4sNnAr0ewW0gWF0n5bgXgUzbgZ49MV9BVUAQUFYVcDUcilUExMA==",
"version": "8.1.4",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.1.4.tgz",
"integrity": "sha512-bTT9PsdWO+MQMNG9ZXIP/qM9wGh37DFxTV/sPq9cFpHr3w4jkgef032PkAL9jAqhk3Nz8NQw3O8n6/xFkqO4QQ==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"lightningcss": "^1.32.0",
"picomatch": "^4.0.4",
"picomatch": "^4.0.5",
"postcss": "^8.5.16",
"rolldown": "~1.1.3",
"rolldown": "~1.1.4",
"tinyglobby": "^0.2.17"
},
"bin": {
+3 -26
View File
@@ -11,6 +11,7 @@ const entitiesStore = useEntitiesStore()
const props = defineProps<{
selectedCollection?: CollectionObject | null
selectedEntity?: EntityObject | null
search?: string | null
}>()
// Emits
@@ -21,7 +22,6 @@ const emit = defineEmits<{
// State
const loading = ref(false)
const searchQuery = ref('')
// Entities belonging to the selected collection, sourced live from the manager store
const collectionEntities = computed<EntityObject[]>(() => {
@@ -34,10 +34,10 @@ const collectionEntities = computed<EntityObject[]>(() => {
// Computed
const filteredEntities = computed(() => {
if (!searchQuery.value) {
const query = (props.search ?? '').trim().toLowerCase()
if (!query) {
return collectionEntities.value
}
const query = searchQuery.value.toLowerCase()
return collectionEntities.value.filter(entity => {
const props = (entity.properties as any)
const given = props?.names?.given || ''
@@ -163,18 +163,6 @@ function entityAvatarColor(entity: EntityObject): string {
<template>
<div class="person-list-container">
<div class="person-list-header pa-4">
<v-text-field
v-model="searchQuery"
density="compact"
variant="outlined"
label="Search contacts"
prepend-inner-icon="mdi-magnify"
clearable
hide-details
/>
</div>
<div class="pa-0 person-list-content">
<v-progress-linear v-if="loading" indeterminate color="primary" />
@@ -251,13 +239,6 @@ function entityAvatarColor(entity: EntityObject): string {
overflow: auto;
}
.person-list-header {
min-height: 72px;
display: flex;
align-items: center;
border-bottom: 1px solid rgb(var(--v-border-color));
}
.person-list-content {
flex: 1;
overflow-y: auto;
@@ -267,10 +248,6 @@ function entityAvatarColor(entity: EntityObject): string {
background: transparent;
}
.person-list-container :deep(.v-field) {
background: transparent;
}
.v-list-item {
cursor: pointer;
}
+35 -5
View File
@@ -12,6 +12,7 @@ import ImportDialog from '@/components/ImportDialog.vue'
// Vuetify display
const display = useDisplay()
const isMobile = computed(() => display.mdAndDown.value)
// Check if people manager is available
const moduleStore = useModuleStore()
@@ -53,6 +54,9 @@ const {
closeImport,
} = peopleStore
// Contact search (filters the person list)
const searchQuery = ref('')
// VCF import file picker
const fileInputRef = ref<HTMLInputElement | null>(null)
@@ -81,7 +85,7 @@ onMounted(async () => {
<template>
<div class="people-container">
<!-- Top Navigation Bar -->
<v-toolbar elevation="0" class="people-toolbar border-b">
<v-toolbar elevation="0" density="compact" class="people-toolbar">
<template #prepend>
<v-btn
icon="mdi-menu"
@@ -91,11 +95,24 @@ onMounted(async () => {
</template>
<v-toolbar-title class="d-flex align-center">
<v-icon size="28" color="primary" class="mr-2">mdi-account-multiple</v-icon>
<span class="text-h6 font-weight-bold">People Manager</span>
<v-icon size="24" color="primary" class="mr-2">mdi-account-multiple</v-icon>
<span class="text-subtitle-1 font-weight-bold">People</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<!-- Search -->
<v-text-field
v-model="searchQuery"
density="compact"
variant="outlined"
placeholder="Search contacts..."
prepend-inner-icon="mdi-magnify"
hide-details
single-line
clearable
class="people-toolbar-search mx-4"
/>
</v-toolbar>
<!-- Main Content Area -->
@@ -104,8 +121,8 @@ onMounted(async () => {
<v-navigation-drawer
v-model="sidebarVisible"
contained
:permanent="display.mdAndUp.value"
:temporary="display.smAndDown.value"
:permanent="sidebarVisible && !isMobile"
:temporary="isMobile"
width="280"
class="people-sidebar"
>
@@ -227,6 +244,7 @@ onMounted(async () => {
<PersonList
:selected-collection="selectedCollection"
:selected-entity="selectedEntity"
:search="searchQuery"
@select="selectEntity"
@fresh="createEntity"
/>
@@ -275,9 +293,21 @@ onMounted(async () => {
}
.people-toolbar {
flex-shrink: 0;
border-bottom: 1px solid rgb(var(--v-border-color)) !important;
}
.people-toolbar-search {
max-width: 300px;
}
@media (max-width: 960px) {
.people-toolbar-search {
max-width: 180px;
margin-inline: 8px !important;
}
}
.people-content {
display: flex;
flex: 1;