Skip to content

Conversation

@marcocastignoli
Copy link
Member

@netlify
Copy link

netlify bot commented Nov 19, 2025

Deploy Preview for verify-sourcify-ui ready!

Name Link
🔨 Latest commit fab9bf6
🔍 Latest deploy log https://app.netlify.com/projects/verify-sourcify-ui/deploys/69256b414279b20008877a89
😎 Deploy Preview https://deploy-preview-14--verify-sourcify-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

<p className="text-sm text-gray-500">Statuses refresh every {EXTERNAL_VERIFICATION_STATUS_REFRESH_RATE_SECONDS} seconds.</p>
</div>
<div className="space-y-4">
{Object.entries(jobData.externalVerifications)
Copy link
Member

Choose a reason for hiding this comment

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

Can we order the verifiers? I would do it by adoption, which should be in this order: Etherscan, Blockscout, Routescan.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would actually put Etherscan last because it's not part of the verifier alliance :)

</div>
)}

{/* External Verifier Statuses */}
Copy link
Member

Choose a reason for hiding this comment

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

If it's easy, can we maybe refactor the new part of the page into a component? The JobDetails component grew quite big imo

const externalVerifierStatusesRef = useRef<ExternalVerifierStatusMap>({});
const { serverUrl } = useServerConfig();
const hasExternalVerificationData = hasAllRequiredExternalVerifications(jobData?.externalVerifications);
const isJobFullyCompleted = Boolean(jobData?.isJobCompleted) && hasExternalVerificationData;
Copy link
Member

Choose a reason for hiding this comment

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

Is there a scenario where we wouldn't store data for all external verifiers? I think requiring the data to be present isn't perfect.

Copy link
Member

Choose a reason for hiding this comment

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

I found this also makes the page refetching data for old jobs which don't have external verifications for an indefinite amount of time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a scenario where we wouldn't store data for all external verifiers? I think requiring the data to be present isn't perfect.

I think we don't have to support the case in which we change settings in Sourcify (e.g. we disable a specific verifier). UI should just mirror whatever configuration is currently in use. If we change the config of server, then we manually update also UI. The alternative would be to returned the list of enabled storage services so the UI can adapt.

I found this also makes the page refetching data for old jobs which don't have external verifications for an indefinite amount of time.

Right it makes sense. I think we should limit with a maximum amount of re-fetch

@marcocastignoli marcocastignoli self-assigned this Nov 24, 2025
@marcocastignoli marcocastignoli moved this to Sprint - In Progress in Sourcify Public Nov 24, 2025
@marcocastignoli marcocastignoli moved this from Sprint - In Progress to Sprint - Needs Review in Sourcify Public Nov 25, 2025
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.

3 participants