Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CapacityInfo): fix not found link to capacities #116

Merged
merged 5 commits into from
Nov 11, 2024
Merged

Conversation

MixailE
Copy link
Contributor

@MixailE MixailE commented Nov 8, 2024

No description provided.

Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
network-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 8:06am
network-explorer-stage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 8:06am
network-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 8:06am

Comment on lines 88 to 91
{peer.currentCapacityCommitment?.status && (
<CapacityStatus
status={peer.currentCapacityCommitment?.status}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe there should be a - like above in case there is no peer.currentCapacityCommitment
or there should be no - above. Would be nice to be at least consistent with how missing values look in UI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the code in this file to ensure consistent handling of missing values. Moving forward, I will apply this practice across other relevant sections to maintain uniformity

{/* Compute units */}
<Cell>
<Text size={12}>{peer.computeUnits.length}</Text>
</Cell>
{/* Current Capacity Commitment */}
{/* Status */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just remove this. Serves no purpose

Suggested change
{/* Status */}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that such comments are likely redundant and can be removed throughout the codebase

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left minor suggestions, didn't run the code, hopefully you checked it works
don't forget to remove this patch when deal-ts-clients is released
also in the future move these queries out of deal-ts-clients completely

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.

2 participants