-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor: update modal handling and improve CMS detection #210
Conversation
- Refactored modal handling by standardizing the use of #modal_dialog and .modal-text for content updates across various JavaScript files. - Enhanced the CMS detection functionality by introducing a new event listener for detecting CMS on subdomains, utilizing data attributes for passing necessary information. - Updated modal dismissal buttons to use data-bs-dismiss for Bootstrap 5 compatibility. - Removed redundant IDs from modal elements in HTML templates to streamline the code and prevent potential conflicts. - Improved the handling of project-specific data by passing the current project slug to relevant functions.
Reviewer's Guide by SourceryThis pull request refactors modal handling, improves CMS detection, and updates Bootstrap compatibility across multiple JavaScript and HTML files. The changes standardize modal content updates, introduce a new CMS detection event listener, and update modal dismissal buttons for Bootstrap 5. No sequence diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @psyray - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
- The changes involve removing duplicate data-bs-dismiss="modal" attributes from the close buttons in multiple modal headers within the top_bar.html template. This ensures that each button has a single data-bs-dismiss attribute, improving code clarity and potentially preventing unexpected behavior.
- Changed the method for setting the modal title from html() to text() to ensure proper handling of text content.
- Updated the jQuery selectors for modal elements in the get_dork_details function to ensure they specifically target elements within the #modal_dialog container. This change enhances the specificity and reliability of the modal rendering process.
Tests are good for me |
Summary by Sourcery
Refactor modal handling and improve CMS detection by standardizing modal content updates, enhancing CMS detection with new event listeners, updating modal dismissal for Bootstrap 5, removing redundant IDs, and improving project-specific data handling.
Enhancements: