Skip to content

chore: portfolio qol fixes - #2207

Merged
fayi-da merged 5 commits into
mainfrom
fayi/1795-qol-fixes
Jul 30, 2026
Merged

chore: portfolio qol fixes#2207
fayi-da merged 5 commits into
mainfrom
fayi/1795-qol-fixes

Conversation

@fayi-da

@fayi-da fayi-da commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Addressing some issues in #2149

Copilot AI review requested due to automatic review settings July 28, 2026 20:20
@fayi-da
fayi-da requested a review from a team as a code owner July 28, 2026 20:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Improves the Portfolio example’s UX and reliability around wallet connectivity and transaction history labeling, addressing remaining non-ideal behaviors tracked under #1795.

Changes:

  • Refactors ConnectionProvider into focused hooks and expands query invalidation to refresh holdings after executed transactions.
  • Updates transaction history activity labeling to distinguish DevNet faucet taps, rewards collection, and traffic purchases.
  • Makes the “next” transfer instrument selector resilient to missing instrument metadata (symbol/name/decimals) and adjusts types accordingly.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
examples/portfolio/tests/transaction-history.spec.ts Updates E2E expectations for faucet transactions to display “DevNet tap”.
examples/portfolio/src/contexts/ConnectionProvider.tsx Refactors connection logic into hooks; adds holdings invalidation on executed tx events.
examples/portfolio/src/components/next/transfer-types.ts Allows decimals to be undefined to match potentially missing instrument metadata.
examples/portfolio/src/components/next/instrument-select.tsx Adds fallbacks when holding.instrument metadata is absent.
examples/portfolio/src/components/dashboard/transaction-history-utils.ts Adds richer activity labels for Merge/Split rewards, Mint (DevNet tap), and Burn (traffic purchase).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/portfolio/src/contexts/ConnectionProvider.tsx
Copilot AI review requested due to automatic review settings July 28, 2026 22:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

alexmatson-da
alexmatson-da previously approved these changes Jul 28, 2026
Copilot AI review requested due to automatic review settings July 29, 2026 10:39
@fayi-da
fayi-da force-pushed the fayi/1795-qol-fixes branch from 59044f8 to 791e8a0 Compare July 29, 2026 10:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@fayi-da
fayi-da force-pushed the fayi/1795-qol-fixes branch 2 times, most recently from 7dfbe03 to 2c185a5 Compare July 29, 2026 11:29
@fayi-da
fayi-da requested review from a team and alexmatson-da July 29, 2026 12:15
@fayi-da
fayi-da enabled auto-merge (squash) July 29, 2026 14:03
fayi-da added 5 commits July 29, 2026 16:41
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Copilot AI review requested due to automatic review settings July 29, 2026 15:41
@fayi-da
fayi-da force-pushed the fayi/1795-qol-fixes branch from 2c185a5 to 8bd448d Compare July 29, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

examples/portfolio/src/components/next/instrument-select.tsx:55

  • The fallback label for instruments without metadata uses only holding.instrumentId.id, but elsewhere in the portfolio UI id || admin is used to avoid rendering an empty label when id is missing/blank. Consider applying the same fallback here for both symbol and name.
                        symbol: instrument?.symbol ?? holding.instrumentId.id,
                        name: instrument?.name ?? holding.instrumentId.id,

@fayi-da
fayi-da merged commit 938e9d9 into main Jul 30, 2026
28 checks passed
@fayi-da
fayi-da deleted the fayi/1795-qol-fixes branch July 30, 2026 18:36
mateuszpiatkowski-da pushed a commit that referenced this pull request Aug 10, 2026
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
mateuszpiatkowski-da pushed a commit that referenced this pull request Aug 13, 2026
Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.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.

4 participants