Skip to content

feat(transaction-view): optional amount accessory SF Symbol - #10

Merged
QuantumExplorer merged 2 commits into
masterfrom
feat/amount-accessory-icon
Aug 10, 2026
Merged

feat(transaction-view): optional amount accessory SF Symbol#10
QuantumExplorer merged 2 commits into
masterfrom
feat/amount-accessory-icon

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Aug 10, 2026

Copy link
Copy Markdown
Member

What

TransactionView gains an optional amountAccessorySystemImage — an SF Symbol rendered immediately before the trailing DashAmount, in the secondary tone. Meant for rows whose amount carries no direction, e.g. a circulating-arrows glyph on a wallet-internal transfer rendered with amountSign: .none (dashwallet-ios uses it for identity top-ups, to-Shielded/to-Platform transfers, self-sends, and CoinJoin mixing groups so they stop reading like external receives).

Includes a preview ("Internal transfer — amount accessory").

Note

This branch also carries the fix/textfield-prompt-type commit (449c6ce) — current master does not compile for an iOS consumer (SearchBar passes some View where TextField(prompt:) requires Text). If that branch's PR merges first, this one rebases cleanly.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Transaction views can now display an optional icon beside the amount, supporting clearer visual context for transfers and other transaction types.
  • Style Improvements

    • Updated address field and search field prompts to use the standard subhead font styling while preserving placeholder colors.
    • Improved consistency across iOS 17 input components.

Screenshot

In dashwallet-ios: the internal "Identity top-up" row uses the accessory (arrow.triangle.2.circlepath, amountSign: .none) while the external "Sent" row keeps its sign:

History rows: Identity top-up with circulating-arrows accessory and unsigned amount, next to a Sent row with a signed amount

(image served from the pr10-assets orphan branch — delete the branch after merge if unwanted)

QuantumExplorer and others added 2 commits August 10, 2026 17:42
An SF Symbol rendered immediately before the trailing DashAmount, in
the secondary tone — for rows whose amount carries no direction, e.g. a
circulating-arrows glyph on a wallet-internal transfer rendered with
amountSign: .none.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The dashFont conversion turned two TextField prompts into some View. A prompt
must be a Text, so both call sites failed to compile:

  SearchBar.swift:146      Cannot convert value of type 'some View' to Text
  AddressFieldView.swift:126

Reverts those two to .font(Font.dash.subhead), which is the correct call here
regardless — dashFont pairs a font with a line height, and a line height cannot
be applied to Text in the first place.

Both files are wrapped in #if canImport(UIKit), so swift build on macOS never
compiled them. Verified with xcodebuild against an iOS destination.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR updates iOS 17 prompt font modifiers and adds an optional SF Symbol accessory before transaction amounts in TransactionView.

Changes

UI component updates

Layer / File(s) Summary
iOS 17 prompt font updates
Sources/DashUIKit/Components/AddressFieldView.swift, Sources/DashUIKit/Components/SearchBar.swift
Address and search prompts now use Font.dash.subhead with SwiftUI’s standard font modifier.
Transaction amount accessory
Sources/DashUIKit/Components/Transaction/TransactionView.swift
TransactionView accepts an optional SF Symbol, renders it before the amount, and includes an internal-transfer preview.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: jeanpierreroma

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding an optional amount accessory SF Symbol to TransactionView.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/amount-accessory-icon

Comment @coderabbitai help to get the list of available commands.

@romchornyi romchornyi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@QuantumExplorer
QuantumExplorer merged commit 88bf41f into master Aug 10, 2026
4 checks passed
@QuantumExplorer
QuantumExplorer deleted the feat/amount-accessory-icon branch August 10, 2026 11:13
QuantumExplorer added a commit to dashpay/dashwallet-ios that referenced this pull request Aug 10, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
QuantumExplorer added a commit to dashpay/dashwallet-ios that referenced this pull request Aug 10, 2026
…a sign (#952)

* feat(home): internal transfers render a circulating-arrows amount, not a sign

An identity top-up read "+2 Đ" — like an external receive — when it
only moved the wallet's own funds. Every internal history row now
renders the amount signless with a circulating-arrows glyph before it
(DashUIKit's new TransactionView.amountAccessorySystemImage):

- main-feed rows with an internalTransferRoute (identity top-up /
  registration / invitation, to-Shielded, Shielded payout, to-Platform,
  self-sends)
- internal shielded-activity rows (already signless; now carry the glyph)
- the CoinJoin mixing group row

External sends and receives keep their +/- signs.

DashUIKit pin: master → feat/amount-accessory-icon (dashpay/DashUIKit#10,
which also carries the TextField-prompt fix master needs to compile for
iOS). Flip back to master once that PR merges.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: DashUIKit pin back to master (dashpay/DashUIKit#10 merged)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(ui): metadata precedence for the internal-transfer amount treatment

Merchant/gift-card metadata already wins over the route icons and title
on a history row; give the amount the same precedence — the signless
circulating-arrows treatment applies only to metadata-less internal
moves. (No regression test: the unit-test target is pre-existing broken;
verified by build + simulator smoke.)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

3 participants