-
Notifications
You must be signed in to change notification settings - Fork 51
Daily branch 2025 08 21 #12
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
00226ca
fix: ScrollToBottomButton position
rossmanko fce26da
fix: todo-write tool
rossmanko 2f1221d
feat: add header to avoid scalling & apple icon
rossmanko f910c6b
refactor: implement coderabbit suggetions
rossmanko cdf2569
refactor: improve system prompt for different chat modes
rossmanko ac05a47
feat: truncate tools output for better performance
rossmanko 9a5095d
refactor: truncate long outputs for tools
rossmanko 586c290
refactor: truncate long outputs for tools
rossmanko 8ae7f7f
refactor: implement coderabbit suggestions
rossmanko 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,24 +1,46 @@ | ||
| import { ChevronDown } from "lucide-react"; | ||
| import { useGlobalState } from "@/app/contexts/GlobalState"; | ||
| import { getTodoStats } from "@/lib/utils/todo-utils"; | ||
|
|
||
| interface ScrollToBottomButtonProps { | ||
| isVisible: boolean; | ||
| onClick: () => void; | ||
| hasMessages: boolean; | ||
| isAtBottom: boolean; | ||
| } | ||
|
|
||
| export const ScrollToBottomButton = ({ | ||
| isVisible, | ||
| onClick, | ||
| hasMessages, | ||
| isAtBottom, | ||
| }: ScrollToBottomButtonProps) => { | ||
| if (!isVisible) return null; | ||
| const { sidebarOpen, isTodoPanelExpanded, todos } = useGlobalState(); | ||
|
|
||
| const shouldShowScrollButton = | ||
| hasMessages && !isAtBottom && !isTodoPanelExpanded; | ||
|
|
||
| if (!shouldShowScrollButton) return null; | ||
|
|
||
| // Check if there are any active todos to determine positioning (same logic as TodoPanel) | ||
| const stats = getTodoStats(todos); | ||
| const hasActiveTodos = stats.inProgress > 0 || stats.pending > 0; | ||
| const bottomPosition = hasActiveTodos ? "bottom-42" : "bottom-34"; | ||
|
|
||
| return ( | ||
| <button | ||
| onClick={onClick} | ||
| className="bg-background border border-border rounded-full p-2 shadow-lg hover:shadow-xl transition-all duration-200 hover:scale-105 flex items-center justify-center" | ||
| aria-label="Scroll to bottom" | ||
| tabIndex={0} | ||
| <div | ||
| className={`fixed ${bottomPosition} z-40 transition-all duration-300 ${ | ||
| sidebarOpen | ||
| ? "left-1/2 desktop:left-1/4 -translate-x-1/2" | ||
| : "left-1/2 -translate-x-1/2" | ||
| }`} | ||
| > | ||
| <ChevronDown className="w-4 h-4 text-muted-foreground" /> | ||
| </button> | ||
| <button | ||
| onClick={onClick} | ||
| className="bg-background border border-border rounded-full p-2 shadow-lg hover:shadow-xl transition-all duration-200 hover:scale-105 flex items-center justify-center" | ||
| aria-label="Scroll to bottom" | ||
| tabIndex={0} | ||
| > | ||
| <ChevronDown className="w-4 h-4 text-muted-foreground" /> | ||
| </button> | ||
| </div> | ||
| ); | ||
| }; |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.