-
Notifications
You must be signed in to change notification settings - Fork 414
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Mar 12, 2024 2:31 PM (UTC)
|
e1a6a23
to
ac8dcca
Compare
d8e8ada
to
aec133e
Compare
* 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>
…iders, move useTasksOperations
ninaandal
approved these changes
Mar 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Necessary PRs:
Not
tasks
specific.AddonDatasetProvider
to export aready
prop, which indicates that the initial load has ended.data-ui=fieldHeaderContentBox
into FormFieldBaseHeader to allow selecting that element and update styling accordingly.Tasks
specificFormBuilder
into tasks, by inserting a new AddonWorkspaceProvider and replicating the form builder logic which currently lives only in thePaneProvider
.drafts
,duplicate
tasks.TasksNavigation
to supportcopy link
action.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](https://private-user-images.githubusercontent.com/46196328/311635863-a8ef449c-ae4d-461a-a841-a6790c3a6920.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NTU3ODUsIm5iZiI6MTcyNTY1NTQ4NSwicGF0aCI6Ii80NjE5NjMyOC8zMTE2MzU4NjMtYThlZjQ0OWMtYWU0ZC00NjFhLWE4NDEtYTY3OTBjM2E2OTIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIwNDQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVmYzI4NjRiOTY2MzViMDAzYjBiZTU4YmExMzQzYWNhMGI3NDk4MmI5ZjBiMjZmZDFhMDRiZWVkMjUwMmE2M2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pcffViUpcBKqsR08K0MoSU1kRKJFZHOKQWW4_E2A38U)
Edit form
Will be used when editing a task, this form has support for
![Screenshot 2024-03-11 at 09 34 49](https://private-user-images.githubusercontent.com/46196328/311635757-eac34ebc-d457-47fd-b823-5571b462f359.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NTU3ODUsIm5iZiI6MTcyNTY1NTQ4NSwicGF0aCI6Ii80NjE5NjMyOC8zMTE2MzU3NTctZWFjMzRlYmMtZDQ1Ny00N2ZkLWI4MjMtNTU3MWI0NjJmMzU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIwNDQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjNGNiZDM2ODdkZjMyYzU2ZTcwMjQ0YzU3ZTczY2E3OTI1NThmMWFlMTZkMmU2NTYzZTE0MWQ2NzI4NTVhN2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.S-A_owrMO5lGBC8J-TCDFGrZ_UCUpM9tPvpcjkmYOko)
comments
andactivityLog
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 inputTesting
Notes for release
Introduces drafts, duplicate, updated navigation and new form for tasks. Adds supports for comments and activity log in tasks.