Repository navigation
Conversation
…nfigs Nodes get an optional ISO 3166-1 alpha-2 country_code (stored uppercase) and a free-text note; core configs get a note. The simple node list returns the country for pickers and the node search also matches the note. Saving a core where only the note changed no longer restarts its nodes.
…nd cores Node modal gets a searchable country picker (regions discovered at runtime via Intl.DisplayNames, names in the current language) and a note field. Node cards, the node list and node selects show the flag emoji with the code next to the name; notes are shown muted on one line with the full text on hover. The core config modal gets a note field and the cores list shows it.
The full-page core editor now shows the core note under the name. The note is part of the draft snapshot, so editing it enables Save and discard restores it; saving sends it (empty clears it). A note-only save keeps the same config, so the backend does not restart nodes.
…ag emoji are missing
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
The trigger had both line-clamp-2 and block; .block comes later in the built CSS and replaced display:-webkit-box, so the clamp did nothing and a long note stretched the card or row.
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.
Summary
Adds an optional country and a free-text note to nodes, and a note to core configs.
nodes.country_code(ISO 3166-1 alpha-2, stored upper-case, nullable) andnodes.note(≤500 chars);core_configs.note(≤500 chars). Migratione4b7c1d9a2f6.Intl.DisplayNames, so names are localized without a static table. It excludes user-assigned, deprecated (SU, YU, ZR…) and non-country codes (EU, UN…). Where the OS has no flag emoji (Windows), only the code is shown.Part of splitting #759 into focused PRs.
Type of change
Checklist
Testing
I also checked these by hand on a local panel (SQLite): the node dialog, the country picker, the nodes list, the core dialog and the core editor note.
Screenshots
Will add in a comment.
Notes for reviewers
c8d2e4f6a1b3, as do the migrations of the other PRs in this series. Whichever PR lands second needs an Alembic merge revision, which I can add.