Skip to content

Add offer activity history to the offer page - #202

Merged
lilbonekit merged 6 commits into
devfrom
feat/offer-activity
Nov 19, 2026
Merged

lilbonekit merged 6 commits into
devfrom
feat/offer-activity

Conversation

@nikita1tup

@nikita1tup nikita1tup commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds an Activity section to the offer page: a timeline of everything that happened to the offer, plus a details modal for each event.

Stacked on #201 (base: feat/offer-page). The Activity block follows the final design. The rest of the page is still pre-design (see #201).

What changed

  • Timeline (pages/Offer/components/Activity/): built from the indexer's offer data (utxos, repayments, withdrawals), sorted by block height. Events: created, accepted, principal claimed, partial/full repayment, partial/full withdrawal, cancelled, liquidated.
  • Pending txs: the user's in-flight transactions for this offer show as pending rows ("Waiting for confirmation…") until the indexer picks them up.
  • Event modal: clicking a row opens details: amount, offer changes (debt, collateral, vault balance before → after) and on-chain info (wallet, txid, block, with copy and explorer links).
  • Small shared changes: block explorer URL helper, scriptPubkeyToAddress split out of formatScriptPubkeyAsAddress, new icons, a DetailsPanel wrap fix for long values.

Screenshots

What Screenshot
Activity timeline
Full lifecycle of one offer, including two partial repayments. Each row opens a details modal.
01-activity
Created
Offer terms at creation: asked principal, interest split, protocol fee, deadline.
02-modal-created
Accepted
Principal supplied by the lender, resulting debt split into principal and interest, funding wallet.
03-modal-accepted
Full withdrawal
Lender vault balance before → after, destination wallet, tx and block links.
04-modal-full-withdrawal

Known limitations

  • The wallet shown in the event modal is the participant's address, not the actual recipient or funder of that tx. The indexer doesn't expose those yet (TODO in code).
  • Repayment details don't split the amount into lender vault and protocol fee yet. Same reason: waiting on an indexer field.

Testing

Tested on Liquid testnet together with #201: happy path, cancel and liquidation, plus partial repayments. Every step appears in Activity with correct amounts, and pending rows are replaced by indexed events after confirmation.

Comment thread web/src/pages/Offer/helpers.ts Resolved
Comment thread web/src/components/DetailsPanel.tsx Resolved
@ardier16
ardier16 removed their request for review November 19, 2026 15:43
Base automatically changed from feat/offer-page to dev November 19, 2026 16:15
@lilbonekit
lilbonekit requested a review from Hrom131 as a code owner November 19, 2026 16:15
# Conflicts:
#	web/src/pages/Offer/components/OfferSidebar.tsx
#	web/src/pages/Offer/helpers.ts
#	web/src/pages/Offer/index.tsx
@lilbonekit
lilbonekit merged commit 6ceafba into dev Nov 19, 2026
@lilbonekit
lilbonekit deleted the feat/offer-activity branch November 19, 2026 16:21
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