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

feat: Enhance sidebar components #4452

Merged
merged 17 commits into from
Nov 7, 2024
Merged

feat: Enhance sidebar components #4452

merged 17 commits into from
Nov 7, 2024

Conversation

Cristhianzl
Copy link
Collaborator

This pull request introduces several changes to the frontend components and utilities, primarily focusing on enhancing the user interface and improving the filtering and search functionalities. Key changes include updates to component styles, the addition of new components, and the implementation of various filtering helpers.

Component Updates:

New Components:

Filtering and Search Enhancements:

These changes collectively improve the frontend user experience by refining component displays, adding new interactive elements, and enhancing the search and filter capabilities.

…er title to improve UI flexibility and readability
…ss isFlexView prop to getCustomParameterTitle function for improved customization and flexibility
…o the Flow Sidebar Component to enhance user experience and functionality. Update the structure and logic of the component to improve search functionality, error handling, and component filtering.
…play a message when no components are found in the search result. The component includes options to clear the search, filter, and try a different query.
…gles to manage feature toggles for Beta and Legacy features in the sidebar of the FlowPage.
…and spacing

💡 (sidebarDraggableComponent): Improve readability by changing font weight of text elements
💡 (sidebarDraggableComponent): Update text content to be more consistent and capitalized
…ttons in the sidebar footer for adding custom components and navigating to the store page.
…of items in the sidebar with tooltips and draggable functionality
…o filter out beta items from the given data based on a specific condition
…lter to filter data based on edge filters for a better user experience.
…cyFilter to filter out legacy data from APIDataType object.
…to combine Fuse.js search results with API data for each category
…to merge and return filtered data from different sources for a given category in the FlowPage component.
…ing to convert a string to lowercase, remove underscores, and spaces for better string normalization.
…y in text formatting

✨ (search-on-metadata.ts, traditional-search-metadata.ts): Add helper functions for searching in metadata and traditional search metadata to improve search functionality in the flow sidebar component.
@Cristhianzl Cristhianzl self-assigned this Nov 7, 2024
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request javascript Pull requests that update Javascript code labels Nov 7, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Nov 7, 2024
@Cristhianzl Cristhianzl added the lgtm This PR has been approved by a maintainer label Nov 7, 2024
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

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

lgtm

@anovazzi1 anovazzi1 merged commit f9ae9f2 into main Nov 7, 2024
28 of 36 checks passed
@anovazzi1 anovazzi1 deleted the cz/sidebar-improvements branch November 7, 2024 18:45
edwinjosechittilappilly pushed a commit that referenced this pull request Nov 7, 2024
* 📝 (pageLayout/index.tsx): update beta icon text from "BETA" to "Beta" for consistency and readability

* ✨ (custom-parameter.tsx): add support for flex view in custom parameter title to improve UI flexibility and readability

* ✨ (NodeInputField/index.tsx): refactor NodeInputField component to pass isFlexView prop to getCustomParameterTitle function for improved customization and flexibility

* 📝 (NodeStatus/index.tsx): update text from "BETA" to "Beta" for consistency and readability

* ✨ (flowSidebarComponent/index.tsx): Add new components and features to the Flow Sidebar Component to enhance user experience and functionality. Update the structure and logic of the component to improve search functionality, error handling, and component filtering.

* ✨ (emptySearchComponent): add a new component NoResultsMessage to display a message when no components are found in the search result. The component includes options to clear the search, filter, and try a different query.

* ✨ (featureTogglesComponent/index.tsx): add a new component FeatureToggles to manage feature toggles for Beta and Legacy features in the sidebar of the FlowPage.

* 📝 (sidebarDraggableComponent): Update CSS classes for better styling and spacing
💡 (sidebarDraggableComponent): Improve readability by changing font weight of text elements
💡 (sidebarDraggableComponent): Update text content to be more consistent and capitalized

* ✨ (index.tsx): Add a new component SidebarFooterButtons to display buttons in the sidebar footer for adding custom components and navigating to the store page.

* ✨ (index.tsx): add a new component SidebarItemsList to render a list of items in the sidebar with tooltips and draggable functionality

* ✨ (apply-beta-filter.ts): add a new helper function applyBetaFilter to filter out beta items from the given data based on a specific condition

* ✨ (apply-edge-filter.ts): introduce a new helper function applyEdgeFilter to filter data based on edge filters for a better user experience.

* ✨ (apply-legacy-filter.ts): introduce a new helper function applyLegacyFilter to filter out legacy data from APIDataType object.

* ✨ (combined-results.ts): add a new helper function combinedResultsFn to combine Fuse.js search results with API data for each category

* ✨ (filtered-data.ts): introduce a new helper function filteredDataFn to merge and return filtered data from different sources for a given category in the FlowPage component.

* ✨ (normalize-string.ts): introduce a new helper function normalizeString to convert a string to lowercase, remove underscores, and spaces for better string normalization.

* ✨ (ParentDisclosureComponent): Change "BETA" to "Beta" for consistency in text formatting
✨ (search-on-metadata.ts, traditional-search-metadata.ts): Add helper functions for searching in metadata and traditional search metadata to improve search functionality in the flow sidebar component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants