Skip to content

Commit 908577e

Browse files
pedrobonaminninaandalhermanwikner
authoredMar 12, 2024
feat(tasks): use FormBuilder to create and edit tasks. (#5897)
* feat(tasks): add tasks creation action * feat(tasks): WIP - use FormBuilder in tasks * feat(tasks): use FormBuilder in tasks, fix remount issues * feat(tasks): add missing fields to tasks * feat(tasks): add custom title field * feat(tasks): add mention options and fix assigned to field * feat(tasks): wip implementation - use tasks reference with search * fix: fix build issues * fix(tasks): styling tasks create form * fix(tasks): assign target content when a task is created with a document in view * fix(tasks): update title styling * fix(tasks): update focus visible on intent link * fix(tasks): use commentInput in tasks description * fix(tasks): update style for targetField placeholder * {wip} saved 2024-02-27 15:41 * feat(tasks): start form edit work * fix(tasks): move selected document logic * feat(tasks): add wip activity log * fix(tasks): update tasks ui * feat(tasks): integrate remove tasks into the new edit form * feat(tasks): add support for drafts and tasks duplication * fix(tasks): updates post rebase with base branch * fix(tasks): update tasks workspace provider, small fixes * fix: remove unnecessary import * fix(tasks): update assignee form field * fix(tasks): add subscriptions to tasks * fix(tasks): code cleanup * fix(tasks): show subscribed tasks in subscribe tab * fix(tasks): set creator of task as subscriber * fix(tasks): not show avatars if no subscribers * feat(tasks): add subscribers when editing and creating a task * fix(tasks): update assignee fields, and add animation to subscribers * chore(tasks): move target content field to the top * fix(tasks): add assigned user to subscribers * feat(tasks): add listener for query params, handle copy link * fix(tasks): fix issue in which the tasks created were not saving the created value * fix(tasks): rename mention user folder * fix(tasks): add date field in edit form * fix(tasks): add discard draft action * feat(tasks): add comments * fix(tasks): add activities to the activity log (#5929) * fix(tasks): add activities to the activity log * fix(tasks): fix string logic of activities * fix(tasks): update activity components * fix(tasks): remove activity log dummy data * fix(tasks): update activity logs to work with comments --------- Co-authored-by: Pedro Bonamin <pedrobonamin@gmail.com> * fix(tasks): update tasks activity log UI * chore(tasks): simplify form, reorganise files * chore(tasks): update tasks header * fix(tasks): ui tweaks (#5947) * feat(tasks): add create task action from document (#5950) * feat(tasks): responsive sidebar (#5949) * fix(tasks): enable check for document action (#5958) * fix(tasks): update remove task dialog text, update task list item ui * fix(tasks): use TaskIcon from @sanity/icons * fix(tasks): support for disabling tasks, add default value to useProviders, move useTasksOperations * fix(tasks): hide active tab navigation when it's empty * fix(tasks): sidebar z-index * fix(tasks): turn on by default tasks config flag * fix(tasks): add support for mobile footer action --------- Co-authored-by: Nina Andal Aarvik <nina@sanity.io> Co-authored-by: Herman Wikner <wiknerherman@gmail.com>
1 parent be49900 commit 908577e

File tree

82 files changed

+3400
-955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3400
-955
lines changed
 

‎packages/sanity/src/core/config/prepareConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function prepareConfig(
196196
__internal: {
197197
sources: resolvedSources,
198198
},
199-
tasks: rawWorkspace.unstable_tasks,
199+
tasks: rawWorkspace.unstable_tasks ?? {enabled: true},
200200
}
201201
preparedWorkspaces.set(rawWorkspace, workspaceSummary)
202202
return workspaceSummary

‎packages/sanity/src/core/form/components/formField/FormFieldBaseHeader.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,12 @@ export function FormFieldBaseHeader(props: FormFieldBaseHeaderProps) {
237237
$floatingCardWidth={floatingCardWidth}
238238
$slotWidth={slotWidth}
239239
>
240-
<ContentBox flex={1} paddingY={2} $presenceMaxWidth={calcAvatarStackWidth(MAX_AVATARS)}>
240+
<ContentBox
241+
data-ui="fieldHeaderContentBox"
242+
flex={1}
243+
paddingY={2}
244+
$presenceMaxWidth={calcAvatarStackWidth(MAX_AVATARS)}
245+
>
241246
{content}
242247
</ContentBox>
243248

0 commit comments

Comments
 (0)
Please sign in to comment.