feat(workspace): add hidden contacts filter and remove calendar scene swap

This commit is contained in:
Ruslan Bakiev
2026-02-23 12:38:30 +07:00
parent f076726362
commit aa465f65bd
3 changed files with 107 additions and 40 deletions

View File

@@ -6,6 +6,8 @@ defineProps<{
peopleSearch: string;
peopleSortOptions: Array<{ value: string; label: string }>;
peopleSortMode: string;
peopleVisibilityOptions: Array<{ value: string; label: string }>;
peopleVisibilityMode: string;
peopleContactList: any[];
selectedCommThreadId: string;
isReviewHighlightedContact: (contactId: string) => boolean;
@@ -26,6 +28,7 @@ defineProps<{
onPeopleListModeChange: (mode: PeopleListMode) => void;
onPeopleSearchInput: (value: string) => void;
onPeopleSortModeChange: (mode: string) => void;
onPeopleVisibilityModeChange: (mode: string) => void;
}>();
function onSearchInput(event: Event) {
@@ -91,6 +94,17 @@ function onSearchInput(event: Event) {
<span>{{ option.label }}</span>
<span v-if="peopleSortMode === option.value"></span>
</button>
<div class="my-1 h-px bg-base-300/70" />
<p class="px-2 pb-1 text-[11px] font-semibold uppercase tracking-wide text-base-content/55">Filter contacts</p>
<button
v-for="option in peopleVisibilityOptions"
:key="`people-visibility-${option.value}`"
class="btn btn-ghost btn-sm w-full justify-between"
@click="onPeopleVisibilityModeChange(option.value)"
>
<span>{{ option.label }}</span>
<span v-if="peopleVisibilityMode === option.value"></span>
</button>
</template>
<p v-else class="px-2 py-1 text-xs text-base-content/60">Deals are sorted by title.</p>
</div>
@@ -192,7 +206,7 @@ function onSearchInput(event: Event) {
</button>
<p v-if="peopleListMode === 'contacts' && peopleContactList.length === 0" class="px-1 py-2 text-xs text-base-content/55">
No contacts found.
{{ peopleVisibilityMode === 'hidden' ? 'No hidden contacts found.' : 'No contacts found.' }}
</p>
<p v-if="peopleListMode === 'deals' && peopleDealList.length === 0" class="px-1 py-2 text-xs text-base-content/55">
No deals found.