mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-05 09:33:07 +00:00
fix: enhance commit messages and sidebar scroll visibility
Fix #689: Improve auto-generated commit message quality - Add generateCommitMessage() method that includes description summary - Include first 5 lines of feature description (up to 300 chars) - Add git diff stats to provide file change context - Commit messages now reflect the actual scope of work performed - Maintains backward compatibility with fallback for missing features Fix #601: Improve scroll indicator visibility on small screens - Enhanced scroll indicator with gradient fade effect - Show indicator on both expanded and collapsed sidebar states - Added "Scroll" text label for better discoverability - More prominent brand-colored chevron with animation - Prevents Project Settings from being hidden on smaller laptop screens Both fixes improve user experience without breaking existing functionality. Test results: All 1,421 server tests pass
This commit is contained in:
@@ -405,9 +405,28 @@ export function Sidebar() {
|
||||
</div>
|
||||
|
||||
{/* Scroll indicator - shows there's more content below */}
|
||||
{canScrollDown && sidebarOpen && (
|
||||
<div className="flex justify-center py-1 border-t border-border/30">
|
||||
<ChevronDown className="w-4 h-4 text-muted-foreground/50 animate-bounce" />
|
||||
{canScrollDown && (
|
||||
<div
|
||||
className={cn(
|
||||
'relative flex justify-center py-2 border-t border-border/30',
|
||||
'bg-gradient-to-t from-background via-background/95 to-transparent',
|
||||
'-mt-8 pt-8',
|
||||
'pointer-events-none'
|
||||
)}
|
||||
>
|
||||
<div className="pointer-events-auto flex flex-col items-center gap-0.5">
|
||||
<ChevronDown
|
||||
className={cn(
|
||||
'w-4 h-4 text-brand-500/70 animate-bounce',
|
||||
sidebarOpen ? 'block' : 'w-3 h-3'
|
||||
)}
|
||||
/>
|
||||
{sidebarOpen && (
|
||||
<span className="text-[10px] font-medium text-muted-foreground/70 uppercase tracking-wide">
|
||||
Scroll
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user