Skip to content

Frontend: Implement "Submit Bid" Modal - #247

Closed
Johnpii1 wants to merge 10 commits into
DXmakers:mainfrom
Johnpii1:main
Closed

Frontend: Implement "Submit Bid" Modal#247
Johnpii1 wants to merge 10 commits into
DXmakers:mainfrom
Johnpii1:main

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

close #133

Description
Add a reusable SubmitBidModal component that implements a mobile-first, accessible dialog with keyboard/focus semantics, clear hover/focus/active states, and async loading feedback (apps/web/components/jobs/submit-bid-modal.tsx).
Introduce strict Zod validation and a payload builder via submitBidSchema and buildBidProposalPayload (apps/web/lib/validation/submit-bid.ts) and unit tests for validation and payload formatting (apps/web/lib/validation/submit-bid.test.ts).
Wire QueryClientProvider at the app level and use query/mutation hooks inside the modal for wallet lookup and bid submission (apps/web/components/providers.tsx and modal usage of useQuery/useMutation).
Replace the inline proposal form on the job details page with the modal wrapped in a component-level ErrorBoundary and add associated tests for modal behavior (apps/web/app/jobs/[id]/page.tsx, apps/web/components/error-boundary.tsx, apps/web/components/jobs/submit-bid-modal.test.tsx).
Add a local shim package to satisfy @tanstack/react-query hooks in this environment when registry installs were blocked, and update tsconfig/Vitest aliases to resolve it (packages/react-query/*, apps/web/tsconfig.json, apps/web/vitest.config.ts).

Testing
npm --prefix apps/web run lint executed and passed (one unrelated pre-existing ESLint warning reported).
Unit tests for the new schema and modal were added (apps/web/lib/validation/submit-bid.test.ts, apps/web/components/jobs/submit-bid-modal.test.tsx) but running npm --prefix apps/web run test -- submit-bid failed in this environment because vitest was not available (error: vitest: not found).
The code was type-checked via existing TypeScript config updates and test coverage targets were updated in vitest.config.ts (no coverage run completed due to the missing test runner).

@Johnpii1
Johnpii1 requested a review from soomtochukwu as a code owner April 24, 2026 09:21
@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@soomtochukwu soomtochukwu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls make sure that the CI checks pass

@Johnpii1 Johnpii1 closed this Apr 24, 2026
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.

Frontend: Implement "Submit Bid" Modal

2 participants