Skip to content

fix(indexd): invalidate alerts cache on dismiss#1471

Merged
telestrial merged 1 commit intomainfrom
04-03-fix_indexd_invalidate_alerts_cache_on_dismiss
Apr 6, 2026
Merged

fix(indexd): invalidate alerts cache on dismiss#1471
telestrial merged 1 commit intomainfrom
04-03-fix_indexd_invalidate_alerts_cache_on_dismiss

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 4, 2026 2:57pm
explorer-zen Ignored Ignored Preview Apr 4, 2026 2:57pm
hostd Ignored Ignored Preview Apr 4, 2026 2:57pm
indexd Ignored Ignored Preview Apr 4, 2026 2:57pm
renterd Ignored Ignored Preview Apr 4, 2026 2:57pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 4, 2026

🦋 Changeset detected

Latest commit: 3b9a6e1

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

This PR includes changesets to release 2 packages
Name Type
@siafoundation/indexd-react 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

@github-project-automation github-project-automation bot moved this to In Progress in Sia Apr 4, 2026
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@telestrial telestrial requested a review from alexfreska April 4, 2026 14:57
@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

This PR updates the indexd-react admin alert dismissal hook to ensure the SWR cache for alerts is invalidated after a dismiss action, so dismissed alerts disappear without requiring a full browser refresh.

Changes:

  • Add an after callback to useAdminAlertsDismiss that mutates (revalidates) cached requests whose route starts with adminAlertsRoute.
  • Add a Changesets entry documenting the fix and linking the closed issue.

Reviewed changes

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

File Description
libs/indexd-react/src/admin.ts Invalidate/revalidate SWR cache for /alerts* routes after dismissing alerts.
.changeset/clear-files-hang.md Publish note for @siafoundation/indexd-react describing the dismissed-alerts refresh fix.

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

@telestrial telestrial merged commit f52a06a into main Apr 6, 2026
59 checks passed
@telestrial telestrial deleted the 04-03-fix_indexd_invalidate_alerts_cache_on_dismiss branch April 6, 2026 18:12
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Apr 6, 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