Phase 1 web app into main (scaffold, tax notice, CR2 plan sketch, Coinbase ramps behind flags) #5

Merged
Taskuler-bot merged 42 commits from feat/phase1-scaffold into main 2026-11-11 23:43:15 +00:00
Member

Brings main (initial commit 3343c68) up to feat/phase1-scaffold @ac0bf29, 25 commits.

Includes:

  • Phase 1 scaffold: Vite + React + wagmi/viem, wallet connection, task market, escrow flow, work history, with mock DataSource by default and an indexer stub.
  • Underscore GraphQL enums aligned with the Ponder API.
  • Builder tax notice on /withdraw and /history (merged in #3).
  • CR2 independent-review UI plan and mock sketch at /sketch/cr2, not in nav, matching contracts #5 @1f2e460 and #6 @c988b9c (merged in #3).
  • Coinbase Onramp/Offramp and screening gates, with VITE_COINBASE_RAMPS_ENABLED off by default and mock mode for preview (merged in #4).

Not included: ABIs from contracts #5/#6, which wait for those to merge. No deployed contract addresses.

Merging this does not deploy anything: Actions are off and there are no webhooks.

Brings main (initial commit 3343c68) up to feat/phase1-scaffold @ac0bf29, 25 commits. Includes: - Phase 1 scaffold: Vite + React + wagmi/viem, wallet connection, task market, escrow flow, work history, with mock DataSource by default and an indexer stub. - Underscore GraphQL enums aligned with the Ponder API. - Builder tax notice on /withdraw and /history (merged in #3). - CR2 independent-review UI plan and mock sketch at /sketch/cr2, not in nav, matching contracts #5 @1f2e460 and #6 @c988b9c (merged in #3). - Coinbase Onramp/Offramp and screening gates, with VITE_COINBASE_RAMPS_ENABLED off by default and mock mode for preview (merged in #4). Not included: ABIs from contracts #5/#6, which wait for those to merge. No deployed contract addresses. Merging this does not deploy anything: Actions are off and there are no webhooks.
- src/components/TaxNotice.tsx: adopted notice text (docs decisions/0005, Nov 7, 2026), shown on /withdraw and /history (connected and disconnected states)
- docs/cr2-independent-review-ui.md: CR2 plan (0007 "Open: build-task completion review"), wireframes, contract and indexer assumptions to confirm with Taskuler Contracts
- src/sketch/Cr2Sketch.tsx at /sketch/cr2: SKETCH, hardcoded mock data, not in nav, no contract or indexer calls
- Not deployed.
- docs/cr2-independent-review-ui.md: screens and flows mapped to ReviewerRegistry (ReviewerSet/ConflictSet/MinReviewerFeeSet, reviewerFee, canReview) and Market assignReviewer/reassignReviewer/submitRecommendation/executeRecommendation; answered vs open questions; indexer needs for Infra Compute Ops
- /sketch/cr2: reviewer list, Safe assign + fee quote, review deadline and objection countdowns, reassignment 0/2, no-show path, reviewer submit form (mock only, disabled)
- Outcome type gains reviewed (WorkHistory Outcome.Reviewed = 5); Work history shows "reviewed (independent review)"
- Fee %, review window, reassignment cap pending George. Not deployed.
- All earlier contract questions answered (execute emits JobResolved/Credited/WorkHistory; all money via claimable; fee carried on reassignment; reviewEndsAt/reviewDeadline formulas; dispute vs execute race; per-job reviewPeriod; assign only while Open)
- Reviewer fee DECIDED 5% / $50 min; PROVISIONAL defaults copied from PR #2 and #3 bodies
- BuilderBonus (PR #3) summary and UI plan (not built)
- ABIs not synced (stacked, unmerged); sync list noted
- Sketch: 50 USDC fee, race warning, hidden acceptDelivery/settlement note, reviewEndsAt no-show path. Not deployed.
- Funding: buy USDC with a Coinbase account, delivered to the customer's own wallet on Arbitrum, then Approve & post as usual. TaskulerMarket unchanged.
- /withdraw: cash out wallet USDC to a bank via Coinbase Offramp (session -> redirect -> status -> wallet send).
- server/: Fetch-style handlers (Node server + Vite dev plugin). CDP JWT via @coinbase/cdp-sdk/auth; v2 onramp sessions, v1 token for offramp.
- Screening (fail closed): OFAC SDN addresses (hourly, 2h max age), Chainalysis free API, country/region block, VPN/proxy/Tor block. Mock toggles.
- Wallet signature + CORS allowlist on session endpoints; clientIp never from X-Forwarded-For.
- .env.example placeholders only. vitest suite (19 tests). Preview script.
Credited now has uint8 reason (new topic hash); label each credit on
/withdraw and /history. Reviewer fee stays escrowed until resolution
(ReviewerFeeSettled). Review jobs never auto-release (reviewEndsAt =
uint256.max, releaseAfterReview reverts TooEarly); a lapsed review
(2 reassignments + missed deadline) goes to Kleros. Objection window
is the OBJECTION_WINDOW constant (5 days). BuilderBonus constructor
takes allocationVault; PERIOD follows the vault; ExcessReturned goes
only there.

ABIs are not synced; they will come from out/ after the contracts
merge. forge build at 9b2c41d succeeded.
Resolved Withdraw.tsx by keeping Coinbase cash-out and adding Credited.reason labels.
Build and tests stay green (npm run build, 19 tests). No force-push.
Ruling 0 now pays a reviewer who recommended 50% (DECIDED; verified in
PayoutLib at 1f2e460). A lapsed review has no Safe escalation duty;
the builder or customer may requestArbitration at any time after
delivery until execution, and reviewLapsed is not required. On ERC-20
jobs the filer bears the Kleros prepay. ABI unchanged.
Once COINBASE_RAMPS_MODE is live, the escrow screening gate applies to
post, bid and Market withdraw unless VITE_SCREENING_ENABLED=false.
Mock mode stays previewable with the flag set to true. The Coinbase
feature flag stays off by default. VPN/proxy/Tor (VH2) and Chainalysis
on top of OFAC (BS2) are decided; Syria stays on the geo-block default.
Bring in the CR2 plan and sketch updates for contracts #5 @1f2e460
and #6 @c988b9c (ruling 0 pays a 50% recommendation; no Safe lapse
duty; ERC-20 filer bears the Kleros prepay).
Approved by George, Nov 10, 2026, 9:39 PM CT.
Approved by George, Nov 10, 2026, 9:39 PM CT. VITE_COINBASE_RAMPS_ENABLED stays off by default.
george approved these changes 2026-11-11 23:34:34 +00:00
Reuse taskuler/landing design tokens, typography, logo, and component
styles so the mock preview matches taskuler.com. Header, nav, footer,
buttons, cards, forms and tables follow the landing visual system;
the mock Coinbase page keeps Coinbase's own look. Call the indexer
GraphQL API api.taskuler.com in the mock banner and docs. Mock mode
stays the default.
Post job is now a Markdown note with YAML properties, a live preview, [[wikilinks]], #tags, draft autosave, and .md import/export. A /post?draft= handoff prefills the editor from the Obsidian plug-in and never auto-submits. Approve & post is unchanged. Job pages render the note and show backlinks.
The shared input style was overriding the hidden file picker on Post job, and job pages were repeating #tags already rendered in the description.
The three panes are a tablist with arrow-key navigation, defaulting to Source. Edits stay in sync and the draft still autosaves. Escrow and Approve & post stay below the tabs. Validation errors put a marker on the Properties tab.
Properties stays an always-visible panel above a single editor. Source and
editable Live preview switch with an aria-pressed control or Ctrl/Cmd+E
(default Source). Live preview hides Markdown syntax except on the cursor
line and keeps YAML frontmatter out of the body via two-way stitch-back.
Global form input rules were stretching checkbox widgets to block
width, which pushed the box onto its own line.
The single aria-pressed button was easy to misread. Post job now uses a
Source | Preview radiogroup at the editor's top-right, with code and eye
icons, an accent fill on the active segment, and arrow-key movement.
Ctrl/Cmd+E still switches, and the tooltip names the shortcut.
Browse jobs with search, tag, budget range, deadline, status, and
funding-source (Treasury vs poster) filters. The active filters live
in the query string so a view can be shared or bookmarked.
Each card now shows whether escrow is funded, how many jobs the
poster has completed, and how many people have bid or are already
working it.
A connected wallet can rank the market against tags from its work
history (the mock preview falls back to sample interests). Filter
sets can be saved in localStorage and show how many new jobs match
since they were last opened.
The job page now shows acceptance criteria parsed from the note, a
posted → escrow funded → submitted → paid timeline, a local Q&A
thread, and related jobs from [[wikilinks]] and backlinks.
Jobs can be sorted by newest, highest pay, or ending soon, and the
market switches between cards and a compact list. Both layouts are
stored in the URL. j/k (or arrows) move between jobs, Enter opens
the focused job, and / focuses search, with a visible focus ring.
The market opens with open-job, in-escrow, and paid-out-this-week
totals computed by DataSource.marketStats(). The mock uses the shared
helper; the live path is documented as GraphQL against api.taskuler.com.
The market, job pages, and filters stay usable without a connected
wallet. Connect is requested only when posting, bidding, or
withdrawing. Jobs tagged first-job or good-first-task have a
dedicated, shareable filter.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!5
No description provided.