feat: Select Inbox project by default when creating a task
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
- Add Linear Project and Team icons
|
||||
- Add Slack notifications (ie. save for later) support
|
||||
- Set `Inbox` project as default when creating or planning a task
|
||||
|
||||
## [0.1.3] - 2024-02-05
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ export function CreateTaskFromNotification({ notification, mutate }: CreateTaskF
|
||||
const { handleSubmit, itemProps } = useForm<TaskCreationFormValues>({
|
||||
initialValues: {
|
||||
title: notification.title,
|
||||
project: projects?.find((p) => p.name === "Inbox")?.source_id,
|
||||
dueAt: new Date(),
|
||||
priority: `${TaskPriority.P4 as number}`,
|
||||
},
|
||||
|
||||
@@ -51,6 +51,7 @@ export function PlanTask({ notification, mutate }: PlanTaskProps) {
|
||||
const { handleSubmit, itemProps } = useForm<TaskPlanningFormValues>({
|
||||
initialValues: {
|
||||
dueAt: new Date(),
|
||||
project: projects?.find((p) => p.name === "Inbox")?.source_id,
|
||||
priority: `${TaskPriority.P4 as number}`,
|
||||
},
|
||||
async onSubmit(values) {
|
||||
|
||||
Reference in New Issue
Block a user