Skip to content

feat: rebuild Asset Detail page into two-column Layout B - #144

Merged
terranalon merged 8 commits into
mainfrom
feat/asset-detail-page
Jul 4, 2026
Merged

terranalon merged 8 commits into
mainfrom
feat/asset-detail-page

Conversation

@terranalon

Copy link
Copy Markdown
Owner

Summary

Rebuilds the Asset Detail page from the legacy tab-based design into the no-tabs, two-column Layout B from issue #130 (mocks/asset-detail-playground.html).

  • Extracts all fetching into a new useAssetDetailData hook (fixes the prior hardcoded display_currency=USD).
  • Adds a prop-driven RecentActivity card (max 5 + "View all N" link) replacing the full transactions table.
  • Reuses the six existing asset-detail components unchanged.
  • Adds a barrel export for components/asset-detail/.

Tests

  • mergeRecentActivity unit tests (merge/sort/slice/id/dividend-default).
  • RecentActivity component tests (title, rows, amount sign/color, meta-line branching, View-all visibility, empty state, non-finite-amount guard).
  • AssetDetail page orchestration tests (loading/error/back-nav, position gating, all three dividend-gating cases).
  • Full frontend suite green (264 tests).

Reviewer note

Visual matrix walk against mocks/asset-detail-playground.html (asset classes, dark/light theme, responsive single-column collapse) to be confirmed manually.

Closes #130

🤖 Generated with Claude Code

terranalon and others added 8 commits June 13, 2026 13:38
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make AssetDetail a thin orchestrator over useAssetDetailData: render
breadcrumb, AssetHero, optional PositionStrip, and a two-column layout
(left: chart + stats; right aside: recent activity + about + dividend).
Remove the old tabs/Transactions-table code and inline fetching.

Rewrite the page test to mock the hook and assert orchestration/layout
instead of the removed tab/table behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@terranalon
terranalon merged commit f14244a into main Jul 4, 2026
4 checks passed
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.

feat: Implement asset detail page

1 participant