Feat UI redesign - #95
Open
devel0perzek wants to merge 25 commits into
Open
devel0perzek wants to merge 25 commits into
devel0perzek wants to merge 25 commits into
Conversation
- Integrated AI services for user-defined plans in options.html and options.js. - Updated background.js to classify URLs and block distractions based on AI recommendations. - Modified manifest.json to include new host permissions and service worker type. - Enhanced popup.html to reflect the new AI functionality.
- Added a new message type "getAiSuggestions" in background.js to fetch AI-generated website suggestions based on user plans. - Updated handleTabUpdated function to incorporate AI classification logic for blocking distractions. - Modified options.html and options.js to rename elements for clarity and integrate AI suggestion requests. - Changed the default title in manifest.json to reflect the AI feature.
- Changed API URL in `ai_services.js` to use the latest model version. - Refactored code in `background.js` for better readability and consistency, including indentation and spacing adjustments. - Enhanced event handling and message processing in `background.js` to improve functionality and maintainability. - Updated `options.js` to streamline AI feature initialization and improve user interaction with delegated event listeners.
- Removed debug console logs from handleMessage function in background.js to clean up the code. - Streamlined AI feature initialization in options.js by eliminating redundant logging statements. - Improved overall readability and maintainability of the codebase.
- Enhanced code formatting in `ai_services.js` by standardizing indentation and spacing. - Updated error handling and logging for better clarity. - Improved prompt structure in `classifyUrlForGoal` function to clarify user intent.
- Updated user interface in options.html to improve clarity and usability for setting focus goals and durations. - Added input validation and improved error handling in options.js for user inputs related to focus sessions. - Enhanced logging for better debugging and user feedback during focus session initiation. - Improved display of active focus session status with more detailed time remaining information.
…ogic - Added a new function `analyzeYouTubeContent` in `ai_services.js` to evaluate YouTube videos against user goals, determining if they are distractions or helpful. - Updated `background.js` to handle a new message type for YouTube content analysis, including caching results for efficiency. - Modified the tab update logic to bypass conventional blocking for YouTube URLs, allowing for AI-driven analysis instead. - Enhanced the prompt structure for generating distraction lists in `ai_services.js` to clarify user intent and improve output quality. - Updated `manifest.json` to include a new script for handling YouTube content analysis at document start.
- Increased `maxOutputTokens` in `ai_services.js` to allow for more extensive AI responses. - Improved the YouTube content analysis in `background.js` by adding checks for complete video metadata before using cached results, and implemented retry logic for metadata extraction in `youtube-content.js`. - Enhanced user feedback during video analysis by allowing content if no title is available after multiple attempts, ensuring smoother user experience.
- Updated `ai_services.js` to remove unnecessary checkmarks in comments for clarity. - Enhanced `background.js` by restructuring the `analyzeYouTubeContent` function for better readability and added checks for caching logic. - Improved `youtube-content.js` with better metadata change detection and increased attempts for video information extraction, ensuring more reliable analysis. - Streamlined overlay handling and improved SPA navigation detection for a smoother user experience.
- Added functions in `ai_services.js` to generate playful roasts, alternative video suggestions, motivational quotes, and reflection advice based on user goals and distractions. - Enhanced `background.js` to handle new message types for generating roasts, alternatives, quotes, and reflection advice, improving user interaction during focus sessions. - Updated `manifest.json` to include necessary web-accessible resources for dynamic content handling. - Improved user feedback mechanisms in `youtube-content.js` to better manage video analysis and overlay interactions.
…ering - Updated `manifest.json` to include support for both standard and mobile YouTube URLs in content scripts. - Expanded `youtube-content.js` to implement AI Focus Mode, allowing users to block distractions like YouTube Shorts based on their goals. - Added functions to apply and remove content filters dynamically, improving user experience during video analysis. - Enhanced video analysis logic to check for focus mode status before proceeding, ensuring relevant content evaluation. - Improved SPA navigation detection and added listeners for URL changes to maintain functionality across page transitions.
…n elimination - Updated `youtube-content.js` to introduce Zen Mode, enhancing user experience by hiding various distractions such as the sidebar, Shorts, and notifications. - Improved CSS styling for focus mode messages on home and subscriptions pages, providing clearer user guidance. - Ensured full-width content display on video pages and maintained essential elements like the search bar and user account menu for usability during focus sessions.
- Updated `dynamic-blocked.html` to improve layout and accessibility, including a new avatar image and refined section titles with icons. - Enhanced `dynamic-blocked.css` with a new color scheme for better visual clarity and consistency across elements. - Refactored `dynamic-blocked.js` to streamline code and improve variable naming, ensuring better readability and maintainability. - Added dynamic avatar updates based on distraction count to enhance user engagement during focus sessions.
- Updated `blocked.html` to improve structure and accessibility, including a new logo and refined warning messages. - Enhanced `manifest.json` to support additional web-accessible resources and improve permissions for better functionality. - Refactored `youtube-content.js` for improved readability and consistency, including better handling of focus mode checks and video analysis logic. - Improved user feedback during video analysis with clearer messaging and enhanced loading overlays.
- Updated `blocked.html` to include a new stylesheet and improved layout with a brand name and playful roast messages. - Refactored `blocked.js` to inject random roasts for user engagement and improved handling of unblock time display. - Enhanced `popup.css` for a cohesive design with updated color variables and button styles. - Modified `popup.html` to reflect the new branding and layout changes, ensuring a consistent user experience.
- Changed the title and favicon from "LeechBlock" to "FocusHoot" in `lockdown.html`, `popup.html`, and `manifest.json`. - Updated icon references to use a new owl image for a cohesive branding experience. - Refactored `options.css` to reflect the new branding with updated styles and color variables for improved visual consistency. - Enhanced `options.html` layout and structure, introducing new AI features for user engagement and focus planning.
…tent - Added dark mode color variables in `options.css` and `popup.css` to support user preferences for a better visual experience. - Updated loading overlay in `youtube-content.js` to dynamically adjust styles based on the user's color scheme, improving readability and aesthetics during video analysis.
- Changed all instances of "LeechBlock" to "Owl" in HTML files to reflect the new branding. - Updated favicon and icons in multiple HTML files to use the new owl image. - Modified titles in various HTML files to align with the new branding. - Removed unnecessary console log statements in JavaScript files for cleaner code. - Ensured consistent user experience across all pages with updated styles and icons.
…ockNG-chrome into feat--ui-redesign
…sistency - Added 'Inter' font family to various CSS files for a cohesive typography experience. - Included a new stylesheet link in HTML files to enhance styling capabilities. - Refactored popup and dynamic-blocked pages to incorporate a timer counter and AI focus planner, improving user interaction and engagement. - Updated image sources for dynamic avatar mood representation, enhancing visual feedback during focus sessions. - Adjusted layout and styling in popup and options pages for better usability and aesthetics.
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.
Hi, Eyuale this is the branch that holds the ui changes, if you like them merge the changes. with manifest.json changed and working.