This is a bounty to fix a bug in a web application where freelancer profile pages do not correctly render data from a mock file. Currently, the pages show generic placeholder text for both known and unknown usernames. The task is to ensure known usernames display mock profile details and unknown usernames show a not-found page.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert Next.js developer. The goal is to fix a bug in the SecureBananaLabs/bug-bounty repository, specifically issue #2763. The `/freelancers/[username]` route in `apps/web` incorrectly displays placeholder text instead of dynamic mock profile data. Fork the repository and implement the following: 1. In `apps/web/src/app/freelancers/[username]/page.tsx` (or equivalent file handling the route), retrieve the `username` from the route parameters. 2. Import the mock freelancer data from `apps/web/lib/mock.ts`. 3. Implement logic to search for a freelancer matching the `username` in the mock data. 4. If a match is found, render the profile page with the freelancer's actual skills and hourly rate from the mock data. 5. If no match is found for the `username`, render a clear 'not found' fallback component (e.g., 'Freelancer not found'). 6. Ensure the UI components dynamically display the mock data fields like `skills` and `hourlyRate` where appropriate. Use Next.js 16 App Router, React 19, and Tailwind v4 principles. Provide the corrected code for the relevant file(s) and any new components.
Bounty (amount on the issue). Parent bounty: #743 ## Bug The `/freelancers/[username]` route currently renders placeholder text with the requested username instead of looking up the selected freelancer from `apps/web/lib/mock.ts`. Search cards link to `/freelancers/maya-dev` and `/freelancers/jordan-ux`, but the profile page does not show the matching skills or hourly rate. Unknown usernames also appear successful. ## Expected - Known freelancer usernames render the matching mock profile details. - The profile page exposes useful skills/rate context instead of generic placeholder copy. - Unknown usernames render a clear not-found fallback. ## Scope Keep the fix limited to the web freelancer profile route unless the existing mock data needs a minimal shape adjustment.
Standard for any dev work.
Standard Next.js development environment.
Required for cloning and managing the repository.
The project uses Next.js, a core part of the operator's stack.
Comment on GitHub issue #2763, then open a draft Pull Request to the main repository when ready.
“I've reviewed issue #2763 and understand the scope. I have a working prototype of the fix for the freelancer profile rendering issue, ensuring mock data is displayed and unknown users get a proper fallback. I'll open a draft PR shortly.”
Open the original ↗