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

Filter Table Row with Input query #1034

Open
wants to merge 136 commits into
base: 4.2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
853a092
ICDC-3085
rana22 May 25, 2023
0b090cf
set name/subject
rana22 May 30, 2023
c3d8c04
code refactor
rana22 May 30, 2023
69d1457
update documentation
rana22 May 31, 2023
232105c
update document
rana22 May 31, 2023
7e1fce4
Merge pull request #841 from CBIIT/ICDC-3085
iksheth Jun 1, 2023
897a8f0
Merge pull request #857 from CBIIT/4.0.0
rana22 Jun 7, 2023
83d3727
Extender view config
rana22 Jun 12, 2023
29645d2
Merge pull request #859 from CBIIT/4.0.0
rana22 Jun 13, 2023
5e19aec
Merge pull request #860 from CBIIT/ICDC-4.0.0
rana22 Jun 13, 2023
93a7a2a
update extended view config
rana22 Jun 13, 2023
fca5569
add files response handler
rana22 Jun 13, 2023
f6ba6a7
Adjusted widgets for icdc'
Jun 13, 2023
d4e2e0b
Adjusted widgets for icdc
Jun 13, 2023
bb982bc
Fixed build error
Jun 13, 2023
afedea8
Made padAngle use default value
Jun 13, 2023
854b294
Fixed build error
Jun 13, 2023
a577f40
Added class to style querybar
Jun 13, 2023
10e1b8a
Optimize performance
rana22 Jun 15, 2023
e669157
Merge pull request #866 from CBIIT/4.0.0
rana22 Jun 15, 2023
7387839
Merge branch 'ICDC-4.0.0' into ICDC-3085
rana22 Jun 15, 2023
90f4574
Merge pull request #867 from CBIIT/ICDC-3085
rana22 Jun 15, 2023
d48b0a6
Handled undefined cases
Jun 15, 2023
cab1611
Merge branch 'ICDC-4.0.0' of https://github.com/CBIIT/bento-frontend …
Jun 15, 2023
108986f
Merge pull request #863 from CBIIT/Querybar
rana22 Jun 15, 2023
6743ea3
Returned the old logic for color
Jun 15, 2023
48aa1da
Merge branch 'ICDC-4.0.0' of https://github.com/CBIIT/bento-frontend …
Jun 15, 2023
73a5f40
Merge pull request #862 from CBIIT/WIDGET
rana22 Jun 15, 2023
46b3bc4
Merge pull request #870 from CBIIT/ICDC-4.0.0
rana22 Jun 15, 2023
696d4d4
optimize facet filter performance
rana22 Jun 20, 2023
f268963
revert back package name
rana22 Jun 20, 2023
06594b5
Add Column grouping and manage view column configuration
rana22 Jun 27, 2023
a6b0fc6
column grouping
rana22 Jul 5, 2023
d2d37ec
ICDC studies table configuration
rana22 Jul 7, 2023
aa79568
set default rows
rana22 Jul 7, 2023
bbc386e
Merge pull request #861 from CBIIT/ICDC-Extended-Table-View
rana22 Jul 10, 2023
5a9fc0c
customize pagination
rana22 Jul 17, 2023
6f221a6
Table cofiguration
rana22 Jul 21, 2023
fe1e65d
Changed add files alert text
Jul 31, 2023
1e34582
Merge pull request #881 from CBIIT/add-files-alert
tyudosen Jul 31, 2023
261e562
Removed console log statement.
iksheth Aug 1, 2023
8c17b76
Fixed dialog message issue
Aug 2, 2023
61d3cf1
Merge pull request #882 from CBIIT/dialog
Senait7-ux Aug 11, 2023
6551464
Changed dependency version in the pacakge.json of paginated-table
Aug 11, 2023
89f5e8d
Merge pull request #884 from CBIIT/dialog
rana22 Aug 11, 2023
16a9afc
Add button documentation
rana22 Aug 18, 2023
fd5a4f0
add documentation
rana22 Aug 18, 2023
7e1ec43
Document update
rana22 Aug 18, 2023
bfaf954
activate filters for add selected files
rana22 Aug 23, 2023
786c0be
Changed search box color for local find
Aug 30, 2023
e13f505
Changed color
Aug 31, 2023
56c8e93
Changed color
Aug 31, 2023
d16ab50
Changed padding
Aug 31, 2023
1c3b4cf
Changed text to ICDC
Aug 31, 2023
209f01b
Fixed local find upload modal to fit ICDC
Sep 1, 2023
e027e43
set configuration
rana22 Sep 7, 2023
85e4ca0
add key configuration
rana22 Sep 7, 2023
1b70bb5
local-find and query-bar Styles
Sep 7, 2023
6bfe256
fix
Sep 8, 2023
3aced7e
assign classname
rana22 Sep 11, 2023
9bcd8fd
default style
rana22 Sep 11, 2023
f1aa5f9
Merge pull request #886 from CBIIT/icdc-3223
rana22 Sep 11, 2023
e35ef0c
text update
rana22 Sep 11, 2023
524fd04
Merge pull request #887 from CBIIT/icdc-3223
rana22 Sep 11, 2023
43ce82f
set class name
rana22 Sep 11, 2023
7aae273
fix typo
rana22 Sep 11, 2023
af9eb6d
fixed the searchList Style
Sep 11, 2023
60239c7
Merge branch 'local-find' of https://github.com/CBIIT/bento-frontend …
Sep 11, 2023
5b7553e
configure count and label key
rana22 Sep 12, 2023
dcf6dfa
Merge pull request #885 from CBIIT/local-find
rana22 Sep 29, 2023
99fd9a3
ICDC Focal Find change
rana22 Sep 29, 2023
e565a7d
local-find Documentation update
rana22 Sep 29, 2023
e6d39b5
Upload box style configuration
rana22 Oct 6, 2023
0184d0a
custom style and download feature
rana22 Oct 11, 2023
9282533
style configuration
rana22 Oct 12, 2023
1ceb066
customizable upload button
huuaho Oct 12, 2023
001b78a
add class to button
rana22 Oct 12, 2023
b6d2fb8
code clean up
rana22 Oct 12, 2023
95305c8
code clean up
rana22 Oct 12, 2023
ae53d6e
Merge pull request #891 from CBIIT/ICDC-3220
huuaho Oct 13, 2023
44e5164
Case IDs in the middle of the modal can be changed
huuaho Oct 16, 2023
c269cd4
Merge pull request #892 from CBIIT/Local_Find-CaseIDs_Configuration
huuaho Oct 16, 2023
1b0bfb2
scrollToTop fix
Jan 18, 2024
9be8b5d
remove HashRouter
Jan 19, 2024
f34dedb
Merge pull request #926 from CBIIT/ICDC-3433
rana22 Jan 23, 2024
c8f4cb0
add text configuration
rana22 Jan 31, 2024
029185b
Add Mui classes
rana22 Jan 31, 2024
bce931e
disable clear and submit button until ready to be used
Jan 31, 2024
d77dff5
Merge pull request #931 from CBIIT/ICDC-3407
rana22 Jan 31, 2024
f2547d9
activate clear btn
rana22 Feb 15, 2024
e98a7e5
activate clear btn
rana22 Feb 15, 2024
4345ab7
add configuration allowing for putting external links first in the dr…
ty-esi Feb 19, 2024
2958fa7
ICDC-3232
rana22 Mar 20, 2024
683e48a
resolve coflict
rana22 Mar 20, 2024
9b4fb79
Merge pull request #958 from CBIIT/4.1.0
rana22 Mar 20, 2024
8e51501
Merge pull request #965 from CBIIT/4.1.0
rana22 Apr 17, 2024
bb9b8ce
updates navBar and statsBar styles
ty-esi May 8, 2024
c3edb96
Merge pull request #968 from CBIIT/ICDC-3519
rana22 May 8, 2024
b3df85b
ICDC navbar styling updates
ty-esi Jun 20, 2024
cb65c5d
Merge pull request #980 from CBIIT/ICDC-3519-II
rana22 Jun 20, 2024
8727751
footer text nowrap
ty-esi Sep 9, 2024
3984efe
Merge pull request #1003 from CBIIT/ICDC-3692
rana22 Sep 9, 2024
b532ca5
Merge branch 'ICDC-4.0.0' into ICDC_Local_Find
rana22 Sep 11, 2024
781407d
Merge pull request #1005 from CBIIT/ICDC_Local_Find
rana22 Sep 11, 2024
2fd6e5c
explore 508
ty-esi Sep 12, 2024
580504f
Merge pull request #1006 from CBIIT/ICDC-3628-II
rana22 Sep 12, 2024
c3a537a
studies WAVE changes
ty-esi Sep 16, 2024
841bb8a
Merge pull request #1009 from CBIIT/ICDC-3610
rana22 Sep 16, 2024
3ec6fa9
file cart view wave fixes
ty-esi Sep 18, 2024
0f66f66
file cart view wave fixes
ty-esi Sep 18, 2024
b04e326
Merge pull request #1010 from CBIIT/ICDC-3612
rana22 Sep 18, 2024
c92eeaf
explore page wave fixes
ty-esi Sep 23, 2024
3756e95
Merge pull request #1012 from CBIIT/ICDC-3607
rana22 Sep 23, 2024
5dfe4aa
Merge pull request #942 from CBIIT/ICDC-3454
rana22 Sep 23, 2024
e8abea4
resolve conflict
rana22 Sep 27, 2024
a32dd7d
Merge pull request #1015 from CBIIT/ICDC-4.0.0
ty-esi Sep 27, 2024
2d3eace
access rows for select all action
rana22 Oct 11, 2024
e988197
explore page wave fixes
ty-esi Oct 16, 2024
940ae77
Merge pull request #1027 from CBIIT/ICDC-3607-II
ty-esi Oct 17, 2024
e07c074
resolve conflict
rana22 Oct 17, 2024
ab28dde
Merge branch 'ICDC-4.2' into select_all_rows
rana22 Oct 17, 2024
228965f
Merge pull request #1025 from CBIIT/select_all_rows
rana22 Oct 17, 2024
1d3b251
fixes mui autocomplete bug
ty-esi Oct 24, 2024
92766d4
Merge pull request #1029 from CBIIT/fix-autocomplete-bug
rana22 Oct 24, 2024
82f39a9
init commit
rana22 Nov 5, 2024
8f409ae
apply search filter
rana22 Nov 5, 2024
07248c1
add table search function
rana22 Nov 6, 2024
0ccd7bd
revert package log chagnes
rana22 Nov 7, 2024
532c334
search input feature
rana22 Nov 8, 2024
49f1234
Merge pull request #1035 from CBIIT/table_search_function
rana22 Nov 8, 2024
f0154ff
set search input value based on table state
rana22 Nov 8, 2024
75b6555
Merge pull request #1036 from CBIIT/table_search_function
rana22 Nov 8, 2024
62f780b
set query variable
rana22 Dec 26, 2024
9bd6593
Merge pull request #1047 from CBIIT/ICDC-4.2
rana22 Feb 14, 2025
27b89bd
Merge branch 'table_search_function' of https://github.com/CBIIT/bent…
rana22 Feb 14, 2025
0ff0ce0
return empty table
rana22 Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ dist
.env.development.local
.env.test.local
.env.production.local
.nvmrc

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# WebStrom
.idea

# NX
.nx/*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.2.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN NODE_OPTIONS="--max-old-space-size=4096" npm install

RUN NODE_OPTIONS="--max-old-space-size=4096" npx lerna run build

FROM nginx:1.27.1-alpine3.20-slim AS fnl_base_image
FROM nginx:1.25.2-alpine3.18-slim

COPY --from=build /usr/src/app/packages/bento-frontend/dist /usr/share/nginx/html
COPY --from=build /usr/src/app/conf/inject.template.js /usr/share/nginx/html/inject.template.js
Expand Down
53 changes: 45 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/all/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bento-core/all",
"version": "1.1.0",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand All @@ -27,7 +27,7 @@
"@bento-core/nav-bar": "^1.0.0",
"@bento-core/paginated-table": "^1.0.0",
"@bento-core/profile": "^1.0.0",
"@bento-core/query-bar": "^1.1.0",
"@bento-core/query-bar": "^1.0.0",
"@bento-core/session-timeout": "^1.0.0",
"@bento-core/stats-bar": "^1.0.0",
"@bento-core/tab": "^1.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/bento-frontend/src/components/Layout/LayoutView.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ const Layout = ({ classes, isSidebarOpened }) => {
<PrivateRoute path="/arm/:id" access={['admin', 'member']} component={ArmDetail} />
<PrivateRoute path="/fileViewer/:id" requiuredSignIn access={['admin', 'member']} component={JBrowseDetail} />
{/* bento 4.0 template */}
<PrivateRoute exact path="/explore" access={['admin', 'member']} component={DashTemplate} />
<PrivateRoute exact path="/explore/:filterQuery" access={['admin', 'member']} component={DashTemplate} />

