Skip to content

Commit 2fbf06a

Browse files
committed
Integrate feedback and reviews
1 parent 76845d5 commit 2fbf06a

File tree

4 files changed

+23
-294
lines changed

4 files changed

+23
-294
lines changed

web/src/components/common/Chat.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ export const ChatSection = () => {
234234
<VStack justifyContent="space-between" alignItems="stretch" height={"100%"} width={"100%"}>
235235
<HStack className='chat-section' wrap="wrap" style={{ overflowY: 'scroll' }} width={'100%'} gap={1.5}>
236236
{Chats}
237-
{ configs.IS_DEV && tasks.length && <Tasks /> }
238-
{ !configs.IS_DEV && tasks.length && <TasksLite /> }
239-
{/* { tasks.length && <TasksLite /> } */}
237+
{/* { configs.IS_DEV && tasks.length && <Tasks /> } */}
238+
{/* { !configs.IS_DEV && tasks.length && <TasksLite /> } */}
239+
{ tasks.length && <TasksLite /> }
240240
<OngoingActionStack />
241241
<div style={{ height: '10px', width: '100%' }} />
242242
<div ref={messagesEndRef} />

web/src/components/common/ReviewBox.tsx

Lines changed: 0 additions & 288 deletions
This file was deleted.

web/src/components/common/TaskUI.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import RunTaskButton from './RunTaskButton'
2020
import AbortTaskButton from './AbortTaskButton'
2121
import { ChatSection } from './Chat'
2222
import { BiScreenshot, BiPaperclip, BiMessageAdd, BiEdit, BiTrash, BiBookBookmark, BiTable, BiRefresh, BiStopCircle, BiMemoryCard, BiGroup } from 'react-icons/bi'
23-
import { ReviewBox } from './ReviewBox'
2423
import chat from '../../chat/chat'
2524
import _, { every, get, isEmpty, isEqual, isUndefined, pick, sortBy } from 'lodash'
2625
import { abortPlan, clearTasks, startNewThread, updateLastWarmedOn, cloneThreadFromHistory } from '../../state/chat/reducer'
@@ -702,7 +701,6 @@ const TaskUI = forwardRef<HTMLTextAreaElement>((_props, ref) => {
702701
</HStack>
703702
} */}
704703

705-
<ReviewBox />
706704
{ !taskInProgress &&
707705
<ChatInputArea
708706
ref={ref}

web/src/components/common/TasksLite.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
HStack,
66
Icon,
77
IconButton,
8+
Link,
89
Spinner,
910
Text,
1011
Textarea,
@@ -24,6 +25,7 @@ import { Task, Tasks as TasksInfo } from '../../state/chat/reducer';
2425
import { get, last } from 'lodash';
2526
import { getActionTaskLiteLabels } from '../../helpers/utils';
2627
import { useSubmitMessageFeedbackMutation } from '../../app/api/userStateApi';
28+
import { getParsedIframeInfo } from '../../helpers/origin';
2729

2830
interface TaskWithLevel extends Task {
2931
level: number;
@@ -226,6 +228,7 @@ export const TasksLite: React.FC = () => {
226228
const activeThread = useSelector((state: RootState) => state.chat.threads[thread]);
227229
const taskInProgress = !(activeThread.status === 'FINISHED')
228230
const taskInterrupted = activeThread.interrupted
231+
const isEmbedded = getParsedIframeInfo()?.isEmbedded as unknown === 'true';
229232

230233
const [submitMessageFeedback] = useSubmitMessageFeedbackMutation();
231234

@@ -356,7 +359,6 @@ export const TasksLite: React.FC = () => {
356359
</Box>
357360
);
358361
}
359-
360362
return (
361363
<Box
362364
bg={'minusxBW.300'}
@@ -465,6 +467,23 @@ export const TasksLite: React.FC = () => {
465467
<Text fontSize="xs" color="minusxBW.600" textAlign="center" fontWeight="500">
466468
Thanks for the feedback!
467469
</Text>
470+
{!isEmbedded && (
471+
<Text fontSize="xs" color="minusxBW.600" textAlign="center" fontWeight="500">
472+
Please consider rating us on the &nbsp;
473+
<Link
474+
href="https://chromewebstore.google.com/detail/minusx/ngneijhbpnongpekeimkbjinkkpfkaop"
475+
isExternal
476+
color="minusxGreen.600"
477+
display={'inline'}
478+
fontSize="xs"
479+
fontWeight="bold"
480+
textDecoration="underline"
481+
>
482+
Chrome Web Store.
483+
</Link>
484+
&nbsp; to support our work!
485+
</Text>
486+
)}
468487
</VStack>
469488
)}
470489
</VStack>

0 commit comments

Comments
 (0)