Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (7)
📝 WalkthroughWalkthroughAdds wallet analytics UI (aggregated yearly balance card and balance history chart), witness voter browsing (voters dialog + column), a new polls module and poll vote mutation, multiple SDK REST-backed query helpers/types and query-key updates, dynamic-props/hardfork propagation, chat image safety, and assorted import/fixture/test updates. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as BalanceHistoryChart (Client)
participant RQ as React Query
participant API as hafah REST API
participant Transform as Converter (vestsToHp / parse)
participant Chart as lightweight-charts
UI->>RQ: useInfiniteQuery(getBalanceHistoryInfiniteQueryOptions(username, coinType))
activate RQ
RQ->>API: GET /accounts/{username}/operations?page=...
API-->>RQ: paginated BalanceHistoryEntry pages
RQ-->>UI: pages + meta
deactivate RQ
UI->>Transform: map entries -> { time, value } (vests→HP or raw/1000)
Transform-->>UI: chartData[]
UI->>Chart: create chart + line series
Chart-->>UI: chart instance ready
UI->>Chart: setData(chartData)
Note over UI,Chart: subscribe visibleRange changes
alt user scrolls near left edge
UI->>RQ: fetchNextPage()
RQ->>API: GET /accounts/{username}/operations?page=next
API-->>RQ: next page
RQ-->>UI: appended pages
UI->>Chart: updateData + fitContent()
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Improvements
Localization