diff --git a/.gitignore b/.gitignore index 21ad628..a171be2 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,7 @@ docs/task-logs/07-supabase-security-audit.md # Local-only scripts src/scripts/sync_github.ts + +# Graphify output +graphify-out/ +.graphify_analysis.json diff --git a/src/components/projects/IdeaWallSubmissionCard.tsx b/src/components/projects/IdeaWallSubmissionCard.tsx index 1efaeff..c152c80 100644 --- a/src/components/projects/IdeaWallSubmissionCard.tsx +++ b/src/components/projects/IdeaWallSubmissionCard.tsx @@ -3,6 +3,7 @@ import { ExternalLink, Phone, UserRound, + Users, } from 'lucide-react'; import type { @@ -83,6 +84,46 @@ export default function IdeaWallSubmissionCard({ Community Submission + {entry.open_for_team === true && ( +
+ Looking for Team +
+ )} + + {entry.open_for_team === false && ( +
+ Team Full +
+ )} +
+ {/* Phone */}
+ + {/* Collaborator Count */} + {entry.collaborator_count !== undefined && entry.collaborator_count !== null && ( +
+
+
+ Team Size +
+ +
+ {entry.collaborator_count} {entry.collaborator_count === 1 ? 'Person' : 'People'} +
+
+ + +
+ )} {/* Repository Button */} diff --git a/src/types/ideaWall.ts b/src/types/ideaWall.ts index 062d907..99f91cf 100644 --- a/src/types/ideaWall.ts +++ b/src/types/ideaWall.ts @@ -7,6 +7,8 @@ export interface IdeaWallEntry { repository_link: string; repository_description: string | null; phone_number: string | null; + collaborator_count?: number | null; + open_for_team?: boolean | null; is_visible: boolean; @@ -23,4 +25,6 @@ export interface IdeaWallEntryDraft { repository_link: string; repository_description: string | null; phone_number: string | null; + collaborator_count?: number | null; + open_for_team?: boolean | null; } \ No newline at end of file diff --git a/src/utils/fetchers.ts b/src/utils/fetchers.ts index fa06d7e..75550bf 100644 --- a/src/utils/fetchers.ts +++ b/src/utils/fetchers.ts @@ -136,6 +136,8 @@ export const fetchApprovedIdeaWallEntries = async () => { repository_link, repository_description, phone_number, + collaborator_count, + open_for_team, is_visible, approved_at, created_at, @@ -168,6 +170,8 @@ export const fetchIdeaWallEntriesForResponses = async ( repository_link, repository_description, phone_number, + collaborator_count, + open_for_team, is_visible, approved_at, created_at, @@ -187,6 +191,8 @@ export const publishIdeaWallEntry = async (entry: { repository_link: string; repository_description: string | null; phone_number: string | null; + collaborator_count?: number | null; + open_for_team?: boolean | null; }) => { const now = new Date().toISOString();