Skip to content

Move offer details to a dedicated offer page - #201

Merged
lilbonekit merged 4 commits into
devfrom
feat/offer-page
Nov 19, 2026
Merged

lilbonekit merged 4 commits into
devfrom
feat/offer-page

Conversation

@nikita1tup

@nikita1tup nikita1tup commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Offer details move from the ?offer-id= modal to a dedicated page /app/offers/:offerId. This page is the base for the next PRs (activity, partial repay, charts).

What changed

  • Offer page (pages/Offer/): header with status, borrower and lender cards, stats (earnings, APR, term), and a sidebar with the deadline and one action button. The button opens the existing OfferActionModal.
  • Navigation: offers table and notifications now open the page. useOfferModal and the modal mount in AppLayout are removed.
  • Due dates: useBlockDate turns block heights into dates (esplora block timestamp, extrapolated for future blocks).
  • Utils: date and address formatters, computeAprAfterFees. AssetAmount moved to shared components.
  • Unrelated: simplicity/*/program.ts switched to load without debug symbols; indexer last_indexed_height bumped.

Testing

Tested on Liquid testnet with separate borrower and lender wallets, all actions driven from the new page. All flows pass:

  • Happy path: create → accept → claim principal → repay → claim
  • Cancel: create → cancel
  • Liquidation: create → accept → claim principal → past expiry → liquidate

Not in this PR

Final design, activity history, partial repay, loan risk bar, sidebar charts.

Comment thread web/src/utils/offers.ts Resolved
Comment thread web/src/pages/Offer/helpers.ts Resolved
Comment thread web/src/pages/Offer/index.tsx Resolved
Comment thread web/src/pages/Offer/index.tsx Resolved
@ardier16
ardier16 removed their request for review November 19, 2026 15:43
@lilbonekit
lilbonekit merged commit 5b3c460 into dev Nov 19, 2026
2 of 3 checks passed
@lilbonekit
lilbonekit deleted the feat/offer-page branch November 19, 2026 16:15
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.

2 participants