Repository navigation
feat: rebuild Asset Detail page into two-column Layout B - #144
Merged
Merged
Conversation
… useAssetDetailData
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>
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
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).useAssetDetailDatahook (fixes the prior hardcodeddisplay_currency=USD).RecentActivitycard (max 5 + "View all N" link) replacing the full transactions table.components/asset-detail/.Tests
mergeRecentActivityunit tests (merge/sort/slice/id/dividend-default).RecentActivitycomponent tests (title, rows, amount sign/color, meta-line branching, View-all visibility, empty state, non-finite-amount guard).AssetDetailpage orchestration tests (loading/error/back-nav, position gating, all three dividend-gating cases).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