This is a bounty to fix a bug in a job detail page. The `/jobs/[id]` route incorrectly renders placeholder text instead of dynamic job data from a mock file. The task involves ensuring known job IDs display correct details and unknown IDs show a proper 'not found' fallback.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert Next.js 16 App Router, React 19, Tailwind v4, and Node.js developer. I need to complete a GitHub bounty from SecureBananaLabs/bug-bounty, specifically issue #2755, which is titled 'Job detail page should render matching mock job and unknown fallback'. Your task is to implement the fix for the `/jobs/[id]` route in the `apps/web/` directory. First, fork the SecureBananaLabs/bug-bounty repository. Identify the component responsible for rendering the job detail page. Then, implement logic to read the `id` from the route parameters. Use this `id` to look up the corresponding job details (title, budget, etc.) from `apps/web/lib/mock.ts`. If a matching job is found, render its specific details dynamically on the page. If no job matches the `id`, display a clear 'Job Not Found' message. Ensure the solution adheres strictly to the scope described in the bounty, keeping changes limited to the web job detail route and potentially adjusting the mock data shape if absolutely necessary. Provide the necessary code changes within the context of the existing project structure.
Bounty (amount on the issue). Parent bounty: #743 ## Bug The `/jobs/[id]` route currently renders the requested route id as placeholder text instead of looking up the selected job from `apps/web/lib/mock.ts`. Existing job cards link to `/jobs/job-101`, `/jobs/job-102`, and `/jobs/job-103`, but the detail page does not show the matching job title or budget. Unknown job ids also look successful, which gives clients no clear fallback. ## Expected - Known job ids render the matching mock job title and budget. - The detail page exposes useful project context instead of generic placeholder copy. - Unknown job ids render a clear not-found fallback without pretending a real job exists. ## Scope Keep the fix limited to the web job detail route and mock data shape if needed.
Standard for any GitHub-based development.
Required for Next.js development.
Standard for cloning and managing repositories.
Publicly accessible on GitHub for forking.
Comment directly on GitHub issue #2755 in the SecureBananaLabs/bug-bounty repository, then open a draft Pull Request referencing the issue.
“I've reviewed issue #2755 regarding the job detail page rendering. I have a working solution that correctly displays mock job data for known IDs and a 'not found' fallback for unknown ones. I'll open a draft PR shortly for your review, adhering to the specified scope.”
Open the original ↗