Skip to content

Commit fd6e9f7

Browse files
committed
add context chat category and make max-width 1220px
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent c9d6b22 commit fd6e9f7

3 files changed

Lines changed: 52 additions & 2 deletions

File tree

src/components/AssistantTextProcessingModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default {
205205
206206
.assistant-modal--content {
207207
width: 100%;
208-
max-width: 1200px;
208+
max-width: 1220px;
209209
margin: 0 auto;
210210
padding: 16px;
211211
display: flex;

src/components/TaskTypeSelect.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ import DotsHorizontalIcon from 'vue-material-design-icons/DotsHorizontal.vue'
3838
import TextLongIcon from 'vue-material-design-icons/TextLong.vue'
3939
import ImageOutlineIcon from 'vue-material-design-icons/ImageOutline.vue'
4040
import WebIcon from 'vue-material-design-icons/Web.vue'
41-
import WaveformIcon from './icons/Waveform.vue'
4241
import FileIcon from 'vue-material-design-icons/File.vue'
42+
import ContentPasteSearchIcon from './icons/ContentPasteSearch.vue'
43+
import WaveformIcon from './icons/Waveform.vue'
4344
4445
export default {
4546
name: 'TaskTypeSelect',
@@ -141,6 +142,8 @@ export default {
141142
getTaskCategory(id) {
142143
if (id.startsWith('chatty')) {
143144
return 'chat'
145+
} else if (id.startsWith('context_chat')) {
146+
return 'context'
144147
} else if (id.includes('translate')) {
145148
return 'translate'
146149
} else if (id.startsWith('richdocuments')) {
@@ -158,6 +161,8 @@ export default {
158161
switch (category) {
159162
case 'chat':
160163
return t('assistant', 'Chat with AI')
164+
case 'context':
165+
return t('assistant', 'Context Chat')
161166
case 'text':
162167
return t('assistant', 'Work with text')
163168
case 'image':
@@ -176,6 +181,8 @@ export default {
176181
switch (category) {
177182
case 'chat':
178183
return MessageOutlineIcon
184+
case 'context':
185+
return ContentPasteSearchIcon
179186
case 'text':
180187
return TextLongIcon
181188
case 'image':
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
- SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
- SPDX-License-Identifier: AGPL-3.0-or-later
4+
-->
5+
<template>
6+
<span v-bind="$attrs"
7+
:aria-hidden="title ? null : 'true'"
8+
:aria-label="title"
9+
class="material-design-icon waveform-icon"
10+
role="img"
11+
@click="$emit('click', $event)">
12+
<svg :fill="fillColor"
13+
class="material-design-icon__svg"
14+
:width="size"
15+
:height="size"
16+
viewBox="0 -960 960 960">
17+
<path d="M824-80 716-188q-22 13-46 20.5t-50 7.5q-75 0-127.5-52.5T440-340q0-75 52.5-127.5T620-520q75 0 127.5 52.5T800-340q0 26-7.5 50T772-244l108 108-56 56ZM620-240q42 0 71-29t29-71q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Zm220-320h-80v-200h-80v120H280v-120h-80v560h200v80H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h167q11-35 43-57.5t70-22.5q40 0 71.5 22.5T594-840h166q33 0 56.5 23.5T840-760v200ZM480-760q17 0 28.5-11.5T520-800q0-17-11.5-28.5T480-840q-17 0-28.5 11.5T440-800q0 17 11.5 28.5T480-760Z">
18+
<title v-if="title">{{ title }}</title>
19+
</path>
20+
</svg>
21+
</span>
22+
</template>
23+
24+
<script>
25+
export default {
26+
name: 'ContentPasteSearch',
27+
props: {
28+
title: {
29+
type: String,
30+
default: null,
31+
},
32+
fillColor: {
33+
type: String,
34+
default: 'currentColor',
35+
},
36+
size: {
37+
type: Number,
38+
default: 24,
39+
},
40+
},
41+
emits: ['click'],
42+
}
43+
</script>

0 commit comments

Comments
 (0)