feat: add shared transaction summary builder (Closes #90) - #209
Merged
El-swaggerito merged 1 commit intoJul 29, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #90
Adds a shared review-before-action
TransactionSummarymodel and builders for payment, anchor, and escrow preview screens, with web UI integration, fixtures, tests, and docs. Also restoresapps/web/components/ui.tsxandapps/web/app/assets/page.tsx, which were truncated onmainand blocked web typecheck/build.Issue scope
packages/typesTransactionSummary*+packages/validatorsTransactionSummarySchemapackages/validators/test/summary.test.tspaymentIntentToSummary,anchorRequestToSummary,anchorRecordToSummary,escrowMilestoneToSummaryinpackages/stellar-kit/src/summary.tspackages/stellar-kit/test/summary.test.tsanchor_config/anchor_record/unavailable/manual)TransactionSummaryPanelon payments, anchors, escrowapps/web/test/transaction-summary.test.tsdocs/transaction-summary.mdAffected packages / apps
apps/webpackages/typespackages/configpackages/fixturespackages/validatorspackages/stellar-kitpackages/anchor-utilscontracts/treasury-escrowdocs/examples/,scripts/check-examples.mtsTesting performed
pnpm --filter @anchorkit/types... buildpnpm --filter @anchorkit/validators... buildpnpm --filter @anchorkit/stellar-kit... buildpnpm --filter @anchorkit/stellar-kit test -- summary.test.ts(13 passed)pnpm --filter @anchorkit/validators test -- summary.test.ts examples.test.ts(25 passed)pnpm check:examples(19 examples, 0 failing)pnpm --filter @anchorkit/web test -- transaction-summary.test.ts(4 passed)pnpm --filter @anchorkit/web typecheckpnpm --filter @anchorkit/web buildCI status: Pending after PR open.
Screenshots / recordings
TransactionSummaryPanelon/payments,/anchors,/escrowSecurity impact
Defaults remain testnet-first. Summaries use public keys only; no secrets in fixtures.
Documentation impact
/docsupdated for this change.Maintainer Review Checklist (self-check)
PR self-check
Closes #90in the PR body.pnpm check:boundaries(run if reviewer requests; package source imports added within existing deps).pnpm contract:testN/A — no contract changes.Stellar network correctness
Anchor and SEP flow correctness
neverchecks used in operation headline switch.Payment intent and readiness correctness
PaymentIntentobjects.riskNotes.Soroban contract correctness (if
contracts/changed)Secret leakage (R0–R6)
Mainnet safety
Tests
Documentation
docs/transaction-summary.mdadded.