<PrivateRoute path="/explore" access={['admin', 'member']} component={DashTemplate} />
{/* END SECTION */}

{/* SECTION: Admin only Path */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { useState } from 'react';
import {
AccordionSummary,
Button,
IconButton,
withStyles,
} from '@material-ui/core';
import {
Expand All @@ -20,6 +21,7 @@ import {
resetAllData, chunkSplit,
SearchView, SearchBoxGenerator, UploadModalGenerator,
} from '@bento-core/local-find';
import RefreshIcon from '@material-ui/icons/Refresh';
import store from '../../../store';
import styles from './BentoFacetFilterStyle';
import { FacetFilter, ClearAllFiltersBtn } from '@bento-core/facet-filter';
Expand Down Expand Up @@ -180,7 +182,12 @@ const BentoFacetFilter = ({
* 1. Config local search input for Case
* 2. Facet Section Name
*/
const CustomFacetView = ({ facet, facetClasses }) => {
const CustomFacetView = ({
facet,
hasSelections,
facetClasses,
clearFacetSectionValues
}) => {
return (
<>
<CustomExpansionPanelSummary
Expand All @@ -200,6 +207,11 @@ const BentoFacetFilter = ({
}
>
{facet.label}
{hasSelections ? (
<IconButton onClick={clearFacetSectionValues}>
<RefreshIcon />
</IconButton>
) : null}
</div>
</CustomExpansionPanelSummary>
</>
Expand All @@ -219,6 +231,8 @@ const BentoFacetFilter = ({
facetsConfig={facetsConfig}
CustomFacetSection={CustomFacetSection}
CustomFacetView={CustomFacetView}
enableClearSection
enableFacetCollapse
/>
</FacetFilterThemeProvider>
</div>
Expand Down
60 changes: 57 additions & 3 deletions packages/facet-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,66 @@ className={clsx(classes.sectionSummaryText, classes[facetClasses])}
## 10 CLearAllFilterButton Component
Bento Core provides 1. function to clear all active filters, 2. disable flag (true incase of no active filters). Client is responsible for defining view (custom html).
```
import { generateClearAllFilterBtn } from 'bento-core';
import { ClearAllFiltersBtn, FacetFilter } from '@bento-core/facet-filter';
import { getFilters } from '@bento-core/facet-filter';

const CustomClearAllFiltersBtn = ({ onClearAllFilters, disable }) => {
//...custom component 1. bind onClearFilters fn
// 2. disable flag to disable button
}
}
// get filter data
// filterState: state.statusReducer.filterState, (from reducer)
// const activeFilters = getFilters(filterState) // formating

<ClearAllFiltersBtn
Component={CustomClearAllFiltersBtn}
activeFilters={activeFilters}
/>
```

## 11 Facet Value Component
```
// response
// filterCaseCountByProgram: [{group: "COP", subjects: 301}]
const {
name,
customName,
subjects,
customSubjects,
tooltip,
} = checkboxItem;

// 1. by default facet value component display group ("COP")
// 2. set customName to display customize value
// 3. by default facet value component display subjects (301)
// 4. set customSubjects to display customize value or adjust correct field for subject count
// 5. tooltip - provide text value to tooltip text

/**
* Add Bento frontend filter count/subjects
* Add tootip text
*/
const filterData = facetsConfig.reduce((acc, item) => {
const facetValues = searchData[item.apiPath];
if (!facetValues) {
return acc;
}
const subjectCounts = [...facetValues].map((checkbox) => {
const text = tooltipText[item.tooltipKey];
return {
...checkbox,
customSubjects: checkbox.count,
tooltip: text ? text[checkbox.group] : undefined,
};
});
return { ...acc, [item.apiPath]: [...subjectCounts] };
}, {});

const ClearAllFiltersButton = () => generateClearAllFilterBtn(CustomClearAllFiltersBtn);
<FacetFilter
data={filterData}
facetSectionConfig={facetSectionVariables}
facetsConfig={facetsConfig}
CustomFacetSection={CustomFacetSection}
CustomFacetView={CustomFacetView}
/>
```
1 change: 1 addition & 0 deletions packages/facet-filter/src/FacetFilterController.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const FacetFilterController = (props) => {
* Construct filter object
* 1. add facet values to facets
* 2. add 'name' key to each facet value
* 3. add '
*/
const addFacetValues = (facets) => {
const updateFacets = [];
Expand Down
7 changes: 6 additions & 1 deletion packages/facet-filter/src/FacetFilterView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* eslint-disable arrow-body-style */
/* eslint-disable padded-blocks */
import React from 'react';
import { Divider, withStyles } from '@material-ui/core';
import {
Divider,
withStyles,
} from '@material-ui/core';
import styles from './FacetFilterStyle';
import FacetSectionView from './components/section/FacetSectionView';
import FacetView from './components/facet/ReduxFacetView';
Expand All @@ -10,6 +13,7 @@ const BentoFacetFilter = ({
sideBarSections,
CustomFacetSection,
CustomFacetView,
clearIcon,
enableClearSection,
enableFacetCollapse,
}) => {
Expand All @@ -28,6 +32,7 @@ const BentoFacetFilter = ({
CustomView={CustomFacetView}
enableClearSection={enableClearSection}
enableFacetCollapse={enableFacetCollapse}
clearIcon={clearIcon}
/>
))}
</FacetSectionView>
Expand Down
13 changes: 3 additions & 10 deletions packages/facet-filter/src/components/facet/FacetStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ export default () => ({
position: 'initial',
},
},
subSectionSummaryTextWrapper: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
width: '100%',
paddingRight: '15px',
},
subSectionSummaryText: {
marginLeft: '10px',
lineHeight: 0,
Expand All @@ -32,12 +25,11 @@ export default () => ({
},
sortGroup: {
paddingTop: '10px',
marginBottom: '5px',
borderTop: '1px solid #B1B1B1',
textAlign: 'left',
padding: '10px',
display: 'flex',
alignItems: 'center',
justifyContent: 'space-around',
justifyContent: 'space-between',
},
sortGroupIcon: {
cursor: 'pointer',
Expand All @@ -64,6 +56,7 @@ export default () => ({
cursor: 'pointer',
fontFamily: 'Nunito',
fontSize: '10px',
float: 'right',
},
highlight: {
color: '#b2c6d6',
Expand Down
Loading