feat(indexd-types): add stats hosts API#1472
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
🦋 Changeset detectedLatest commit: 1825bc5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
adminStatsHostsRouteplusAdminStatsHosts*request/response types to@siafoundation/indexd-types. - Add
useAdminStatsHostshook to@siafoundation/indexd-reactusing the new route/type definitions. - Add a changeset bumping
indexd-typesandindexd-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.
32c27b2 to
1825bc5
Compare
Merge activity
|

No description provided.