Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/lib/common/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
>
<Input
type="text"
name={'select-display-text'}
class={`clickable ${disabled ? 'disabled' : ''}`}
value={displayText}
placeholder={placeholder}
Expand All @@ -392,6 +393,7 @@
</div>
<Input
type="text"
name={'select-search-text'}
value={searchValue}
placeholder={searchPlaceholder}
on:input={e => changeSearchValue(e)}
Expand All @@ -411,6 +413,7 @@
<div class="line-align-center select-box">
<Input
type="checkbox"
name={'select-select-all'}
style="pointer-events: none;"
checked={selectAllChecked}
readonly
Expand Down Expand Up @@ -448,6 +451,7 @@
{#if multiSelect}
<Input
type="checkbox"
name={`select-checkbox-${option.value}`}
style="pointer-events: none;"
checked={option.checked}
readonly
Expand Down
2 changes: 1 addition & 1 deletion src/lib/scss/custom/pages/_agent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
gap: 8px;

> * {
width: 100%;
width: 100% !important;
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion src/routes/page/agent/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { goto } from '$app/navigation';
import Swal from 'sweetalert2';
import { page } from '$app/stores';
import { Button, Col, Row } from '@sveltestrap/sveltestrap';
import { Button, Col, Input, Row } from '@sveltestrap/sveltestrap';
import Breadcrumb from '$lib/common/Breadcrumb.svelte';
import HeadTitle from '$lib/common/HeadTitle.svelte';
import LoadingToComplete from '$lib/common/LoadingToComplete.svelte';
Expand Down Expand Up @@ -281,6 +281,13 @@
{/if}
</div>
<div class="agent-filter">
<Input
type="text"
placeholder="Search by name"
style="width: fit-content;"
value={filter.similarName}
on:input={e => filter.similarName = e.target.value?.trim()}
/>
<Select
tag={'agent-label-select'}
placeholder={'Select labels'}
Expand Down
6 changes: 5 additions & 1 deletion src/routes/page/conversation/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@
import LoadingToComplete from '$lib/common/LoadingToComplete.svelte';
import Select from '$lib/common/Select.svelte';
import { getAgentOptions } from '$lib/services/agent-service';
import { getConversations, deleteConversation, getConversationStateSearchKeys } from '$lib/services/conversation-service.js';
import { utcToLocal } from '$lib/helpers/datetime';
import { ConversationChannel, TimeRange } from '$lib/helpers/enums';
import { TIME_RANGE_OPTIONS } from '$lib/helpers/constants';
import {
getConversations,
deleteConversation,
getConversationStateSearchKeys
} from '$lib/services/conversation-service.js';
import {
getPagingQueryParams,
setUrlQueryParams,
Expand Down