10000 [Feature] Update Consensus Toggle, Major Settings Redesign & Robust Caching System by Him7n · Pull Request #98 · rootCircle/docFiller · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Feature] Update Consensus Toggle, Major Settings Redesign & Robust Caching System #98

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
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

Him7n
Copy link
Contributor
@Him7n Him7n commented Apr 13, 2025

This PR introduces several enhancements spanning user interface improvements, caching system optimizations, and overall feature updates. The key changes include:

  • UI Enhancements and Redesign: A major overhaul of the settings page, featuring a clear, card-based layout with modernized toggle switches and improved dark mode styling.
  • Consensus Toggle Update: Conversion of the consensus checkbox to a modern toggle button with updated styling.
  • Caching System Improvements: Implementation of a robust, type-safe response caching system with advanced error handling, validation, and automatic cleanup of outdated cache entries.

Detailed Changes

1. Consensus Toggle & Caching Enhancements (Commit: 89f479a)

  • Converted the consensus menu checkbox to a modern toggle button.
  • Enhanced response cache handling for dropdowns and text URL fields.
  • Added automatic cleanup of stale cache entries using the Chrome alarms API.
  • Improved dark theme styling for buttons.
  • Integrated better error handling and validation within the caching logic.

2. Major Settings Page Redesign (Commit: f680520)

  • Reorganized the settings page into clear, card-based sections for improved layout and visual hierarchy.
  • Implemented modern toggle switches with clear visual indicators.
  • Added a collapsible "Advanced Options" section for less frequently used settings.
  • Overhauled dark mode support with a classList-based toggle and enhanced component compatibility.
  • Improved modals by replacing alerts with toast notifications for a better user experience.
  • Refined spacing, alignment, and expanded CSS variables for more consistent theming and dark mode support.

3. Robust Response Caching System (Commit: de116f6)

  • Added intelligent and type-safe caching for various question types (e.g., multiple choice, date/time, dropdown).
  • Implemented cache clearing functionality with user feedback via toast notifications.
  • Optimized the storage format to better accommodate different response structures.
  • Enhanced error handling across caching operations to improve overall reliability.

Testing & Verification

  • UI/UX Testing: Verified layout changes and dark mode improvements on various devices and screen sizes.
  • Caching System: Conducted tests across different question types to ensure correct operation of cache retrieval, updating, and cleanup.
  • Regression Testing: Ensured that all changes coexist seamlessly with existing functionality.

Additional Notes

  • The new dark mode class toggling and CSS variable adjustments may require future styling tweaks.
  • The automatic cache cleanup process, implemented via Chrome's alarms API, has undergone testing; additional tests might be necessary for other browsers or environments.

image
image
image
image

Him7n added 3 commits April 11, 2025 00:44
- Add intelligent response caching for various question types
- Support multiple question type formats (MCQ, date/time, dropdown, etc.)
- Implement type-safe cache retrieval with fallbacks
- Add cache clearing functionality with user feedback
- Display toast notifications when cache operations complete
- Optimize storage format based on response structure
- Implement error handling throughout caching operations
- Reorganized settings page layout into clear, card-based sections
- Implemented modern toggle switches with visual indicators
- Added collapsible "Advanced Options" section for lesser-used settings
- Overhauled dark mode with classList-based toggle and full component support
- Enhanced modals with better styling and confirmation flows
- Replaced alerts with toast notifications for better UX
- Improved event handling and listener cleanup
- Refined spacing, alignment, and section headings for visual hierarchy
- Added responsive layout improvements and smooth animations
- Expanded CSS variables for better theming and dark mode support
…sponse caching

    Fixed response cache to properly handle dropdowns and text_url fields
    Converted consensus menu from checkbox to modern toggle button
    Added automatic cleanup of old cache entries using Chrome alarms API
    Improved UI with better dark theme styling for buttons
    Enhanced caching logic with better validation and error handling
@@ -50,6 +50,7 @@
"@langchain/mistralai": "^0.2.0",
"@langchain/ollama": "^0.2.0",
"@langchain/openai": "^0.4.4",
"docfiller": "file:",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dont why this one comes up again and again ,even after I remove it , it comes back up next second 😭

@rootCircle
Copy link
Owner

This is fine🙆‍♂️

Will review in sometime :)

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
0