Skip to content

feat(network): default warm storage and providers to mainnet#268

Open
beck-8 wants to merge 1 commit intoFilOzone:mainfrom
beck-8:feat/default-mainnet-network
Open

feat(network): default warm storage and providers to mainnet#268
beck-8 wants to merge 1 commit intoFilOzone:mainfrom
beck-8:feat/default-mainnet-network

Conversation

@beck-8
Copy link

@beck-8 beck-8 commented Mar 18, 2026

📝 Description

  • default /service-providers and /warm-storage-service to chain=314 when missing

  • make Warm Storage contract addresses follow selected network

  • switch to shared network options with Mainnet shown first

  • remove temporary local NetworkSelector wrapper and use ui-filecoin selector

  • update mainnet RPC endpoint to https://api.node.glif.io/

📸 Screenshots

image image

- default /service-providers and /warm-storage-service to chain=314 when missing

- make Warm Storage contract addresses follow selected network

- switch to shared network options with Mainnet shown first

- remove temporary local NetworkSelector wrapper and use ui-filecoin selector

- update mainnet RPC endpoint to https://api.node.glif.io/
@vercel
Copy link

vercel bot commented Mar 18, 2026

@beck-8 is attempting to deploy a commit to the FilOz Team on Vercel.

A member of the Team first needs to authorize it.

@jennijuju jennijuju requested a review from mirhamasala March 18, 2026 20:59
@jennijuju
Copy link
Contributor

would like a review from @mirhamasala too

@jennijuju
Copy link
Contributor

can we add a 🏅 icon to those who are on the endorsed list and add a footnote explain what 🏅 means?

@BigLep BigLep added this to FOC Mar 19, 2026
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Mar 19, 2026
@github-project-automation github-project-automation bot moved this from 📌 Triage to ✔️ Approved by reviewer in FOC Mar 19, 2026
@BigLep BigLep requested a review from Copilot March 19, 2026 02:44
Copy link
Contributor

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 updates the app’s network behavior to default to Filecoin Mainnet (chain id 314) when no chain query param is provided, aligns Warm Storage contract addresses with the currently selected network, and consolidates network selection UI to use the shared @filecoin-foundation/ui-filecoin selector with Mainnet prioritized.

Changes:

  • Default /service-providers and /warm-storage-service to chain=314 via server-side redirects when the query param is missing.
  • Make Warm Storage contract address data depend on the selected network (via useNetwork + getNetworkId).
  • Replace the temporary local NetworkSelector wrapper with the shared selector + shared networkOptions (Mainnet shown first), and update Mainnet RPC URL.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/config/chains.ts Updates Mainnet RPC HTTP endpoint to https://api.node.glif.io/.
src/components/NetworkSelector.tsx Removes the temporary local NetworkSelector wrapper in favor of the shared component.
src/components/Network/network-options.ts Adds shared network options with Mainnet ordered first.
src/app/warm-storage-service/page.tsx Adds redirect logic to default missing chain to 314.
src/app/warm-storage-service/components/WarmStorageServicesClient.tsx Wires Warm Storage contract table data to the selected network and uses shared selector/options.
src/app/service-providers/page.tsx Adds redirect logic to default missing chain to 314.
src/app/service-providers/components/ServiceProvidersTable.tsx Switches to shared NetworkSelector and shared network options.

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

You can also share your feedback on Copilot code review. Take the survey.

import { supportedChainIds } from '@filecoin-foundation/ui-filecoin/Network/config'

export const networkOptions = [...supportedChainIds]
.sort((a, b) => (a === 314 ? -1 : b === 314 ? 1 : 0))
@beck-8
Copy link
Author

beck-8 commented Mar 19, 2026

can we add a 🏅 icon to those who are on the endorsed list and add a footnote explain what 🏅 means?

May be addressed later from another PR. I have some other ideas (don’t show unreachable nodes, don’t show messy nodes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✔️ Approved by reviewer

Development

Successfully merging this pull request may close these issues.

4 participants