From cd3cd7667a0f4be9d4b5d706e2ad6faada69cce0 Mon Sep 17 00:00:00 2001
From: NasSharaf
Date: Thu, 4 Sep 2025 12:05:20 -0400
Subject: [PATCH] Fixed filtering and simplified octokit context
---
.../(dashboard)/projects/page.tsx | 63 +++++---
.../onboarding/connect-step/connect-step.tsx | 12 +-
.../onboarding/success-step/success-step.tsx | 127 ++++++++++-----
apps/deploy-fe/src/hooks/useRepoData.tsx | 150 ++++++------------
4 files changed, 187 insertions(+), 165 deletions(-)
diff --git a/apps/deploy-fe/src/app/(web3-authenticated)/(dashboard)/projects/page.tsx b/apps/deploy-fe/src/app/(web3-authenticated)/(dashboard)/projects/page.tsx
index 5d5918a..30b7af3 100644
--- a/apps/deploy-fe/src/app/(web3-authenticated)/(dashboard)/projects/page.tsx
+++ b/apps/deploy-fe/src/app/(web3-authenticated)/(dashboard)/projects/page.tsx
@@ -2,12 +2,12 @@
import { PageWrapper } from '@/components/foundation'
import CheckBalanceIframe from '@/components/iframe/check-balance-iframe/CheckBalanceIframe'
import { FixedProjectCard } from '@/components/projects/project/ProjectCard/FixedProjectCard'
-import { Button } from '@workspace/ui/components/button'
-import { useEffect, useState } from 'react'
-import { Shapes } from 'lucide-react'
import { useGQLClient } from '@/context'
import { useUser } from '@clerk/nextjs'
import type { Project } from '@workspace/gql-client'
+import { Button } from '@workspace/ui/components/button'
+import { Shapes } from 'lucide-react'
+import { useEffect, useState } from 'react'
interface ProjectData {
id: string
@@ -24,7 +24,7 @@ export default function ProjectsPage() {
const [projects, setProjects] = useState([])
const [isLoading, setIsLoading] = useState(true)
const [error, setError] = useState(null)
-
+
const client = useGQLClient()
const { user } = useUser()
@@ -95,7 +95,7 @@ export default function ProjectsPage() {
console.log(
`🔍 Project ${project.name}: repo owner = ${repoOwner}, current user = ${githubUsername}`
)
- return repoOwner === githubUsername
+ return repoOwner.toLowerCase() === githubUsername.toLowerCase()
}
return true // Include projects without repository info
})
@@ -130,7 +130,7 @@ export default function ProjectsPage() {
setIsLoading(false)
}
}
-
+
return (
Failed to load your deployed projects. Please try again.
-