Skip to content

Commit e14163c

Browse files
feat: add animated ellipsis to lump
1 parent 5868fb8 commit e14163c

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

extensions/vscode/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui/src/components/mainInput/Lump/LumpToolbar.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useContext } from "react";
22
import styled from "styled-components";
3+
import { AnimatedEllipsis } from "../..";
34
import { IdeMessengerContext } from "../../../context/IdeMessenger";
45
import { useAppDispatch, useAppSelector } from "../../../redux/hooks";
56
import {
@@ -11,7 +12,8 @@ import { BlockSettingsTopToolbar } from "./BlockSettingsTopToolbar";
1112

1213
const Container = styled.div`
1314
display: flex;
14-
justify-content: flex-end;
15+
justify-content: space-between;
16+
align-items: center;
1517
width: 100%;
1618
`;
1719

@@ -27,6 +29,15 @@ interface TopToolbarProps {
2729
setSelectedSection: (value: string | null) => void;
2830
}
2931

32+
function GeneratingIndicator() {
33+
return (
34+
<div className="text-xs text-gray-400">
35+
<span>Generating</span>
36+
<AnimatedEllipsis />
37+
</div>
38+
);
39+
}
40+
3041
export function LumpToolbar(props: TopToolbarProps) {
3142
const dispatch = useAppDispatch();
3243
const ideMessenger = useContext(IdeMessengerContext);
@@ -36,6 +47,7 @@ export function LumpToolbar(props: TopToolbarProps) {
3647
if (ttsActive) {
3748
return (
3849
<Container>
50+
<GeneratingIndicator />
3951
<StopButton
4052
className="text-gray-400"
4153
onClick={() => {
@@ -51,6 +63,7 @@ export function LumpToolbar(props: TopToolbarProps) {
5163
if (isStreaming) {
5264
return (
5365
<Container>
66+
<GeneratingIndicator />
5467
<StopButton
5568
className="text-gray-400"
5669
onClick={() => {

0 commit comments

Comments
 (0)