-
Notifications
You must be signed in to change notification settings - Fork 360
Wave AI UI Remake #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DepsCian
wants to merge
5
commits into
wavetermdev:main
Choose a base branch
from
DepsCian:ai-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Wave AI UI Remake #2103
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
887e52c
refactor: complete Wave AI widget remake
DepsCian 43d810b
feat: enhance code block functionality
DepsCian 2042b82
refactor: minor enhancements for Wave AI
DepsCian 7794e2e
Merge branch 'main' into ai-update
DepsCian 6fed8f1
Merge branch 'main' into ai-update
DepsCian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,54 @@ | ||
// Copyright 2024, Command Line Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
$dot-width: 11px; | ||
$dot-color: var(--success-color); | ||
$speed: 1.5s; | ||
.typing-indicator { | ||
display: inline-flex; | ||
align-items: center; | ||
gap: 8px; | ||
margin: 0; | ||
padding: 0; | ||
|
||
.typing { | ||
position: relative; | ||
height: $dot-width; | ||
&-bubble { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: rgba(from var(--accent-color) r g b / 0.1); | ||
border-radius: 20px; | ||
padding: 6px 12px; | ||
gap: 4px; | ||
} | ||
|
||
span { | ||
content: ""; | ||
animation: blink $speed infinite; | ||
animation-fill-mode: both; | ||
height: $dot-width; | ||
width: $dot-width; | ||
background: $dot-color; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
&-dot { | ||
width: 6px; | ||
height: 6px; | ||
border-radius: 50%; | ||
background-color: var(--accent-color); | ||
opacity: 0.7; | ||
|
||
&:nth-child(1) { | ||
animation: typing-animation 1.4s infinite ease-in-out; | ||
animation-delay: 0s; | ||
} | ||
|
||
&:nth-child(2) { | ||
animation: typing-animation 1.4s infinite ease-in-out; | ||
animation-delay: 0.2s; | ||
margin-left: $dot-width * 1.5; | ||
} | ||
|
||
&:nth-child(3) { | ||
animation: typing-animation 1.4s infinite ease-in-out; | ||
animation-delay: 0.4s; | ||
margin-left: $dot-width * 3; | ||
} | ||
} | ||
} | ||
|
||
@keyframes blink { | ||
0% { | ||
opacity: 0.1; | ||
@keyframes typing-animation { | ||
0%, | ||
100% { | ||
transform: translateY(0); | ||
} | ||
20% { | ||
50% { | ||
transform: translateY(-2.5px); | ||
opacity: 1; | ||
} | ||
100% { | ||
opacity: 0.1; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
// Copyright 2025, Command Line Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { clsx } from "clsx"; | ||
|
||
import React from "react"; | ||
import "./typingindicator.scss"; | ||
|
||
type TypingIndicatorProps = { | ||
export interface TypingIndicatorProps { | ||
style?: React.CSSProperties; | ||
className?: string; | ||
}; | ||
const TypingIndicator = ({ className }: TypingIndicatorProps) => { | ||
} | ||
|
||
export const TypingIndicator: React.FC<TypingIndicatorProps> = ({ style, className }) => { | ||
return ( | ||
<div className={clsx("typing", className)}> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
<div className={`typing-indicator ${className || ""}`} style={style}> | ||
<div className="typing-indicator-bubble"> | ||
<div className="typing-indicator-dot"></div> | ||
<div className="typing-indicator-dot"></div> | ||
<div className="typing-indicator-dot"></div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export { TypingIndicator }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fixed potential issue with hardcoded timeout
The 500ms hardcoded timeout when creating a new terminal may not always be sufficient for terminal initialization, which could lead to missed text input.
Consider implementing a callback or event-based approach instead of a timeout to ensure the terminal is ready before sending text:
📝 Committable suggestion