Skip to content

feat(indexd-types): add stats hosts API#1472

Merged
telestrial merged 1 commit intomainfrom
04-04-feat_indexd-types_add_stats_hosts_api
Apr 7, 2026
Merged

feat(indexd-types): add stats hosts API#1472
telestrial merged 1 commit intomainfrom
04-04-feat_indexd-types_add_stats_hosts_api

Conversation

@telestrial
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

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

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
explorer Ignored Ignored Preview Apr 7, 2026 1:35pm
explorer-zen Ignored Ignored Preview Apr 7, 2026 1:35pm
hostd Ignored Ignored Preview Apr 7, 2026 1:35pm
indexd Ignored Ignored Preview Apr 7, 2026 1:35pm
renterd Ignored Ignored Preview Apr 7, 2026 1:35pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 4, 2026

🦋 Changeset detected

Latest commit: 1825bc5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@siafoundation/indexd-react Minor
@siafoundation/indexd-types Minor
indexd Patch
@siafoundation/indexd-js Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@telestrial telestrial requested a review from alexfreska April 4, 2026 14:57
@github-project-automation github-project-automation bot moved this to In Progress in Sia Apr 4, 2026
Copy link
Copy Markdown
Contributor Author

@telestrial telestrial marked this pull request as ready for review April 4, 2026 14:57
Copilot AI review requested due to automatic review settings April 4, 2026 14:57
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

Copy link
Copy Markdown

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

Adds a new admin “stats hosts” endpoint to the shared indexd type definitions and exposes it via a new React SWR hook, along with a changeset to release the update.

Changes:

  • Add adminStatsHostsRoute plus AdminStatsHosts* request/response types to @siafoundation/indexd-types.
  • Add useAdminStatsHosts hook to @siafoundation/indexd-react using the new route/type definitions.
  • Add a changeset bumping indexd-types and indexd-react (minor) for the new API.

Reviewed changes

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

File Description
libs/indexd-types/src/admin/index.ts Defines /stats/hosts route and response shape for admin host stats.
libs/indexd-react/src/admin.ts Adds useAdminStatsHosts SWR hook wired to the new route.
.changeset/slimy-times-pay.md Releases the new API additions (minor bumps).

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

@telestrial telestrial force-pushed the 04-04-feat_indexd-types_add_stats_hosts_api branch from 32c27b2 to 1825bc5 Compare April 7, 2026 13:34
Copy link
Copy Markdown
Contributor Author

telestrial commented Apr 7, 2026

Merge activity

  • Apr 7, 1:37 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 7, 1:38 PM UTC: @telestrial merged this pull request with Graphite.

@telestrial telestrial merged commit 4c3d1df into main Apr 7, 2026
53 of 54 checks passed
@telestrial telestrial deleted the 04-04-feat_indexd-types_add_stats_hosts_api branch April 7, 2026 13:38
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants