refactor: remove BlockAssemblyDetails and improve UI components#8
Conversation
…ions Replace detailed block assembly state with simpler subtree_count field in websocket notifications to reduce message size and coupling
Add icon button to clear sorting on network nodes table and ensure current node appears at top only when no user sorting is active
Keep ancestors page accessible via direct URL but remove from menu
Replace custom hash rendering with reusable RenderHashWithMiner component to provide consistent tooltip display and copy-to-clipboard functionality across the admin page's recently invalidated blocks table.
…l pointer panic Remove BlockAssemblyDetails field from NodeStatusMessage struct and eliminate attempts to access SubtreeCount/TxCount fields that caused segmentation fault in handleNodeStatusTopic. Also remove unused blockassembly_api import.
|
/claude-review |
|
Claude finished @oskarszoon's task —— View job Code Review Complete ✅Summary This PR successfully removes the Backend Changes ✅services/p2p/Server.go & HandleWebsocket.go
UI Changes ✅Network Table (connected-nodes-card/index.svelte & network/+page.svelte)
Admin Page (admin/+page.svelte)
Layout (+layout.svelte)
ObservationsCode Quality
Potential Considerations (not blocking)
Test Plan CoverageThe test plan covers all the changes appropriately:
RecommendationApprove ✅ - The changes are well-implemented, maintain backward compatibility (thanks to Branch: |
Summary
Backend Changes
BlockAssemblyDetailsfield from node status notifications and removed unused codeUI Changes
RenderHashWithMinercomponent for consistent tooltip and copy functionalityTest plan
make lint)/ancestorsbut not in sidebar