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:
parent
636e8e6c60
commit
928ebdf632
33 changed files with 1149 additions and 1036 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue