Skip to content

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

Description

@johneliud

Description

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

Route: /client/listings/[id]/applications

UI

  • Back link to /client
  • Listing summary header (title, total XLM, status badge)
  • List of applications, each showing:
    • Freelancer Stellar address (truncated + full on hover/copy)
    • Application message
    • Time posted
    • Status badge (Pending / Accepted / Rejected)
    • Accept button (pending applications only, listing must be open)
    • Reject button (pending applications only)
  • Empty state if no applications yet

Accept Flow

  1. Client clicks "Accept"
  2. Inline confirmation: "This will create an on-chain escrow project with this freelancer. Continue?"
  3. On confirm → acceptApplication():
    • Calls createProject() on-chain (triggers Freighter popup)
    • Updates listing status = 'filled', on_chain_project_id = projectId
    • Sets accepted application status = 'accepted'
    • Sets all other applications status = 'rejected'
  4. Redirect to /client/projects/[projectId]

Acceptance Criteria

  • Only the listing's client can see this page (verified by wallet address match)
  • Accept triggers Freighter popup and creates on-chain project
  • All other applications auto-rejected on accept
  • Redirect to project management page after accept
  • Non-client wallets see an "Unauthorized" message

Metadata

Metadata

Assignees

Labels

frontendUI / client-side workmvpCore MVP scopepriority: highMust-have for MVP

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions