-
Notifications
You must be signed in to change notification settings - Fork 134
Add IPv6 overlay settings and peer display #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lixmal
wants to merge
13
commits into
main
Choose a base branch
from
dashboard-ipv6-setting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9be1fa7
Add IPv6 overlay settings, peer display, and per-group control
lixmal 492bbbd
Fix PeerContext update type and use group IDs for dirty-checking
lixmal d156e53
Fix remaining ipv6GroupNames reference
lixmal c8d22d5
Add ip_version query param support to browser SSH
lixmal 9fd483c
Fix save new groups and add settings loading skeleton
heisbrot f05ab23
Extract edit ip modal into separate component
heisbrot c3eac73
Prevent icons from shrinking
heisbrot d3ac691
Update ipv6 icon
heisbrot d4ef580
Remove ipv6 from address as we have it in the tooltip already
heisbrot 4cd8a8b
Allow search by ipv6
heisbrot e0a8fcc
Decrease card list py
heisbrot 1c17726
Decrease font size of card list items
heisbrot 9f10aab
Show only ipv4 in device card, selectors etc. for now
heisbrot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 897
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 90
🏁 Script executed:
rg -n "function EditableValue|const EditableValue" --type ts --type tsxRepository: netbirdio/dashboard
Length of output: 90
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 215
🏁 Script executed:
rg "function EditableValue|const EditableValue|export.*EditableValue" -A 3Repository: netbirdio/dashboard
Length of output: 253
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 249
🏁 Script executed:
rg "EditableValue" -lRepository: netbirdio/dashboard
Length of output: 96
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 3849
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 98
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 100
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 731
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 1220
🏁 Script executed:
Repository: netbirdio/dashboard
Length of output: 674
Add an accessible name for the icon-only edit button.
The edit button in
EditableValueis icon-only (displaying only a pencil icon) and lacks anaria-label, making it inaccessible to assistive technology users. Distinguishing between IPv4 and IPv6 edit actions requires context-specific labels.♿ Proposed fix
function EditableValue({ value, canEdit, onEdit, + editAriaLabel, }: { value: string; canEdit: boolean; onEdit: () => void; + editAriaLabel: string; }) { @@ {canEdit && ( <button + type="button" + aria-label={editAriaLabel} className="flex w-7 h-7 items-center justify-center gap-2 text-nb-gray-400 hover:text-neutral-100 transition-all hover:bg-nb-gray-800/60 rounded-md cursor-pointer" onClick={(e) => { e.stopPropagation(); onEdit(); }} > @@ <EditableValue value={peer.ip} canEdit={permission.peers.update} onEdit={() => setShowEditIPModal(true)} + editAriaLabel={"Edit NetBird IP Address"} /> @@ <EditableValue value={peer.ipv6} canEdit={permission.peers.update} onEdit={() => setShowEditIPv6Modal(true)} + editAriaLabel={"Edit NetBird IPv6 Address"} />🤖 Prompt for AI Agents