Skip to content

Conversation

@silent-cipher
Copy link
Collaborator

@silent-cipher silent-cipher commented Jan 15, 2026

📝 Description

This PR adds a "Check Activity" column to both the warm storage service and service providers table, allowing users to view provider activity on pdp scan directly from the providers table.

  • Type: New feature

🛠️ Key Changes

  • Added checkActivityUrl field to provider schema - Made it a required field
  • Create getCheckActivityUrl utility function - Url construction logic
  • Populate checkActivityUrl during provider fetching
  • Enable Check Activity column in warm storage and service providers table

📸 Screenshots

Screenshot 2026-01-15 at 12 12 49 PM Screenshot 2026-01-15 at 12 13 18 PM

Closes #131

@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
filecoin-cloud Ready Ready Preview, Comment Jan 15, 2026 7:40am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a "Check Activity" column to provider tables that links to PDP Scan explorer for viewing provider activity. The implementation introduces a utility function to construct PDP Scan URLs and enriches provider data during the fetch process.

Changes:

  • Added getCheckActivityUrl utility function to construct PDP Scan URLs for providers
  • Made checkActivityUrl a required field in the provider schema
  • Updated provider enrichment logic to populate the checkActivityUrl field
  • Enabled the "Check Activity" column in both warm storage and service provider tables

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utils/provider-urls.ts New utility function to construct PDP Scan activity URLs
src/services/providers/types.ts Renamed type and updated to exclude both softwareVersion and checkActivityUrl from base data
src/services/providers/processor.ts Updated type reference from ProviderWithoutSoftwareVersion to BaseProviderData
src/services/providers/index.ts Renamed enrichment function and added checkActivityUrl population logic
src/services/providers/contract.ts Updated type references to use BaseProviderData
src/schemas/provider-schema.ts Changed checkActivityUrl from optional to required field
src/app/warm-storage-service/data/column-definition.tsx Uncommented and enabled Check Activity column
src/app/service-providers/data/column-definition.tsx Uncommented and enabled Check Activity column

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +98 to +101
const checkActivityUrl = getCheckActivityUrl(
network,
provider.payeeAddress,
)
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The checkActivityUrl is computed for every provider in a batch, but this is a synchronous operation that doesn't need to be inside the async map. Consider moving it outside the Promise.all to improve clarity and potentially performance, or compute it in a separate pass before the async operations.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree that this is synchronous operation but separation would require two iterations without meaningful benefit

@BigLep BigLep requested a review from mirhamasala January 15, 2026 07:16
@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting review in FOC Jan 15, 2026
@BigLep BigLep added this to the M4: Filecoin Service Liftoff milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

Pull data for Check Activity URL both on Warm Storage and Service Providers

3 participants