fix: mutation for issue update on both kanban & list (#436)

* refactor: issues filter logic

* fix: removed fetch logic from hooks

* feat: filter by assignee and label

* chore: remove filter buttons

* feat: filter options

* fix: mutation for issue update on both kanban & list

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Dakshesh Jain 2023-03-15 11:44:44 +05:30 committed by GitHub
parent 636e8e6c60
commit 928ebdf632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1149 additions and 1036 deletions

View file

@ -28,6 +28,8 @@ export const ViewDueDateSelect: React.FC<Props> = ({ issue, partialUpdateIssue,
onChange={(val) =>
partialUpdateIssue({
target_date: val,
priority: issue.priority,
state: issue.state,
})
}
className={issue?.target_date ? "w-[6.5rem]" : "w-[3rem] text-center"}

View file

@ -25,8 +25,10 @@ export const ViewPrioritySelect: React.FC<Props> = ({
isNotAllowed,
}) => (
<CustomSelect
value={issue.state}
onChange={(data: string) => partialUpdateIssue({ priority: data })}
value={issue.priority}
onChange={(data: string) =>
partialUpdateIssue({ priority: data, state: issue.state, target_date: issue.target_date })
}
maxHeight="md"
customButton={
<button

View file

@ -58,7 +58,13 @@ export const ViewStateSelect: React.FC<Props> = ({
return (
<CustomSearchSelect
value={issue.state}
onChange={(data: string) => partialUpdateIssue({ state: data })}
onChange={(data: string) =>
partialUpdateIssue({
state: data,
priority: issue.priority,
target_date: issue.target_date,
})
}
options={options}
label={
<Tooltip