Skip to content

feat(lease): enterprise auction settlement & lifecycle infrastructure - #200

Merged
rajputomsingh merged 2 commits into
masterfrom
feat/enterprise-lease-lifecycle-and-agreement-management
Aug 14, 2026
Merged

feat(lease): enterprise auction settlement & lifecycle infrastructure#200
rajputomsingh merged 2 commits into
masterfrom
feat/enterprise-lease-lifecycle-and-agreement-management

Conversation

@rajputomsingh

Copy link
Copy Markdown
Owner

Summary

  • Implemented automated auction settlement and winner resolution
  • Added transactional bid → winner → lease execution flow
  • Hardened application withdrawal and lifecycle state transitions
  • Fixed Decimal/string coercion in bid calculation and validation
  • Added settlement API and auction execution services
  • Added production-safe Prisma migrations and marketplace indexes
  • Improved notification integration across auction lifecycle events

Technical

  • Prisma/PostgreSQL transactional persistence
  • Idempotent auction settlement
  • Indexed auction/listing queries
  • Server-side bid validation and numeric normalization
  • Protected settlement endpoint
  • Forward-only production migrations

Validation

  • pnpm prisma validate
  • pnpm prisma migrate status
  • Production database migrations applied ✅
  • pnpm build

- Fix Number() conversion in useAuction hook for highestBid and bidIncrement
- Fix Number() conversion in AuctionRoomClient for minNextBid
- Fix Number() conversion in marketplace service placeBid
- Fix BidForm safeMinBid and safeIncrement with Number()
- Fix validation schema to use z.coerce.number()
- Fix API route to force Number on amount
- Remove deleted contact-protection utility
- Update notificationHelpers

Bid minimum now correctly calculates as basePrice + bidIncrement (85324)
instead of string concatenation (820003323.5)
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fieldly Ready Ready Preview Aug 14, 2026 7:37pm

@rajputomsingh rajputomsingh self-assigned this Aug 14, 2026
@rajputomsingh rajputomsingh added bug Something isn't working enhancement New feature or request release:vanguard Trust infrastructure, payments, verification, and leasing workflows. labels Aug 14, 2026
@rajputomsingh rajputomsingh added this to the Vanguard (v0.7.0-beta) milestone Aug 14, 2026
@rajputomsingh
rajputomsingh merged commit d39be2c into master Aug 14, 2026
2 of 5 checks passed
@rajputomsingh

Copy link
Copy Markdown
Owner Author

Auction settlement infrastructure is now in place — enforcing a deterministic bid → winner → lease execution lifecycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request release:vanguard Trust infrastructure, payments, verification, and leasing workflows.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant