Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/api/github-stars/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export async function GET() {
} catch (error) {
console.error('Error fetching GitHub stars:', error)
// Return cached value or fallback
return NextResponse.json({ stars: cachedStars || 994 })
return NextResponse.json({ stars: cachedStars || 1200 })
}
}
2 changes: 1 addition & 1 deletion app/repos/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
onToggleMobileMenu={toggleSidebar}
actions={
<div className="flex items-center gap-2 h-8">
<GitHubStarsButton initialStars={1056} />
<GitHubStarsButton initialStars={1200} />
{/* Deploy to Vercel Button */}
<Button
asChild
Expand Down Expand Up @@ -235,7 +235,7 @@
{session.user && (
<SelectItem value={session.user.username}>
<div className="flex items-center gap-2">
<img src={session.user.avatar} alt={session.user.username} className="w-5 h-5 rounded-full" />

Check warning on line 238 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
<span>{session.user.username}</span>
</div>
</SelectItem>
Expand All @@ -243,7 +243,7 @@
{organizations.map((org) => (
<SelectItem key={org.login} value={org.login}>
<div className="flex items-center gap-2">
<img src={org.avatar_url} alt={org.login} className="w-5 h-5 rounded-full" />

Check warning on line 246 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
<span>{org.login}</span>
</div>
</SelectItem>
Expand Down Expand Up @@ -308,12 +308,12 @@
<File className="w-7 h-7" strokeWidth={1} />
) : (
<>
<img

Check warning on line 311 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
src={template.imageLight}
alt={template.name}
className="max-w-[75%] max-h-[75%] w-auto h-auto object-contain dark:hidden"
/>
<img

Check warning on line 316 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
src={template.imageDark}
alt={template.name}
className="max-w-[75%] max-h-[75%] w-auto h-auto object-contain hidden dark:block"
Expand Down Expand Up @@ -353,12 +353,12 @@
<File className="w-12 h-12" strokeWidth={1} />
) : (
<>
<img

Check warning on line 356 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
src={template.imageLight}
alt={template.name}
className="max-w-[75%] max-h-[75%] w-auto h-auto object-contain dark:hidden"
/>
<img

Check warning on line 361 in app/repos/new/page.tsx

View workflow job for this annotation

GitHub Actions / checks

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
src={template.imageDark}
alt={template.name}
className="max-w-[75%] max-h-[75%] w-auto h-auto object-contain hidden dark:block"
Expand Down
2 changes: 1 addition & 1 deletion components/github-stars-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface GitHubStarsButtonProps {
initialStars?: number
}

export function GitHubStarsButton({ initialStars = 1100 }: GitHubStarsButtonProps) {
export function GitHubStarsButton({ initialStars = 1200 }: GitHubStarsButtonProps) {
return (
<Button asChild variant="ghost" size="sm" className="h-8 px-2 sm:px-3 gap-1.5">
<a href={GITHUB_REPO_URL} target="_blank" rel="noopener noreferrer" className="flex items-center">
Expand Down
2 changes: 1 addition & 1 deletion components/home-page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function HomePageContent({
initialKeepAlive = false,
maxSandboxDuration = 300,
user = null,
initialStars = 1056,
initialStars = 1200,
}: HomePageContentProps) {
const [isSubmitting, setIsSubmitting] = useState(false)
const [selectedOwner, setSelectedOwnerState] = useState(initialSelectedOwner)
Expand Down
2 changes: 1 addition & 1 deletion components/home-page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function HomePageHeader({
onOwnerChange,
onRepoChange,
user,
initialStars = 1056,
initialStars = 1200,
}: HomePageHeaderProps) {
const { toggleSidebar } = useTasks()
const routerNav = useRouter()
Expand Down
2 changes: 1 addition & 1 deletion components/home-page-mobile-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface HomePageMobileFooterProps {
initialStars?: number
}

export function HomePageMobileFooter({ initialStars = 1056 }: HomePageMobileFooterProps) {
export function HomePageMobileFooter({ initialStars = 1200 }: HomePageMobileFooterProps) {
return (
<div className="md:hidden fixed bottom-0 left-0 right-0 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 z-20">
<div className="flex items-center justify-center gap-3 p-4">
Expand Down
2 changes: 1 addition & 1 deletion components/repo-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface RepoLayoutProps {
children: React.ReactNode
}

export function RepoLayout({ owner, repo, user, authProvider, initialStars = 1056, children }: RepoLayoutProps) {
export function RepoLayout({ owner, repo, user, authProvider, initialStars = 1200, children }: RepoLayoutProps) {
const { toggleSidebar } = useTasks()
const pathname = usePathname()
const router = useRouter()
Expand Down
2 changes: 1 addition & 1 deletion components/repo-page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface RepoPageClientProps {
initialStars?: number
}

export function RepoPageClient({ owner, repo, user, authProvider, initialStars = 1056 }: RepoPageClientProps) {
export function RepoPageClient({ owner, repo, user, authProvider, initialStars = 1200 }: RepoPageClientProps) {
const { toggleSidebar } = useTasks()
const [activeTab, setActiveTab] = useState('commits')

Expand Down
2 changes: 1 addition & 1 deletion components/task-page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function TaskPageClient({
taskId,
user,
authProvider,
initialStars = 1056,
initialStars = 1200,
maxSandboxDuration = 300,
}: TaskPageClientProps) {
const { task, isLoading, error } = useTask(taskId)
Expand Down
2 changes: 1 addition & 1 deletion components/task-page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface TaskPageHeaderProps {
initialStars?: number
}

export function TaskPageHeader({ task, user, authProvider, initialStars = 1056 }: TaskPageHeaderProps) {
export function TaskPageHeader({ task, user, authProvider, initialStars = 1200 }: TaskPageHeaderProps) {
const { toggleSidebar } = useTasks()

return (
Expand Down
4 changes: 2 additions & 2 deletions components/tasks-list-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function getTimeAgo(date: Date): string {
return new Date(date).toLocaleDateString()
}

export function TasksListClient({ user, authProvider, initialStars = 1056 }: TasksListClientProps) {
export function TasksListClient({ user, authProvider, initialStars = 1200 }: TasksListClientProps) {
const { toggleSidebar, refreshTasks } = useTasks()
const router = useRouter()
const [tasks, setTasks] = useState<Task[]>([])
Expand Down Expand Up @@ -456,7 +456,7 @@ export function TasksListClient({ user, authProvider, initialStars = 1056 }: Tas
)}
</div>
)}
{task.selectedAgent && <span></span>}
{task.selectedAgent && <span>?</span>}
<div className="flex items-center gap-1">
<Clock className="h-3 w-3" />
<span>{getTimeAgo(task.createdAt)}</span>
Expand Down
4 changes: 2 additions & 2 deletions lib/github-stars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export async function getGitHubStars(): Promise<number> {
}

const data = await response.json()
return data.stargazers_count || 994
return data.stargazers_count || 1200
} catch (error) {
console.error('Error fetching GitHub stars:', error)
return 994 // Fallback value
return 1200 // Fallback value
}
}
Loading