Skip to content

Commit dd0794a

Browse files
pedrobonaminsjelfullninaandal
authoredMar 8, 2024
feat(tasks): bootstrap tasks plugin (#5704)
* feat(tasks): feature bootstrap, add initial setup * fix(tasks): rename tasks provider actions, update tasks sidebar component * fix(tasks): enable tasks in staging, remove from prod * feat(core): add tasks data loading Signed-off-by: Fred Carlsen <fred@sjelfull.no> * refactor(tasks): move things around Signed-off-by: Fred Carlsen <fred@sjelfull.no> * feat(tasks): add support for showing document tasks Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: add types and export internal tag to tasks exports * chore(tasks): move files for plugin implementation * chore(tasks): add tasks export path sanity/tasks * feat(core): add studioNavbar rightSectionNode prop * feat(tasks): import tasks as a plugin * fix(tasks): setup workshop * fix(tasks): rename component files to tasks * fix(tasks): rename workshop folder * fix(tasks): get createtask workshop story to show * feat(tasks): add tasks create view * fix(tasks): update TasksSetupProvider to return client instead of creating document * feat(tasks): add tasks creation action * feat(tasks): add tasks remove and edit * feat(tasks): support document references Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fixup! feat(tasks): support document references Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fixup! feat(tasks): support document references Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): set activeTab created when creating tasks * fix(tasks): reset to created tab on delete Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): disable sidebar animation Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): small visual tweaks to task lists Signed-off-by: Fred Carlsen <fred@sjelfull.no> * feat(tasks): add document navigation from tasks * fix(tasks): update breaking types definitions * fix(tasks): add status to task * fix(tasks); sort tasks based on status * fix(tasks): run lint:fix * fix(tasks): update navbarProp * fix(tasks): add loadingstate to taskstatus * feat(tasks): add assignee property to tasks * Revert "chore(tasks): add tasks export path sanity/tasks" This reverts commit eec41ca. * chore(tasks): add tasks export path sanity/tasks * fix(tasks): add exports definitions * fix(tasks): small fixes * feat(tasks): add feature flag check * fix(tasks): fix type issue Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): utilise document preview store for document titles Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): center loading spinner Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): revert type change * fix(tasks): move styledIntentLink * fix(tasks): show 'untitled' if title is undefined * chore(tasks): create DescriptionInput * feat(tasks): support adding related documents in tasks * chore(tasks): add tasks codeowners * fix(tasks): update to useUserListWithPermission * chore(tasks): refactor file location, rename some, prepare PR * chore(tasks): reuse addonDatasetProvider, remove tasksSetupProvider * fix(tasks): add comment to tasksListTabs and rename state * fix(tasks): remove update function from tasksOperation * feat(tasks): update navigation styles, add header navigation * fix(tasks): move tasks sidebar navigation to it's own context * feat(tasks): add badge implementation of pending tasks * Revert "chore(tasks): add tasks export path sanity/tasks" This reverts commit 958a202. * fix(tasks): type error * chore(tasks): change created tab for subscribed tab in tasks navigation * chore(tasks): small ui fixes * fix(tasks): refactor tasksNavigation to a reducer, simplify state handling * refactor(tasks): include tasks plugin via config flag (#5935) Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(tasks): update pr with suggestions * fix(tasks): fix build issue, import plugin into structure plugin, update enabled checks --------- Signed-off-by: Fred Carlsen <fred@sjelfull.no> Co-authored-by: Fred Carlsen <fred@sjelfull.no> Co-authored-by: Nina Andal Aarvik <nina@sanity.io>
1 parent 96cd0b6 commit dd0794a

Some content is hidden

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

66 files changed

+2619
-26
lines changed
 

‎.eslintrc.cjs

+9
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,15 @@ const config = {
268268
'@sanity/i18n/no-attribute-template-literals': 'off',
269269
},
270270
},
271+
// Ignore i18n in Tasks files for now. This will need to be removed before task is completed.
272+
{
273+
files: ['**/*/Tasks*.{js,ts,tsx}', '**/*/tasks/**/*'],
274+
rules: {
275+
'i18next/no-literal-string': 'off',
276+
'@sanity/i18n/no-attribute-string-literals': 'off',
277+
'@sanity/i18n/no-attribute-template-literals': 'off',
278+
},
279+
},
271280

272281
// Prefer local components vs certain @sanity/ui imports (in sanity package)
273282
{

‎.github/CODEOWNERS

+3
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@
4747

4848
# Telemetry definitions
4949
*.telemetry.ts @sanity-io/growth
50+
51+
# -- Tasks --
52+
/packages/sanity/src/tasks/ @sanity-io/studio-ex

0 commit comments

Comments
 (0)
Please sign in to comment.