Skip to content

feat: add Service Offered to Service Providers#214

Merged
rjan90 merged 6 commits intomainfrom
feat/service-offered-column
Jan 30, 2026
Merged

feat: add Service Offered to Service Providers#214
rjan90 merged 6 commits intomainfrom
feat/service-offered-column

Conversation

@silent-cipher
Copy link
Copy Markdown
Collaborator

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

📝 Description

This PR add a Service Offered column to service providers table.

  • Type: New feature

🛠️ Key Changes

  • Add Service Offered column to service providers table - Dispalys provider service tier badges ( Warm & PDP Storage, PDP Storage Only, or Inactive )
  • Implemented getServiceTier() utility function - to determine consistent tier
  • Added custom sorting for Service Offered column - enables sorting by tier ( Warm & PDP > PDP only > Inactive )
  • Added Service Offered filter

📸 Screenshots

Screenshot 2026-01-15 at 4 19 39 PM

Closes #133

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 15, 2026

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

Project Deployment Actions Updated (UTC)
filecoin-cloud Ready Ready Preview, Comment Jan 30, 2026 10:04am

Request Review

@FilOzzy FilOzzy added this to FOC Jan 15, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Jan 15, 2026
@silent-cipher silent-cipher requested a review from Copilot January 15, 2026 11:01
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Jan 15, 2026
@rjan90 rjan90 requested review from mirhamasala and removed request for Copilot January 15, 2026 11:03
Copy link
Copy Markdown
Contributor

@barbaraperic barbaraperic left a comment

Choose a reason for hiding this comment

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

Works well 🎉, left a few comments

Comment thread src/components/ServiceOffered.tsx Outdated
Comment thread src/app/service-providers/hooks/useFilterQueryState.ts
id: keyof ServiceProvider
value: Array<string> | Range
id: keyof ServiceProvider | 'serviceOffered'
value: Array<string> | Array<ServiceTier> | Range
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The ServiveProviderColumnFilters type defines value: Array<ServiceTier>, but at runtime serviceTier is actually Array<number> (e.g., [1] instead of [ServiceTier.PDP_ONLY])?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This looks like expected behavior. ServiceTier is a numeric enum, so Array<ServiceTier> is represented as Array<number> at runtime (e.g. [ServiceTier.PDP_ONLY][1]). The typing is still correct.

Comment thread src/utils/service-tier.ts Outdated
@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC Jan 26, 2026
@rjan90
Copy link
Copy Markdown
Contributor

rjan90 commented Jan 29, 2026

@barbaraperic Anything blocking merging this?

@barbaraperic
Copy link
Copy Markdown
Contributor

@barbaraperic Anything blocking merging this?

Looks good to me 👍

@rjan90
Copy link
Copy Markdown
Contributor

rjan90 commented Jan 30, 2026

@silent-cipher seems to be a small conflict coming from the other PR that got merged, want to resolve this so we can get it merged?

@rjan90 rjan90 merged commit 1b26b26 into main Jan 30, 2026
6 checks passed
@rjan90 rjan90 deleted the feat/service-offered-column branch January 30, 2026 10:20
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Jan 30, 2026
@github-actions github-actions Bot added size/L and removed size/L labels Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

Service Offered should be added to Service Providers

4 participants