Skip to content

Add Application Review Page at /client/listings/[id]/applications#45

Merged
johneliud merged 4 commits into
mainfrom
feat/40-review-applications
Jun 4, 2026
Merged

Add Application Review Page at /client/listings/[id]/applications#45
johneliud merged 4 commits into
mainfrom
feat/40-review-applications

Conversation

@johneliud

Copy link
Copy Markdown
Owner

Description

Adds the page where clients review freelancer applications for their listings, accept one (triggering on-chain project creation), and reject others.

Type of Change

  • New feature

Changes Made

  • app/client/listings/[id]/applications/page.tsx — Applications review page with:
    • Fetches listing + applications in parallel on mount
    • Authorization guard — only the listing's client (matched by wallet address) can view; others see an "Unauthorized" message
    • Wallet connect prompt if not connected
    • Application cards: truncated freelancer address, message, timestamp, status badge (Pending / Accepted / Rejected)
    • Reject flow — single click, optimistic UI update
    • Accept flow — inline confirmation dialog ("This will trigger a Freighter popup. All other applications will be automatically rejected.") → acceptApplication() → on-chain createProject() → listing marked filled + on_chain_project_id stored → all other applications auto-rejected → redirect to /client/projects/[projectId]
    • Filled state — when listing is already filled, shows a banner with the on-chain project ID and "Manage Project" link
    • Empty state when no applications have been submitted yet

Related Issue

Closes #40

Testing

  • Tested locally
  • All existing pages still load correctly
  • npm run build passes with 0 TypeScript errors — /client/listings/[id]/applications registered as a dynamic route

Checklist

  • Code follows the existing style
  • No hardcoded secrets or credentials
  • .env.example updated if new env vars were added
  • README updated if setup steps changed

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mile-stack Ready Ready Preview, Comment Jun 4, 2026 10:48am

@johneliud johneliud self-assigned this Jun 4, 2026
@johneliud johneliud changed the title feat: add application review page at /client/listings/[id]/applications (#40) Add Application Review Page at /client/listings/[id]/applications Jun 4, 2026
@johneliud johneliud merged commit b5bac8f into main Jun 4, 2026
5 checks passed
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.

Build application review page for clients (/client/listings/[id]/applications)

1 participant