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.
Resolves #135
📝 Description
This pull request introduces a new
CompactPeerIDcomponent to improve how Peer IDs are displayed and interacted with across the application.Problem Solved:
Long Peer IDs cluttered table layouts, were difficult to read, and required multiple steps to copy. The new component resolves these issues by providing a cleaner UI and faster interaction.
Type: New feature / UI enhancement / Refactor
🛠️ Key Changes
Introduced the new
CompactPeerIDcomponent with:src/components/CompactPeerID.tsx)Added
truncatePeerIDutility for consistent truncation logicsrc/utils/truncate-peer-id.ts)Updated Service Providers table to replace
PeerIDwithCompactPeerIDand applied max column sizingsrc/app/service-providers/data/column-definition.tsx)Updated Warm Storage Service table to use
CompactPeerIDsrc/app/warm-storage-service/data/column-definition.tsx)📌 To-Do Before Merging
truncatePeerIDCompactPeerID(optional)🧪 How to Test
Setup
Pull the branch locally
Run the dev server:
Steps to Test
Expected Results
12D3K...8H9Q)Additional Notes
📸 Screenshots