Fix typo in PeerExpirationToggle component#665
Conversation
📝 WalkthroughWalkthroughThis PR corrects a single grammar error in a tooltip message displayed in the peer configuration UI. The phrase "an setup-key" is changed to "a setup-key" on line 59 of ChangesTooltip Text Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/modules/peer/PeerExpirationToggle.tsxOops! Something went wrong! :( ESLint: 9.39.2 TypeError: Converting circular structure to JSON Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/modules/peer/PeerExpirationToggle.tsx`:
- Line 59: In PeerActionCell.tsx update the grammar in the UI string at the
location referenced (around the PeerActionCell component / JSX render where the
tooltip/label reads "added with an setup-key") to use "a setup-key" instead;
search for the string "an setup-key" in the PeerActionCell render/JSX and
replace it with "a setup-key" so the displayed text is grammatically correct.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f9b0865c-ec08-4c34-9de9-8b6b0850eb1c
📒 Files selected for processing (1)
src/modules/peer/PeerExpirationToggle.tsx
| <IconInfoCircle size={14} /> | ||
| <span> | ||
| This setting is disabled for all peers added with an setup-key. | ||
| This setting is disabled for all peers added with a setup-key. |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Find all occurrences of "an setup-key" in the codebase to ensure consistency.
rg -n "an setup-key" --type=tsx --type=tsRepository: netbirdio/dashboard
Length of output: 91
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Find all occurrences of the exact typo in TS/TSX files.
rg -n "an setup-key" -S --glob='*.ts' --glob='*.tsx'Repository: netbirdio/dashboard
Length of output: 184
Fix grammar typo in PeerActionCell.tsx (“an setup-key” → “a setup-key”)
src/modules/peers/PeerActionCell.tsx line 185 contains: “...added with an setup-key.” Change it to “...added with a setup-key.” (No other occurrences of “an setup-key” were found in TS/TSX.)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/modules/peer/PeerExpirationToggle.tsx` at line 59, In PeerActionCell.tsx
update the grammar in the UI string at the location referenced (around the
PeerActionCell component / JSX render where the tooltip/label reads "added with
an setup-key") to use "a setup-key" instead; search for the string "an
setup-key" in the PeerActionCell render/JSX and replace it with "a setup-key" so
the displayed text is grammatically correct.
There was a problem hiding this comment.
@bomkz could you please also update the typo in PeerActionCell.tsx too?
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
| <IconInfoCircle size={14} /> | ||
| <span> | ||
| This setting is disabled for all peers added with an setup-key. | ||
| This setting is disabled for all peers added with a setup-key. |
There was a problem hiding this comment.
@bomkz could you please also update the typo in PeerActionCell.tsx too?
Issue ticket number and link
N/A
Documentation
Select exactly one:
Simple Typo Fix
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
https://github.com/netbirdio/docs/pull/__
Summary by CodeRabbit