Skip to content

fix: refresh stale multiaddrs on the Status page - #2385

Merged
lidel merged 2 commits into
mainfrom
fix-refresh-id-on-status-page
Jul 21, 2025
Merged

fix: refresh stale multiaddrs on the Status page#2385
lidel merged 2 commits into
mainfrom
fix-refresh-id-on-status-page

Conversation

@lidel

@lidel lidel commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

This PR closes #1964 and ensures addresses added by AutoTLS/RelayV2 are updated and visible in WebUI correctly:

  • one-time update when Status Page is opened
  • update addresses every 5s if addrs section is expanded

This way we call /ipfs/v0/id every 5s only when UI actually needs it (green is when "Advanced" section with multiaddrs was expanded):

2025-07-15_21-33

- one-time update when Status Page is opened
- update addresses every 5s  if addrs section is expanded
@lidel
lidel requested a review from 2color July 15, 2025 19:38
@lidel
lidel requested a review from a team as a code owner July 15, 2025 19:38
@lidel lidel mentioned this pull request Jul 15, 2025
51 tasks
Comment thread src/bundles/identity.js Outdated
Comment thread src/status/StatusPage.js
doFetchIdentity,
isNodeInfoOpen
}) => {
// Refresh identity when page mounts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not too familiar with how the deps of this effect ipfsConnected and doFetchIdentity get updated, but this will refresh on more than just page mounts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ipfsConected is likely the special state where RPC was offline and then got back online.
i eyeballed requests and we don't seem to do any unnecessary requests to /api/v0/id, so should be fine to merge as-is

@2color 2color left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems reasonable.

@lidel
lidel merged commit 6c361c4 into main Jul 21, 2025
21 checks passed
@lidel
lidel deleted the fix-refresh-id-on-status-page branch July 21, 2025 21:56
ipfs-gui-bot pushed a commit that referenced this pull request Aug 7, 2025
## [4.8.0](v4.7.0...v4.8.0) (2025-08-07)

 CID `bafybeifplj2s3yegn7ko7tdnwpoxa4c5uaqnk2ajnw5geqm34slcj6b6mu`

 ---

### Features

* add async provide on share/copy/pin/ipns ([#2387](#2387)) ([cfea7d4](cfea7d4))

### Bug Fixes

* eslint doesnt check build folder ([#2389](#2389)) ([2a6c64a](2a6c64a))
* refresh stale multiaddrs on the Status page ([#2385](#2385)) ([6c361c4](6c361c4))
* stop sending requests to defunct countly ([#2395](#2395)) ([fb9c981](fb9c981)), closes [#2334](#2334)

### Trivial Changes

* fix all eslint warnings in root ([#2378](#2378)) ([0e9fe55](0e9fe55))
* Pull transifex translations ([#2364](#2364)) ([424c8a8](424c8a8))
* Pull transifex translations ([#2384](#2384)) ([575da08](575da08))
* Pull transifex translations ([#2386](#2386)) ([9a78d5f](9a78d5f))
@ipfs-gui-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 4.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status page doesn't refresh to display new multiaddresses

3 participants