Skip to content

v3.7.1: Sell Guidance and Live Market Stats Fixes

Choose a tag to compare

@pwdel pwdel released this 16 Jul 23:43
· 11 commits to main since this release
a1f6af4

Summary

Patch release for fixes landed after v3.7.0.

This is v3.7.1, not v3.8.0, because the changes are bug fixes and a dependency bump rather than new feature work.

Fixes

  • Fixed sell-share error presentation so valid 422 business failures no longer surface to users as raw messages like Sale quote failed (422): INSUFFICIENT_SHARES.
  • Added user-facing backend guidance for sell INSUFFICIENT_SHARES responses while preserving the stable 422 failure reason contract.
  • Confirmed the unlocked-share rule: older value unlocked by a later different-user buy remains sellable, while the latest top contribution remains locked until another user buys after it.
  • Fixed market details rendering so live market stats remain visible when cached summary read models are stale.

Maintenance

  • Bumped golang.org/x/net.

Verification

  • go test ./handlers/bets/selling ./internal/domain/math/positions ./internal/domain/bets
  • go test ./... from backend
  • npm ci && npm run build from frontend
  • Live Docker stack smoke:
    • ./SocialPredict up
    • ./SocialPredict dev-bootstrap-users
    • node integrationtest/scripts/sell-shares-two-share-cap.mjs --base-url http://localhost:8080 --api-prefix /v0 --artifact integrationtest/artifacts/sell-shares-two-share-cap-e2e-local.json
    • Result: 45 passed, 0 failed
  • Temporary headless browser smoke against http://localhost:5173:
    • locked-share UI shows guidance for the real 422 quote response
    • same-side follow-up unlock shows Sale Preview
    • opposite-side follow-up unlock shows Sale Preview
    • raw Sale quote failed (422): / INSUFFICIENT_SHARES text does not appear in the UI

Commits Since v3.7.0

  • a1f6af40 fix: keep live market stats when summaries are stale (#775)
  • 548b2654 fix: show sell share guidance for insufficient shares (#777)
  • f8749495 Chore(deps): Bump golang.org/x/net (#776)