Skip to content

BSL 61: Admin Applications Review Comments#68

Merged
rohanarcot merged 2 commits into
mainfrom
bsl-63-admin-applications-split-panel
Jun 5, 2026
Merged

BSL 61: Admin Applications Review Comments#68
rohanarcot merged 2 commits into
mainfrom
bsl-63-admin-applications-split-panel

Conversation

@jumanzoru

@jumanzoru jumanzoru commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

BSL 61: Admin Applications Review Comments

Replaces the flat applications table with a Figma-aligned two-panel review interface. Reviewers can now browse, filter, and act on applications without leaving the page.

What changed

app/admin/(authenticated)/applications/page.tsx: full rewrite

Left Panel (List):

  • Status dropdown filters by Pending / Approved / Rejected / All, and defaults to Pending
  • Type tabs (Startups / Organizations / Teams) drive a ?type= query param on the list fetch
  • Auto-selects the first item when filters change & preserves selection if the current item is still in the filtered results
  • Client-side search filters the fetched list by submitter name or type without an extra round-trip
  • Relative timestamps ("3hr ago", "2d ago") on each row

Right Panel (Detail)

  • Fetches full application detail from GET /api/admin/applications/[id] on selection
  • Header card: submitter name, type badge, colored status pill (red = pending, green = approved, gray = rejected), relative timestamp
  • Details grid: Funding Source, Location, Team Size, and Website read from payload JSON (Website is a real external link & shows for missing fields)
  • Document tiles (Pitch Deck, Financial Documents, Cap Table, Financial Projections) rendered as decorative <span> elements (no file upload system exists yet)
  • ApproveRejectButtons shown only for pending applications. On approval or rejection, both the list row badge & the detail status pill update immediately in the UI.
  • Comment history loads with the detail. New comments appear instantly & roll back if the request fails. The avatar initial comes from the user's session.

app/api/admin/applications/[id]/route.ts

  • Added reviewComments: true to the GET select so the detail panel receives the full comment history on load (was previously omitted)

@jumanzoru jumanzoru changed the title BSL 63: Admin Applications Review Comments BSL 61: Admin Applications Review Comments Jun 4, 2026
@rohanarcot rohanarcot merged commit b814f0a into main Jun 5, 2026
1 check passed
@rohanarcot rohanarcot deleted the bsl-63-admin-applications-split-panel branch June 5, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants