Tags: nordcloud/GNUI
Tags
[AP-5625] Add optional popover and tooltip adjustment to viewport size ( #751) * add popover adjustment to viewport * fix knip * add functionality to tooltip * add description to properties * attach listener only when option enabled * some refactoring * pass props in navigation bar
Load more component misc fixes (#740) * feat(components): add LoadMore component for dynamic list expansion Introduce LoadMore component to allow users to load additional items into a list. This component includes a "Show More" button and an optional count indicator. It supports a loading state and automatically hides the button when all items are loaded. This addition enhances user experience by providing a seamless way to view more content without navigating away from the current page. * refactor(stories): update LoadMore stories to use StoryObj for improved type safety and readability fix(stories): correct story names to follow consistent naming convention * style(types.ts): add semicolons to type definitions for consistency and readability * refactor(LoadMore.tsx, LoadMoreList.tsx): convert components from arrow functions to named functions for improved readability and consistency fix(LoadMoreList.tsx): change key in list items from index to item value to ensure unique keys and prevent potential rendering issues * style(loadMore): remove redundant comments for cleaner code Remove unnecessary comments in LoadMoreList.tsx and LoadMore.stories.tsx to improve code readability and maintainability. * feat(loadMore): add "Show Less" button functionality to LoadMore component Add a "Show Less" button to allow users to reduce the number of displayed items. This enhances user control over the list view, especially when dealing with large datasets. Update stories to reflect the new feature and rename "WithoutCount" to "WithCount" for clarity. * feat(loadMore): add "Show Less" button functionality to allow users to reduce items docs(loadMore): update documentation to include "Show Less" button usage style(PaginationAmount): adjust spacing in pagination result display for consistency * Update src/components/loadMore/LoadMore.stories.tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update src/components/loadMore/LoadMore.stories.tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(package.json): bump version from 10.4.6 to 10.4.8 to prepare for new release * test(ExtendedPagination.spec.tsx): remove space in result range display to ensure consistency in text rendering * style(pagination): add space after dash in pagination display Ensure consistent spacing in pagination text for better readability. * chore(package.json): bump version from 10.4.8 to 10.5.0 to reflect new features or improvements * test(ExtendedPagination.spec.tsx): fix spacing in expected text for consistency in test assertions * style(vscode): change eslint fixAll setting to "explicit" for clarity fix(ExtendedPagination.spec.tsx): add space after hyphen in text assertions for consistency style(LoadMore.tsx): change height to min-height for better layout flexibility feat(LoadMore.tsx): add inline styles and icons to buttons for improved UI feat(PaginationAmount.tsx): add optional style prop for custom styling of pagination results * restore vscode eslint setting * chore(package.json): bump version from 10.5.0 to 10.5.1 for patch release * test(extendedPagination.spec.tsx): add assertions to verify elements are in the document to improve test reliability --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Add load more functionality (#737) * feat(components): add LoadMore component for dynamic list expansion Introduce LoadMore component to allow users to load additional items into a list. This component includes a "Show More" button and an optional count indicator. It supports a loading state and automatically hides the button when all items are loaded. This addition enhances user experience by providing a seamless way to view more content without navigating away from the current page. * refactor(stories): update LoadMore stories to use StoryObj for improved type safety and readability fix(stories): correct story names to follow consistent naming convention * style(types.ts): add semicolons to type definitions for consistency and readability * refactor(LoadMore.tsx, LoadMoreList.tsx): convert components from arrow functions to named functions for improved readability and consistency fix(LoadMoreList.tsx): change key in list items from index to item value to ensure unique keys and prevent potential rendering issues * style(loadMore): remove redundant comments for cleaner code Remove unnecessary comments in LoadMoreList.tsx and LoadMore.stories.tsx to improve code readability and maintainability. * feat(loadMore): add "Show Less" button functionality to LoadMore component Add a "Show Less" button to allow users to reduce the number of displayed items. This enhances user control over the list view, especially when dealing with large datasets. Update stories to reflect the new feature and rename "WithoutCount" to "WithCount" for clarity. * feat(loadMore): add "Show Less" button functionality to allow users to reduce items docs(loadMore): update documentation to include "Show Less" button usage style(PaginationAmount): adjust spacing in pagination result display for consistency * Update src/components/loadMore/LoadMore.stories.tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update src/components/loadMore/LoadMore.stories.tsx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(package.json): bump version from 10.4.6 to 10.4.8 to prepare for new release * test(ExtendedPagination.spec.tsx): remove space in result range display to ensure consistency in text rendering * style(pagination): add space after dash in pagination display Ensure consistent spacing in pagination text for better readability. * chore(package.json): bump version from 10.4.8 to 10.5.0 to reflect new features or improvements * test(ExtendedPagination.spec.tsx): fix spacing in expected text for consistency in test assertions --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
PreviousNext