feat: show empty states toggle button in the views dropdown (#500)

* feat: show empty states toggle button in views dropdown

* refactor: empty state toggle naming convention, feat: hidden groups in section in the kanban board
This commit is contained in:
Aaryan Khandelwal 2023-03-23 02:13:52 +05:30 committed by GitHub
parent 79249c5c9b
commit d477c19ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 125 additions and 21 deletions

View file

@ -32,6 +32,8 @@ const useIssuesView = () => {
setGroupByProperty,
orderBy,
setOrderBy,
showEmptyGroups,
setShowEmptyGroups,
filters,
setFilters,
resetFilterToDefault,
@ -107,6 +109,7 @@ const useIssuesView = () => {
);
const statesList = getStatesList(states ?? {});
const stateIds = statesList.map((state) => state.id);
let emptyStatesObject: { [key: string]: [] } = {};
for (let i = 0; i < stateIds.length; i++) {
emptyStatesObject[stateIds[i]] = [];
@ -132,6 +135,8 @@ const useIssuesView = () => {
setGroupByProperty,
orderBy,
setOrderBy,
showEmptyGroups,
setShowEmptyGroups,
filters,
setFilters,
params,