Skip to content

feat(indexd-types): add reset lost sectors API#1476

Merged
telestrial merged 1 commit intomainfrom
04-07-feat_indexd-types_add_reset_lost_sectors_api
Apr 8, 2026
Merged

feat(indexd-types): add reset lost sectors API#1476
telestrial merged 1 commit intomainfrom
04-07-feat_indexd-types_add_reset_lost_sectors_api

Conversation

@telestrial
Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: f57a53b

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
@siafoundation/indexd-js Minor
indexd 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

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 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 6:54pm
explorer-zen Ignored Ignored Preview Apr 7, 2026 6:54pm
hostd Ignored Ignored Preview Apr 7, 2026 6:54pm
indexd Ignored Ignored Preview Apr 7, 2026 6:54pm
renterd Ignored Ignored Preview Apr 7, 2026 6:54pm

Request Review

@github-project-automation github-project-automation bot moved this to In Progress in Sia Apr 7, 2026
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 API client surface for resetting a host’s lost sector count, exposing the route + types in indexd-types and wiring corresponding convenience helpers in both the React hooks package and the JS client package.

Changes:

  • Added adminHostResetLostSectorsRoute plus params/payload/response types to @siafoundation/indexd-types.
  • Added useAdminHostResetLostSectors hook to @siafoundation/indexd-react.
  • Added hostResetLostSectors request handler to @siafoundation/indexd-js.
  • Added a changeset bumping the three packages (minor).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
libs/indexd-types/src/admin/index.ts Defines the new admin route constant and its request/response typing.
libs/indexd-react/src/admin.ts Exposes a React usePostFunc hook for the new reset endpoint.
libs/indexd-js/src/admin.ts Exposes a JS client request handler for the new reset endpoint.
.changeset/plain-deer-throw.md Documents the new API surface and bumps package versions.

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

Copy link
Copy Markdown
Contributor Author

telestrial commented Apr 8, 2026

Merge activity

  • Apr 8, 6:10 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 8, 6:10 PM UTC: @telestrial merged this pull request with Graphite.

@telestrial telestrial merged commit 7d8c765 into main Apr 8, 2026
59 checks passed
@telestrial telestrial deleted the 04-07-feat_indexd-types_add_reset_lost_sectors_api branch April 8, 2026 18:10
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Apr 8, 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