Repository navigation
v3.7.1: Sell Guidance and Live Market Stats Fixes
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_SHARESresponses 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/betsgo test ./...frombackendnpm ci && npm run buildfromfrontend- Live Docker stack smoke:
./SocialPredict up./SocialPredict dev-bootstrap-usersnode 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_SHAREStext does not appear in the UI