Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tasks): use FormBuilder to create and edit tasks. #5897

Merged
merged 55 commits into from
Mar 12, 2024
Merged

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Mar 4, 2024

Description

Necessary PRs:

Not tasks specific.

  • Updates the AddonDatasetProvider to export a ready prop, which indicates that the initial load has ended.
  • Adds data-ui=fieldHeaderContentBox into FormFieldBaseHeader to allow selecting that element and update styling accordingly.

Tasks specific

  • Introduces FormBuilder into tasks, by inserting a new AddonWorkspaceProvider and replicating the form builder logic which currently lives only in the PaneProvider.
  • Adds support for drafts, duplicate tasks.
  • Updates TasksNavigation to support copy link action.
  • Adds comments.
  • Adds activity log.

Introduces two different form for tasks, which are handled by the tasksSchema.

Create form

Will be used when creating a new one, duplicating or editing a draft.
Screenshot 2024-03-11 at 09 35 14

Edit form

Will be used when editing a task, this form has support for comments and activityLog
Screenshot 2024-03-11 at 09 34 49

What to review

Overall functionality.
Is there any harm in importing components from core into the plugin when they are not exported from core? See date input

Testing

Notes for release

Introduces drafts, duplicate, updated navigation and new form for tasks. Adds supports for comments and activity log in tasks.

@pedrobonamin pedrobonamin changed the title feat(tasks): implement FormBuilder into tasks. [WIP feat(tasks): implement FormBuilder into tasks. [WIP] Mar 4, 2024
Copy link

vercel bot commented Mar 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Mar 12, 2024 2:45pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2024 2:45pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2024 2:45pm

Copy link
Contributor

github-actions bot commented Mar 4, 2024

No changes to documentation

@pedrobonamin pedrobonamin changed the title feat(tasks): implement FormBuilder into tasks. [WIP] feat(tasks): use FormBuilder to create and edit tasks. [WIP] Mar 4, 2024
Copy link
Contributor

github-actions bot commented Mar 4, 2024

Component Testing Report Updated Mar 12, 2024 2:31 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 34s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 12s 3 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 12s 4 2 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 31s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 0s 15 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 0s 18 0 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 11s 6 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 13s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 20s 9 0 0

pedrobonamin and others added 21 commits March 12, 2024 14:53
* 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>
Copy link
Contributor

@ninaandal ninaandal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@pedrobonamin pedrobonamin added this pull request to the merge queue Mar 12, 2024
Merged via the queue into next with commit 908577e Mar 12, 2024
31 of 34 checks passed
@pedrobonamin pedrobonamin deleted the edx-1088 branch March 12, 2024 14:34
juice49 pushed a commit that referenced this pull request Mar 13, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants