From caf7982d73c349208f37728345c60ab4e514d100 Mon Sep 17 00:00:00 2001 From: ducica Date: Fri, 14 Jun 2024 12:36:36 +0200 Subject: [PATCH 1/4] clear filters button in sidebar --- .../js/dashboard_communities/search/index.js | 1 - .../search/UserDashboardSearchAppLayout.jsx | 29 ++++++++++------- .../themes/default/collections/grid.variables | 2 +- .../js/dashboard_records/search/index.js | 32 +++++++------------ .../js/dashboard_requests/search/index.js | 9 ++---- 5 files changed, 32 insertions(+), 41 deletions(-) diff --git a/oarepo_dashboard/ui/dashboard_communities/semantic-ui/js/dashboard_communities/search/index.js b/oarepo_dashboard/ui/dashboard_communities/semantic-ui/js/dashboard_communities/search/index.js index 86e5338..290b974 100644 --- a/oarepo_dashboard/ui/dashboard_communities/semantic-ui/js/dashboard_communities/search/index.js +++ b/oarepo_dashboard/ui/dashboard_communities/semantic-ui/js/dashboard_communities/search/index.js @@ -63,7 +63,6 @@ export const componentOverrides = { [`${overridableIdPrefix}.EmptyResults.element`]: CommunitiesEmptySearchResults, [`${overridableIdPrefix}.ResultsList.item`]: UserDashboardCommunitiesListItem, - // [`${overridableIdPrefix}.SearchApp.facets`]: ContribSearchAppFacetsWithConfig, [`${overridableIdPrefix}.SearchApp.results`]: UserDashboardSearchAppResultViewWAppName, [`${overridableIdPrefix}.SearchBar.element`]: SearchappSearchbarElement, diff --git a/oarepo_dashboard/ui/dashboard_components/semantic-ui/js/dashboard_components/search/UserDashboardSearchAppLayout.jsx b/oarepo_dashboard/ui/dashboard_components/semantic-ui/js/dashboard_components/search/UserDashboardSearchAppLayout.jsx index 2e46be2..ae4b67f 100644 --- a/oarepo_dashboard/ui/dashboard_components/semantic-ui/js/dashboard_components/search/UserDashboardSearchAppLayout.jsx +++ b/oarepo_dashboard/ui/dashboard_components/semantic-ui/js/dashboard_components/search/UserDashboardSearchAppLayout.jsx @@ -15,12 +15,13 @@ import { i18next } from "@translations/oarepo_dashboard"; import React, { useContext } from "react"; import { SearchBar, ActiveFilters } from "react-searchkit"; import { GridResponsiveSidebarColumn } from "react-invenio-forms"; -import { Grid, Button, Container } from "semantic-ui-react"; +import { Grid, Button, Container, Icon } from "semantic-ui-react"; import PropTypes from "prop-types"; import { SearchAppFacets, ClearFiltersButton, ShouldActiveFiltersRender, + ActiveFiltersCountLabel, } from "@js/oarepo_ui"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import Overridable from "react-overridable"; @@ -47,6 +48,13 @@ export const UserDashboardSearchAppLayoutHOC = ({ open={sidebarVisible} onHideClick={() => setSidebarVisible(false)} > + + + + + @@ -67,10 +75,16 @@ export const UserDashboardSearchAppLayoutHOC = ({ )} - - - - - - - - - { ); return ( can_create && ( - - - - - - - - From 166606d1b4e2e13763439648ac279a06974f2b34 Mon Sep 17 00:00:00 2001 From: ducica Date: Tue, 18 Jun 2024 14:09:34 +0200 Subject: [PATCH 3/4] using requests detail page --- .../semantic-ui/js/dashboard_requests/search/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js index 8048fd8..bddd3f9 100644 --- a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js +++ b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js @@ -32,8 +32,7 @@ export function RequestsResultsItemTemplateDashboard({ result }) { ComputerTabletRequestsListItem ); const MobileRequestsItemWithState = withState(MobileRequestsListItem); - // TODO: remove docs dependency - const detailPageUrl = `/docs/${result?.topic?.reference?.documents}`; + const detailPageUrl = result?.links?.self_html; return ( <> Date: Tue, 18 Jun 2024 14:50:48 +0200 Subject: [PATCH 4/4] chore(release): :bookmark: release version 1.0.8 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 48600f5..9946c16 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-dashboard -version = 1.0.7 +version = 1.0.8 description = Support for user dashboard (records, communities, requests) authors = Mirek Simek readme = README.md