Skip to content
Open
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
86 changes: 86 additions & 0 deletions src/components/projects/IdeaWallSubmissionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
ExternalLink,
Phone,
UserRound,
Users,
} from 'lucide-react';

import type {
Expand Down Expand Up @@ -83,6 +84,46 @@ export default function IdeaWallSubmissionCard({
Community Submission
</div>

{entry.open_for_team === true && (
<div
className="
absolute top-3.5 right-4
inline-flex items-center
px-2 py-0.5
rounded-full
text-[10px]
font-semibold
uppercase
tracking-wider
text-emerald-300
border border-emerald-500/20
bg-emerald-500/10
"
>
Looking for Team
</div>
)}

{entry.open_for_team === false && (
<div
className="
absolute top-3.5 right-4
inline-flex items-center
px-2 py-0.5
rounded-full
text-[10px]
font-semibold
uppercase
tracking-wider
text-rose-400
border border-rose-500/20
bg-rose-500/10
"
>
Team Full
</div>
)}

<div
className="
absolute inset-0
Expand Down Expand Up @@ -157,12 +198,15 @@ export default function IdeaWallSubmissionCard({
pt-2
border-t
border-zinc-900
flex justify-between items-start gap-4
"
>
{/* Phone */}
<div
className="
flex items-start gap-2
text-xs text-zinc-500
flex-1
"
>
<Phone
Expand Down Expand Up @@ -198,6 +242,48 @@ export default function IdeaWallSubmissionCard({
</div>
</div>
</div>

{/* Collaborator Count */}
{entry.collaborator_count !== undefined && entry.collaborator_count !== null && (
<div
className="
flex items-start justify-end gap-2
text-xs text-zinc-500
flex-1 text-right
"
>
<div>
<div
className="
text-[9px]
uppercase
tracking-wider
text-zinc-600
font-mono
"
>
Team Size
</div>

<div
className="
text-zinc-300
"
>
{entry.collaborator_count} {entry.collaborator_count === 1 ? 'Person' : 'People'}
</div>
</div>

<Users
size={13}
className="
mt-0.5
text-purple-400
shrink-0
"
/>
</div>
)}
</div>

{/* Repository Button */}
Expand Down
4 changes: 4 additions & 0 deletions src/types/ideaWall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
6 changes: 6 additions & 0 deletions src/utils/fetchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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();

Expand Down
Loading