Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/components/Viewer/ObjectTree/Base/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ watch(
:class="{ 'is-expanded': showSearch }"
>
<ActionButton
data-testid="searchObjectsButton"
:tooltip="showSearch ? 'Hide search' : 'Show search'"
icon="mdi-magnify"
tooltipLocation="bottom"
Expand All @@ -43,6 +44,7 @@ watch(
<v-expand-x-transition>
<div v-if="showSearch" class="flex-grow-1 ms-1 text-no-wrap overflow-hidden">
<SearchBar
data-testid="searchObjectsInput"
:model-value="search"
placeholder="Search objects..."
color="black"
Expand All @@ -67,6 +69,7 @@ watch(
/>
</v-fade-transition>
<ActionButton
data-testid="sortObjectsButton"
:tooltip="'Sort by ' + (sortType === 'name' ? 'ID' : 'Name')"
:icon="
sortType === 'name' ? 'mdi-sort-alphabetical-ascending' : 'mdi-sort-numeric-ascending'
Expand All @@ -79,6 +82,7 @@ watch(
<v-menu :close-on-content-click="false">
<template #activator="{ props: menuProps }">
<ActionButton
data-testid="filterObjectsButton"
tooltip="Filter options"
icon="mdi-filter-variant"
variant="text"
Expand All @@ -94,12 +98,14 @@ watch(
:label="category_id"
hide-details
density="compact"
:data-testid="'filterCheckbox-' + category_id"
/>
</v-list-item>
</v-list>
</v-menu>
<ActionButton
v-if="!isCollapsed"
data-testid="collapseAllObjectsButton"
tooltip="Collapse All"
icon="mdi-collapse-all-outline"
variant="text"
Expand All @@ -109,6 +115,7 @@ watch(
/>
<ActionButton
v-else
data-testid="expandAllObjectsButton"
tooltip="Expand All"
icon="mdi-expand-all-outline"
variant="text"
Expand Down
6 changes: 5 additions & 1 deletion app/components/Viewer/ObjectTree/Base/ItemLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ const tooltipDisabled = computed(() => {
</script>

<template>
<div ref="label-container" class="tree-item-label-container w-100">
<div
ref="label-container"
:data-testid="'treeRow-' + actualItem.id"
class="tree-item-label-container w-100"
>
<v-tooltip :disabled="tooltipDisabled" location="right" open-delay="400">
<template #activator="{ props: tooltipProps }">
<span
Expand Down
1 change: 1 addition & 0 deletions app/components/Viewer/Options/ColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ watch(pressed, (value) => {
flat
canvas-height="75"
hide-inputs
hide-eye-dropper
width="220"
mode="rgba"
class="mx-auto"
Expand Down
Loading