Skip to content
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

Dev 0.0.15 #176

Merged
merged 4 commits into from
Jan 26, 2025
Merged

Dev 0.0.15 #176

merged 4 commits into from
Jan 26, 2025

Conversation

crazygo
Copy link
Contributor

@crazygo crazygo commented Jan 26, 2025

This pull request introduces several updates to the Askman Chrome extension. The changes focus on enhancing keyboard shortcut management, improving user interface elements, and updating configuration settings.

Enhancements to Keyboard Shortcut Management:

  • Added a new BlockConfig class to manage pages where keyboard shortcuts are disabled, and integrated it into the AskPanel and App components (src/utils/BlockConfig.ts, src/components/ask-panel.tsx, src/pages/content/ui/app.tsx). [1] [2] [3]
  • Updated StorageManager to support saving and retrieving SHORTCUT_DISABLED_PAGES from user preferences (src/utils/StorageManager.ts). [1] [2] [3] [4]

User Interface Improvements:

  • Introduced a new Notification component to display messages to users (src/components/base/Notification.tsx).
  • Modified the BaseDropdown component to conditionally apply styles and added logging for debugging (src/components/base/BaseDropdown.tsx). [1] [2]
  • Enhanced KeyBinding component to accept children elements for more flexible usage (src/components/icons.tsx).

Configuration Updates:

  • Updated external-links.toml to change the documentation link (src/assets/conf/external-links.toml).
  • Added new entries to ASK_BUTTON_BLOCK_PAGE and introduced SHORTCUT_DISABLED_PAGES in preferences.toml (src/assets/conf/preferences.toml).

Miscellaneous Changes:

  • Updated package.json version from 0.0.13 to 0.0.15 (package.json).
  • Added BlockConfig import and initialization in ask-panel.tsx (src/components/ask-panel.tsx). [1] [2]

These changes collectively improve the extension's usability by better managing keyboard shortcuts, enhancing user notifications, and updating configuration settings.

… logging

- Enhanced dropdown button styling with dynamic background based on open state
- Added console logging for dropdown button active state
- Adjusted display name text alignment and added inline flex for better rendering
- Enabled default prevention for Command+K (Mac) and Ctrl+K (Windows/Linux) keyboard shortcut
- Ensures proper dropdown navigation when using keyboard shortcuts
…ific sites

- Introduced BlockConfig utility to manage shortcut disabling for specific websites
- Added SHORTCUT_DISABLED_PAGES configuration in preferences
- Implemented shortcut blocking mechanism with URL pattern matching
- Enhanced AskPanel and background script to handle shortcut-specific behaviors
- Added Notification component for user feedback on disabled shortcuts
@crazygo crazygo self-assigned this Jan 26, 2025
@crazygo crazygo added the type: documentation Improvements or additions to documentation label Jan 26, 2025
@crazygo crazygo added this to the 2025-01 milestone Jan 26, 2025
@crazygo crazygo merged commit eefa134 into main Jan 26, 2025
4 checks passed
@crazygo crazygo deleted the dev-0.0.15 branch January 26, 2025 12:17
@crazygo crazygo mentioned this pull request Jan 26, 2025
23 tasks
@crazygo crazygo linked an issue Jan 26, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Compatibility
1 participant