Repository navigation
feat(admin): country flags beside nodes in dashboard Node health - #139
Merged
hiddify-com merged 1 commit intoNov 1, 2026
Merged
Conversation
…ealth Each node's country comes from its address, by the same cached MaxMind lookup as the Nodes page; This server's from its own public IP. The flag shows before the name in the legend, the table and the phone cards; the flag helpers move to shared/utils/country.ts for both pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The dashboard's Node health lists the panel and its nodes by name only. The Nodes page already shows each node's country flag, but the dashboard didn't, so you couldn't tell at a glance where each server is.
Change
DashboardNodeStatsgets acountry(ISO code).node_system.attach_countries()fills it the same way the Nodes page does:node_country()(MaxMind, redis-cached for a day) on each child's address. For "This server" it uses the first public IP fromhutils.network.get_ips_lazy(), which doesn't block. Files:hutils/node_system.py,dashboard_api.py,dashboard_schema.py.NodeHealthCard.vue: a flag goes before the name in the chart legend, the table and the mobile cards. Hovering a flag shows the country name, which also serves as the aria-label.NodesView.vueto the sharedshared/utils/country.ts, so both pages use the same code.Screenshots
Tested
devand redeployed to check again.Review
🤖 Generated with Claude Code