Skip to content

feat: add per-user betting limit nudge#425

Open
pq198363-ops wants to merge 1 commit into
Predictify-org:mainfrom
pq198363-ops:bounty-361-user-limit-nudge
Open

feat: add per-user betting limit nudge#425
pq198363-ops wants to merge 1 commit into
Predictify-org:mainfrom
pq198363-ops:bounty-361-user-limit-nudge

Conversation

@pq198363-ops

Copy link
Copy Markdown

Summary

  • Add a per-market userLimits store for daily limit, used amount, remaining allowance, and percentage helpers.
  • Surface a compact daily allowance nudge on market cards with an accessible progressbar.
  • Add focused store and widget tests plus documentation for the limit nudge behavior.

Closes #361

Validation

  • node node_modules/jest/bin/jest.js --runTestsByPath app/state/__tests__/userLimits.test.ts "app/(marketing)/_components/__tests__/markets-widget.test.tsx" --runInBand
  • node node_modules/eslint/bin/eslint.js "app/(marketing)/_components/markets-widget.tsx" "app/(marketing)/_components/__tests__/markets-widget.test.tsx" app/state/userLimits.ts app/state/__tests__/userLimits.test.ts
  • node node_modules/typescript/bin/tsc --noEmit --pretty false --skipLibCheck app/state/userLimits.ts
  • git diff --check

Full node node_modules/typescript/bin/tsc --noEmit --pretty false still fails on existing unrelated repository errors, including missing ResolutionPreview, ErrorBoundary, wallet modal symbols, badge variant typing, and existing PredictionCard identifiers.

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@pq198363-ops is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add per-user betting limit UI nudge on MarketCard

1 participant