Skip to content

Add IP Naming Feature and Improve User Experience (v3.0)#2

Open
TheDarkMist wants to merge 13 commits into
liamstewart23:masterfrom
TheDarkMist:feature
Open

Add IP Naming Feature and Improve User Experience (v3.0)#2
TheDarkMist wants to merge 13 commits into
liamstewart23:masterfrom
TheDarkMist:feature

Conversation

@TheDarkMist
Copy link
Copy Markdown

IP Naming System: Added functionality to assign short names (max 10 characters) to IP addresses
Settings Page: Created a dedicated options page for managing IP-name associations
Visual Feedback: Added confirmation when copying IP addresses to clipboard
Internationalization: Converted all user-facing text and code comments to English
Technical Improvements
Enhanced IP Validation: Improved regex patterns to better support both IPv4 and IPv6 formats
Error Handling: Added more informative error messages when IP retrieval fails
Duplicate Prevention: Added validation to prevent duplicate names in the IP associations
Event Handling: Fixed event listener scope to prevent unintended behavior
Code Structure
Added options.html and options.js for the settings interface
Updated manifest.json to include storage permission and options page
Modified app.js to check for saved IP names and display them when applicable
Improved index.html to accommodate the display of custom names
UI/UX Enhancements
Added visual feedback when copying IP addresses
Improved error message presentation
Created an intuitive settings interface for managing IP-name associations
Added a direct link to settings from the main popup
Version Update
Incremented version from 2.1 to 3.0 to reflect the significant feature additions
Testing
The changes have been tested across various scenarios:
Different IP formats (IPv4 and IPv6)
Edge cases in name assignment
Error handling when network requests fail
UI responsiveness and feedback
This update maintains the extension's original simplicity while adding powerful functionality that makes it more useful for users who frequently work with specific IP addresses.

IP Naming System: Added functionality to assign short names (max 10 characters) to IP addresses
Settings Page: Created a dedicated options page for managing IP-name associations
Visual Feedback: Added confirmation when copying IP addresses to clipboard
Internationalization: Converted all user-facing text and code comments to English
Technical Improvements
Enhanced IP Validation: Improved regex patterns to better support both IPv4 and IPv6 formats
Error Handling: Added more informative error messages when IP retrieval fails
Duplicate Prevention: Added validation to prevent duplicate names in the IP associations
Event Handling: Fixed event listener scope to prevent unintended behavior
Code Structure
Added options.html and options.js for the settings interface
Updated manifest.json to include storage permission and options page
Modified app.js to check for saved IP names and display them when applicable
Improved index.html to accommodate the display of custom names
UI/UX Enhancements
Added visual feedback when copying IP addresses
Improved error message presentation
Created an intuitive settings interface for managing IP-name associations
Added a direct link to settings from the main popup
Version Update
Incremented version from 2.1 to 3.0 to reflect the significant feature additions
Testing
The changes have been tested across various scenarios:
Different IP formats (IPv4 and IPv6)
Edge cases in name assignment
Error handling when network requests fail
UI responsiveness and feedback
This update maintains the extension's original simplicity while adding powerful functionality that makes it more useful for users who frequently work with specific IP addresses.
@TheDarkMist TheDarkMist changed the title New FeAdd IP Naming Feature and Improve User Experience (v3.0)atures Add IP Naming Feature and Improve User Experience (v3.0) Mar 4, 2025
…ility

- Translated all user-facing text and code comments to English
- Changed input field from 'disabled' to 'readonly' for better UX
- Updated button and status messages to be more clear and concise
- Simplified code comments while maintaining readability
- Maintained core functionality of IP retrieval and naming system
…ility

- Translated all user-facing text and code comments to English
- Changed input field from 'disabled' to 'readonly' for better UX
- Updated button and status messages to be more clear and concise
- Simplified code comments while maintaining readability
- Maintained core functionality of IP retrieval and naming system
@TheDarkMist
Copy link
Copy Markdown
Author

Hi @liamstewart23, just wanted to gently follow up on this PR. Is there anything I can do to help with the review process? Thanks!

Copy link
Copy Markdown

@accesslint accesslint Bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Comment thread index.html
Copy link
Copy Markdown

@accesslint accesslint Bot left a comment

Choose a reason for hiding this comment

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

👏 You fixed the issue(s)! Great work.

@liamstewart23
Copy link
Copy Markdown
Owner

Hi @liamstewart23, just wanted to gently follow up on this PR. Is there anything I can do to help with the review process? Thanks!

Hey there @TheDarkMist !

I somehow have missed these notifications! This is quite the update!

I will review ASAP and get back to you. Could you please add a video / screenshots as well please ;)

@TheDarkMist
Copy link
Copy Markdown
Author

I will review ASAP and get back to you. Could you please add a video / screenshots as well please ;)

Hello Liam.
In the meantime I added another feature: the possibility to display an inline tag if the IP is recognized as one of the IP saved in the extension settings. This is useful for me, since I have many managed servers, to quickly see on which server the site I'm navigating is on. Are you interested in a new pull request for that?

TheDarkMist and others added 4 commits January 29, 2026 12:13
- Use HTTPS instead of HTTP for ip-api.com requests (MITM protection)
- Replace innerHTML with DOM methods to prevent XSS attacks
- Use modern clipboard API with fallback for deprecated execCommand
- Add proper IPv4/IPv6 validation (correct octet ranges, compressed notation)
- Remove unused 'scripting' permission (principle of least privilege)
- Add chrome.runtime.lastError checks for storage operations
- Remove console.log statements to prevent information leakage
- Add ip-api.com to host_permissions for HTTPS requests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add CLAUDE.md with project documentation for Claude Code
- Add .claude/ settings directory
- Remove .cursor/rules/project-overview.mdc (migrated to CLAUDE.md)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Introduced DoH endpoints for resolving IP addresses from hostnames.
- Replaced previous IP fetching method with asynchronous DoH requests.
- Enhanced error handling and user feedback for IP resolution failures.
- Updated manifest to remove unnecessary host permissions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants