Feat: improve search bar #3
Merged
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.
This pull request includes several changes to improve the theme handling, search functionality, and CSS variables in the project. The most important changes include updates to the theme toggle component, the introduction of new composables for search handling, and modifications to the CSS variables for better consistency.
Theme and CSS Updates:
assets/css/tailwind.css: Updated CSS variables for foreground, muted, popover, card, border, input, primary, secondary, accent, destructive, and ring colors. Added new variables for chart colors.components/ThemeToggle.vue: Added a newchangeThemefunction to switch themes immediately and updated the theme toggle logic to use this function.Search Functionality Enhancements:
components/search/SearchInput.vue: Introduced a new search input component with support for inline and modal modes, suggestions, and improved handling of search tokens and interactions.components/search/SearchInputField.vue: Added a new search input field component with support for highlighting search tokens and improved input handling.components/search/SearchSuggestions.vue: Added a new search suggestions component to display available filters and handle suggestion clicks.New Composables:
components/search/composables/useQualifiers.ts: Introduced a new composable to manage search qualifiers.components/search/composables/useScrollLock.ts: Added a new composable to lock and unlock scroll during modal interactions.components/search/composables/useSearchHighlighter.ts: Added a new composable to highlight search tokens in the search input.Configuration Changes:
components.json: Updated the base color to "neutral", added new aliases, and specified the icon library to use "lucide".