synapse-react-client 4.0.28 → 4.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SWC.index.js +1 -1
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +102 -94
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/GridMenuButton/GridMenuButton.d.ts +4 -1
- package/dist/components/DataGrid/components/GridMenuButton/GridMenuButton.d.ts.map +1 -1
- package/dist/components/DataGrid/components/GridMenuButton/GridMenuButton.js +1 -0
- package/dist/components/DataGrid/components/GridMenuButton/GridMenuButton.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +27 -20
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/features/curator/dashboard/CuratorDashboard.d.ts.map +1 -1
- package/dist/features/curator/dashboard/CuratorDashboard.js +22 -23
- package/dist/features/curator/dashboard/CuratorDashboard.js.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.css +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.js +13 -10
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.js.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.scss +20 -0
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.d.ts.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js +62 -49
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js.map +1 -1
- package/dist/features/curator/dashboard/components/FilteredByTaskIdsBanner.d.ts +10 -0
- package/dist/features/curator/dashboard/components/FilteredByTaskIdsBanner.d.ts.map +1 -0
- package/dist/features/curator/dashboard/components/FilteredByTaskIdsBanner.js +19 -0
- package/dist/features/curator/dashboard/components/FilteredByTaskIdsBanner.js.map +1 -0
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +50 -47
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.js +16 -20
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.d.ts +1 -1
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.js +89 -122
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.d.ts +1 -1
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js +77 -102
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.d.ts +6 -1
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.js +9 -2
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.d.ts +5 -1
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.js +6 -2
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.d.ts +7 -1
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.js +10 -2
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.d.ts +6 -1
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.js +9 -2
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/TaskStatusField.d.ts +19 -0
- package/dist/features/entity/metadata-task/create-task/TaskStatusField.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskStatusField.js +32 -0
- package/dist/features/entity/metadata-task/create-task/TaskStatusField.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.d.ts +21 -0
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js +100 -0
- package/dist/features/entity/metadata-task/create-task/curationTaskFlowRoutes.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useComputeTypeFields.d.ts +24 -0
- package/dist/features/entity/metadata-task/create-task/useComputeTypeFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useComputeTypeFields.js +56 -0
- package/dist/features/entity/metadata-task/create-task/useComputeTypeFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useCurateTypeFields.d.ts +26 -0
- package/dist/features/entity/metadata-task/create-task/useCurateTypeFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useCurateTypeFields.js +57 -0
- package/dist/features/entity/metadata-task/create-task/useCurateTypeFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.d.ts +4 -2
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.js +12 -11
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.d.ts +9 -14
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.js +11 -7
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.d.ts +11 -12
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.js +17 -12
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.d.ts +14 -1
- package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.js +23 -20
- package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/SynapseConstants.d.ts +1 -0
- package/dist/utils/SynapseConstants.d.ts.map +1 -1
- package/dist/utils/SynapseConstants.js +6 -5
- package/dist/utils/SynapseConstants.js.map +1 -1
- package/dist/utils/hooks/useCurationTaskListFilters.d.ts +36 -0
- package/dist/utils/hooks/useCurationTaskListFilters.d.ts.map +1 -0
- package/dist/utils/hooks/useCurationTaskListFilters.js +42 -0
- package/dist/utils/hooks/useCurationTaskListFilters.js.map +1 -0
- package/package.json +4 -4
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.d.ts +0 -18
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.d.ts.map +0 -1
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.js +0 -78
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.js.map +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { FileBasedMetadataTaskPropertiesConcreteTypeEnum as e, RecordBasedMetadataTaskPropertiesConcreteTypeEnum as t,
|
|
1
|
+
import { FileBasedMetadataTaskPropertiesConcreteTypeEnum as e, RecordBasedMetadataTaskPropertiesConcreteTypeEnum as t, RecordSetGenerationExecutionDetailsConcreteTypeEnum as n, RecordSetGenerationExecutionPropertiesConcreteTypeEnum as r, SampleSheetGenerationExecutionDetailsConcreteTypeEnum as i, SampleSheetGenerationExecutionPropertiesConcreteTypeEnum as a, TaskStatusStateEnum as o } from "@sage-bionetworks/synapse-client";
|
|
2
2
|
//#region src/features/entity/metadata-task/utils/constants.ts
|
|
3
|
-
var
|
|
4
|
-
[
|
|
3
|
+
var s = "An error occurred while trying to open Curator", c = "You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.", l = "Open Curator to edit metadata", u = "You do not have permission to view the Working Copy", d = "Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.", f = "Edit Task", p = "Update the details for this task.", m = "Select Category for New Task", h = "Back to All Tasks", g = "Compute Data", _ = "Curate Data", ee = "Create New Compute Task", v = "Fill in New Compute Data Task Details", y = "Create New Curate Task", b = "Fill in New Curate Data Task Details", x = "Compute Task Type", S = [a.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties, r.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties], C = S[0], w = {
|
|
4
|
+
[a.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties]: {
|
|
5
5
|
label: "Sample Sheet Generation",
|
|
6
6
|
description: "Generates a sample sheet from the source annotations of a file-based task and writes it to a record-based task."
|
|
7
7
|
},
|
|
8
|
-
[
|
|
8
|
+
[r.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties]: {
|
|
9
9
|
label: "Document Processing",
|
|
10
10
|
description: "Processes files in a folder to generate a CSV. The CSV is defined by a record-based task."
|
|
11
11
|
}
|
|
12
|
-
},
|
|
12
|
+
}, T = "Curate Task Type", E = [e.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties, t.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties], D = E[0], O = "File-Based Data", k = "Data consists of files uploaded to Synapse.\nRequirements: A schema for this data type exists in the system, the files have been uploaded to a Synapse folder, and a FileView has been created containing these files.", A = "Select the Synapse folder where files will be uploaded for this task.", j = "Select the Synapse file view that includes all files that should have curated metadata. If this task is used in Curator, this file view will determine which files are included.", M = "Records-Based Data", N = "Data consists of a CSV containing records as individual rows.\nRequirements: A schema for this data type exists in the system.", P = "Select the Synapse record set that should be used for this task.", F = {
|
|
13
13
|
[e.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties]: {
|
|
14
|
-
label:
|
|
15
|
-
description:
|
|
14
|
+
label: O,
|
|
15
|
+
description: k
|
|
16
16
|
},
|
|
17
17
|
[t.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties]: {
|
|
18
|
-
label:
|
|
19
|
-
description:
|
|
18
|
+
label: M,
|
|
19
|
+
description: N
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, I = "Authorization Mode", L = "Choose how contributors share access to the grid session for this task.", R = "Work independently", z = "This is the legacy behavior. Each contributor works on their own view of the data, based on what they personally have permission to edit. Without coordination, users may overwrite each other’s annotations.", B = "Share with assignees only", V = "The assigned user or team works together in one shared grid session. Only those assignees can join, and they’ll only see rows that every assignee has permission to edit.", H = "Share with all editors", U = "Contributors work together in one shared grid session. Anyone who has edit access to the task’s data can join and edit the rows available in the session.", W = [
|
|
22
22
|
"NONE",
|
|
23
23
|
"SESSION_OWNER",
|
|
24
24
|
"SOURCE_BENEFACTOR"
|
|
25
|
-
],
|
|
25
|
+
], G = {
|
|
26
26
|
NONE: {
|
|
27
|
-
label:
|
|
28
|
-
tooltip:
|
|
27
|
+
label: R,
|
|
28
|
+
tooltip: z
|
|
29
29
|
},
|
|
30
30
|
SESSION_OWNER: {
|
|
31
|
-
label:
|
|
32
|
-
tooltip:
|
|
31
|
+
label: B,
|
|
32
|
+
tooltip: V
|
|
33
33
|
},
|
|
34
34
|
SOURCE_BENEFACTOR: {
|
|
35
|
-
label:
|
|
36
|
-
tooltip:
|
|
35
|
+
label: H,
|
|
36
|
+
tooltip: U
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, K = "Changing the Authorization Mode will clear the active session ID on this task. Any in-progress grid session linked to this task will no longer be associated with it.", q = "Select Upload Folder", J = "Select the folder where data files will be uploaded.", Y = "Select File View", X = "Select the FileView used to create grid sessions for this task.", Z = "Select Record Set", Q = "Select the RecordSet used to start grid sessions for this task.", $ = "Project", te = "Select the Synapse project this task belongs to.", ne = "Select Project", re = "Select the project for this task.", ie = "Enter a clear, descriptive name for the curation task.", ae = "Task Due Date", oe = "Enter the date by which this task should be completed.", se = "Provide any details the assignee needs to complete the task.", ce = "List the person or team responsible for completing the task.", le = "Input Task ID", ue = "The ID of the file-based task whose FileView provides the source annotations.", de = "Destination Task ID", fe = "The ID of the record-based task whose RecordSet will receive the generated sample sheet.", pe = "Source Folder", me = "Select the folder whose files will be transformed into the generated CSV.", he = "Select Source Folder", ge = "Select the folder containing the files to be transformed.", _e = "Agent Instructions", ve = "Instructions for the agent describing how the input files should be transformed to produce the output CSV.", ye = "Destination Task ID", be = "The ID of the record-based task whose RecordSet will receive the generated CSV.", xe = "Must be a positive whole number", Se = "Task Created", Ce = "Your new task has been created and is ready to be configured.", we = "This task has an unrecognized task type. Its category-specific fields cannot be edited here.", Te = "An error occurred. Please try again.", Ee = "Status", De = {
|
|
39
39
|
NOT_STARTED: {
|
|
40
40
|
label: "Not Started",
|
|
41
41
|
backgroundColor: "#EAECEE"
|
|
@@ -60,8 +60,11 @@ var i = "An error occurred while trying to open Curator", a = "You don't have pe
|
|
|
60
60
|
label: "Canceled",
|
|
61
61
|
backgroundColor: "#FFCCBC"
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, Oe = [o.EXECUTING, o.CANCELED], ke = [o.EXECUTING], Ae = "Delete Task", je = "Are you sure you want to delete this task? This action cannot be undone.", Me = "Any grid sessions associated with this task will also be deleted.", Ne = "Task deleted successfully", Pe = "Error deleting task: ", Fe = "The task was created, but its due date and status could not be saved. You can set them by editing the task.", Ie = "Create Curation Task", Le = "Edit Curation Task", Re = "Choose the type of data this curation task will manage. This cannot be changed after the task is created.", ze = "Collaborators can contribute to the grid session alongside the assignee. For \"Session Owner\" authorization mode, collaborators are added as additional owners of the session.", Be = "This task has an unrecognized task type and cannot be edited here.", Ve = {
|
|
64
|
+
[a.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties]: { concreteType: i.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionDetails },
|
|
65
|
+
[r.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties]: { concreteType: n.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionDetails }
|
|
66
|
+
};
|
|
64
67
|
//#endregion
|
|
65
|
-
export {
|
|
68
|
+
export { ce as ASSIGNEE_INPUT_DESCRIPTION, K as AUTH_MODE_CHANGED_WARNING, G as AUTH_MODE_CONFIG, L as AUTH_MODE_INPUT_DESCRIPTION, I as AUTH_MODE_INPUT_LABEL, R as AUTH_MODE_NONE_TITLE, z as AUTH_MODE_NONE_TOOLTIP, W as AUTH_MODE_OPTIONS, B as AUTH_MODE_SESSION_OWNER_TITLE, V as AUTH_MODE_SESSION_OWNER_TOOLTIP, H as AUTH_MODE_SOURCE_BENEFACTOR_TITLE, U as AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP, h as BACK_TO_ALL_TASKS_LABEL, ze as COLLABORATORS_TOOLTIP, g as COMPUTE_TASK_CATEGORY_TITLE, Oe as COMPUTE_TASK_DISABLED_STATUS_STATES, Ve as COMPUTE_TASK_EXECUTION_DETAILS, w as COMPUTE_TASK_TYPE_CONFIG, x as COMPUTE_TASK_TYPE_INPUT_LABEL, S as COMPUTE_TASK_TYPE_OPTIONS, ee as CREATE_COMPUTE_TASK_PAGE_TITLE, y as CREATE_CURATE_TASK_PAGE_TITLE, Ie as CREATE_CURATION_TASK_DIALOG_TITLE, Ce as CREATE_TASK_CONFIRMATION_DESCRIPTION, Se as CREATE_TASK_CONFIRMATION_TITLE, Fe as CREATE_TASK_STATUS_NOT_SAVED_WARNING, _ as CURATE_TASK_CATEGORY_TITLE, ke as CURATE_TASK_DISABLED_STATUS_STATES, F as CURATE_TASK_TYPE_CONFIG, T as CURATE_TASK_TYPE_INPUT_LABEL, E as CURATE_TASK_TYPE_OPTIONS, C as DEFAULT_COMPUTE_TASK_TYPE, D as DEFAULT_CURATE_TASK_TYPE, je as DELETE_CURATION_TASK_CONFIRMATION_PROMPT, Ae as DELETE_CURATION_TASK_DIALOG_TITLE, Pe as DELETE_CURATION_TASK_ERROR_TOAST_PREFIX, Me as DELETE_CURATION_TASK_GRID_SESSION_WARNING, Ne as DELETE_CURATION_TASK_SUCCESS_TOAST, Le as EDIT_CURATION_TASK_DIALOG_TITLE, p as EDIT_CURATION_TASK_PAGE_DESCRIPTION, f as EDIT_CURATION_TASK_PAGE_TITLE, we as EDIT_TASK_UNRECOGNIZED_TYPE_MESSAGE, j as FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION, k as FILE_BASED_TASK_DESCRIPTION, O as FILE_BASED_TASK_TITLE, A as FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION, X as FILE_VIEW_FINDER_PROMPT, Y as FILE_VIEW_FINDER_TITLE, v as FILL_IN_COMPUTE_TASK_DETAILS_DESCRIPTION, b as FILL_IN_CURATE_TASK_DETAILS_DESCRIPTION, Te as GENERIC_SAVE_ERROR_MESSAGE, s as OPEN_CURATOR_ERROR_TITLE, d as OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE, u as OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE, l as OPEN_CURATOR_TOOLTIP_TITLE, c as OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE, re as PROJECT_FINDER_PROMPT, ne as PROJECT_FINDER_TITLE, te as PROJECT_SELECTOR_DESCRIPTION, $ as PROJECT_SELECTOR_LABEL, P as RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION, N as RECORD_BASED_TASK_DESCRIPTION, M as RECORD_BASED_TASK_TITLE, be as RECORD_SET_DESTINATION_TASK_ID_DESCRIPTION, ye as RECORD_SET_DESTINATION_TASK_ID_LABEL, Q as RECORD_SET_FINDER_PROMPT, Z as RECORD_SET_FINDER_TITLE, ge as RECORD_SET_FOLDER_FINDER_PROMPT, he as RECORD_SET_FOLDER_FINDER_TITLE, me as RECORD_SET_FOLDER_ID_DESCRIPTION, pe as RECORD_SET_FOLDER_ID_LABEL, ve as RECORD_SET_INSTRUCTIONS_DESCRIPTION, _e as RECORD_SET_INSTRUCTIONS_LABEL, fe as SAMPLE_SHEET_DESTINATION_TASK_ID_DESCRIPTION, de as SAMPLE_SHEET_DESTINATION_TASK_ID_LABEL, ue as SAMPLE_SHEET_INPUT_TASK_ID_DESCRIPTION, le as SAMPLE_SHEET_INPUT_TASK_ID_LABEL, m as SELECT_TASK_CATEGORY_DESCRIPTION, Re as SELECT_TASK_TYPE_DESCRIPTION, oe as TASK_DUE_DATE_INPUT_DESCRIPTION, ae as TASK_DUE_DATE_INPUT_LABEL, xe as TASK_ID_FIELD_INVALID_ERROR_MESSAGE, se as TASK_INSTRUCTIONS_INPUT_DESCRIPTION, ie as TASK_NAME_INPUT_DESCRIPTION, De as TASK_STATUS_CONFIG, Ee as TASK_STATUS_INPUT_LABEL, Be as UNRECOGNIZED_TASK_TYPE_ERROR, J as UPLOAD_FOLDER_FINDER_PROMPT, q as UPLOAD_FOLDER_FINDER_TITLE };
|
|
66
69
|
|
|
67
70
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"sourcesContent":["import {\n FileBasedMetadataTaskPropertiesConcreteTypeEnum,\n RecordBasedMetadataTaskPropertiesConcreteTypeEnum,\n RecordSetGenerationExecutionPropertiesConcreteTypeEnum,\n SampleSheetGenerationExecutionPropertiesConcreteTypeEnum,\n TaskStatusStateEnum,\n} from '@sage-bionetworks/synapse-client'\n\nexport const OPEN_CURATOR_ERROR_TITLE =\n 'An error occurred while trying to open Curator'\nexport const OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE =\n \"You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.\"\n\nexport const OPEN_CURATOR_TOOLTIP_TITLE = 'Open Curator to edit metadata'\nexport const OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE =\n 'You do not have permission to view the Working Copy'\nexport const OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE =\n 'Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.'\n\n// Create/Edit Curation Task pages (see `create-task/`)\n\nexport const EDIT_CURATION_TASK_PAGE_TITLE = 'Edit Task'\nexport const EDIT_CURATION_TASK_PAGE_DESCRIPTION =\n 'Update the details for this task.'\n\nexport const SELECT_TASK_CATEGORY_DESCRIPTION = 'Select Category for New Task'\n\nexport const BACK_TO_ALL_TASKS_LABEL = 'Back to All Tasks'\n\nexport const COMPUTE_TASK_CATEGORY_TITLE = 'Compute Data'\nexport const CURATE_TASK_CATEGORY_TITLE = 'Curate Data'\n\nexport const CREATE_COMPUTE_TASK_PAGE_TITLE = 'Create New Compute Task'\nexport const FILL_IN_COMPUTE_TASK_DETAILS_DESCRIPTION =\n 'Fill in New Compute Data Task Details'\n\nexport const CREATE_CURATE_TASK_PAGE_TITLE = 'Create New Curate Task'\nexport const FILL_IN_CURATE_TASK_DETAILS_DESCRIPTION =\n 'Fill in New Curate Data Task Details'\n\nexport const COMPUTE_TASK_TYPE_INPUT_LABEL = 'Compute Task Type'\n\n/** The two supported Compute Data concrete types, in the order they should be presented in the type selector. */\nexport const COMPUTE_TASK_TYPE_OPTIONS = [\n SampleSheetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties,\n RecordSetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties,\n] as const\n\nexport const DEFAULT_COMPUTE_TASK_TYPE = COMPUTE_TASK_TYPE_OPTIONS[0]\n\n/**\n * Config for the two supported Compute Data task types. Centralized here so that labels/descriptions\n * can be changed easily without hunting through the form components.\n */\nexport const COMPUTE_TASK_TYPE_CONFIG: Record<\n | SampleSheetGenerationExecutionPropertiesConcreteTypeEnum\n | RecordSetGenerationExecutionPropertiesConcreteTypeEnum,\n { label: string; description: string }\n> = {\n [SampleSheetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties]:\n {\n label: 'Sample Sheet Generation',\n description:\n 'Generates a sample sheet from the source annotations of a file-based task and writes it to a record-based task.',\n },\n [RecordSetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties]:\n {\n label: 'Document Processing',\n description:\n 'Processes files in a folder to generate a CSV. The CSV is defined by a record-based task.',\n },\n}\n\nexport const CURATE_TASK_TYPE_INPUT_LABEL = 'Curate Task Type'\n\n/** The two supported Curate Data concrete types, in the order they should be presented in the type selector. */\nexport const CURATE_TASK_TYPE_OPTIONS = [\n FileBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties,\n RecordBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties,\n] as const\n\nexport const DEFAULT_CURATE_TASK_TYPE = CURATE_TASK_TYPE_OPTIONS[0]\n\nexport const FILE_BASED_TASK_TITLE = 'File-Based Data'\nexport const FILE_BASED_TASK_DESCRIPTION =\n 'Data consists of files uploaded to Synapse.\\nRequirements: A schema for this data type exists in the system, the files have been uploaded to a Synapse folder, and a FileView has been created containing these files.'\n\nexport const FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION =\n 'Select the Synapse folder where files will be uploaded for this task.'\nexport const FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION =\n 'Select the Synapse file view that includes all files that should have curated metadata. If this task is used in Curator, this file view will determine which files are included.'\n\nexport const RECORD_BASED_TASK_TITLE = 'Records-Based Data'\nexport const RECORD_BASED_TASK_DESCRIPTION =\n 'Data consists of a CSV containing records as individual rows.\\nRequirements: A schema for this data type exists in the system.'\n\nexport const RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION =\n 'Select the Synapse record set that should be used for this task.'\n\n/**\n * Config for the two supported Curate Data task types. Centralized here so that labels/descriptions\n * can be changed easily without hunting through the form components.\n */\nexport const CURATE_TASK_TYPE_CONFIG: Record<\n | FileBasedMetadataTaskPropertiesConcreteTypeEnum\n | RecordBasedMetadataTaskPropertiesConcreteTypeEnum,\n { label: string; description: string }\n> = {\n [FileBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties]:\n {\n label: FILE_BASED_TASK_TITLE,\n description: FILE_BASED_TASK_DESCRIPTION,\n },\n [RecordBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties]:\n {\n label: RECORD_BASED_TASK_TITLE,\n description: RECORD_BASED_TASK_DESCRIPTION,\n },\n}\n\nexport const AUTH_MODE_INPUT_LABEL = 'Authorization Mode'\nexport const AUTH_MODE_INPUT_DESCRIPTION =\n 'Choose how contributors share access to the grid session for this task.'\nexport const AUTH_MODE_NONE_TITLE = 'Work independently'\nexport const AUTH_MODE_NONE_TOOLTIP =\n 'This is the legacy behavior. Each contributor works on their own view of the data, based on what they personally have permission to edit. Without coordination, users may overwrite each other’s annotations.'\n\nexport const AUTH_MODE_SESSION_OWNER_TITLE = 'Share with assignees only'\nexport const AUTH_MODE_SESSION_OWNER_TOOLTIP =\n 'The assigned user or team works together in one shared grid session. Only those assignees can join, and they’ll only see rows that every assignee has permission to edit.'\n\nexport const AUTH_MODE_SOURCE_BENEFACTOR_TITLE = 'Share with all editors'\nexport const AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP =\n 'Contributors work together in one shared grid session. Anyone who has edit access to the task’s data can join and edit the rows available in the session.'\n\n/** The authorization mode options, in the order they should be presented in the selector. */\nexport const AUTH_MODE_OPTIONS = [\n 'NONE',\n 'SESSION_OWNER',\n 'SOURCE_BENEFACTOR',\n] as const\n\n/**\n * Config for the authorization mode options. Centralized here so labels/tooltips can be changed\n * easily without hunting through the form components.\n */\nexport const AUTH_MODE_CONFIG: Record<\n (typeof AUTH_MODE_OPTIONS)[number],\n { label: string; tooltip: string }\n> = {\n NONE: { label: AUTH_MODE_NONE_TITLE, tooltip: AUTH_MODE_NONE_TOOLTIP },\n SESSION_OWNER: {\n label: AUTH_MODE_SESSION_OWNER_TITLE,\n tooltip: AUTH_MODE_SESSION_OWNER_TOOLTIP,\n },\n SOURCE_BENEFACTOR: {\n label: AUTH_MODE_SOURCE_BENEFACTOR_TITLE,\n tooltip: AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP,\n },\n}\n\nexport const AUTH_MODE_CHANGED_WARNING =\n 'Changing the Authorization Mode will clear the active session ID on this task. Any in-progress grid session linked to this task will no longer be associated with it.'\n\nexport const UPLOAD_FOLDER_FINDER_TITLE = 'Select Upload Folder'\nexport const UPLOAD_FOLDER_FINDER_PROMPT =\n 'Select the folder where data files will be uploaded.'\n\nexport const FILE_VIEW_FINDER_TITLE = 'Select File View'\nexport const FILE_VIEW_FINDER_PROMPT =\n 'Select the FileView used to create grid sessions for this task.'\n\nexport const RECORD_SET_FINDER_TITLE = 'Select Record Set'\nexport const RECORD_SET_FINDER_PROMPT =\n 'Select the RecordSet used to start grid sessions for this task.'\n\nexport const PROJECT_SELECTOR_LABEL = 'Project'\nexport const PROJECT_SELECTOR_DESCRIPTION =\n 'Select the Synapse project this task belongs to.'\nexport const PROJECT_FINDER_TITLE = 'Select Project'\nexport const PROJECT_FINDER_PROMPT = 'Select the project for this task.'\n\nexport const TASK_NAME_INPUT_DESCRIPTION =\n 'Enter a clear, descriptive name for the curation task.'\nexport const TASK_DUE_DATE_INPUT_LABEL = 'Task Due Date'\nexport const TASK_DUE_DATE_INPUT_DESCRIPTION =\n 'Enter the date by which this task should be completed.'\nexport const TASK_INSTRUCTIONS_INPUT_DESCRIPTION =\n 'Provide any details the assignee needs to complete the task.'\n\nexport const ASSIGNEE_INPUT_DESCRIPTION =\n 'List the person or team responsible for completing the task.'\n\nexport const SAMPLE_SHEET_INPUT_TASK_ID_LABEL = 'Input Task ID'\nexport const SAMPLE_SHEET_INPUT_TASK_ID_DESCRIPTION =\n 'The ID of the file-based task whose FileView provides the source annotations.'\nexport const SAMPLE_SHEET_DESTINATION_TASK_ID_LABEL = 'Destination Task ID'\nexport const SAMPLE_SHEET_DESTINATION_TASK_ID_DESCRIPTION =\n 'The ID of the record-based task whose RecordSet will receive the generated sample sheet.'\n\nexport const RECORD_SET_FOLDER_ID_LABEL = 'Source Folder'\nexport const RECORD_SET_FOLDER_ID_DESCRIPTION =\n 'Select the folder whose files will be transformed into the generated CSV.'\nexport const RECORD_SET_FOLDER_FINDER_TITLE = 'Select Source Folder'\nexport const RECORD_SET_FOLDER_FINDER_PROMPT =\n 'Select the folder containing the files to be transformed.'\nexport const RECORD_SET_INSTRUCTIONS_LABEL = 'Agent Instructions'\nexport const RECORD_SET_INSTRUCTIONS_DESCRIPTION =\n 'Instructions for the agent describing how the input files should be transformed to produce the output CSV.'\nexport const RECORD_SET_DESTINATION_TASK_ID_LABEL = 'Destination Task ID'\nexport const RECORD_SET_DESTINATION_TASK_ID_DESCRIPTION =\n 'The ID of the record-based task whose RecordSet will receive the generated CSV.'\n\nexport const TASK_ID_FIELD_INVALID_ERROR_MESSAGE =\n 'Must be a positive whole number'\n\nexport const CREATE_TASK_CONFIRMATION_TITLE = 'Task Created'\nexport const CREATE_TASK_CONFIRMATION_DESCRIPTION =\n 'Your new task has been created and is ready to be configured.'\n\nexport const EDIT_TASK_UNRECOGNIZED_TYPE_MESSAGE =\n 'This task has an unrecognized task type. Its category-specific fields cannot be edited here.'\n\nexport const GENERIC_SAVE_ERROR_MESSAGE = 'An error occurred. Please try again.'\n\nexport const TASK_STATUS_INPUT_LABEL = 'Status'\n\nexport const TASK_STATUS_CONFIG: Record<\n TaskStatusStateEnum,\n { label: string; backgroundColor: string }\n> = {\n NOT_STARTED: { label: 'Not Started', backgroundColor: '#EAECEE' },\n IN_PROGRESS: { label: 'In Progress', backgroundColor: '#FFF3CD' },\n EXECUTING: { label: 'Executing', backgroundColor: '#FFF3CD' },\n IN_REVIEW: { label: 'Needs Review', backgroundColor: '#B8CCFF' },\n COMPLETED: { label: 'Completed', backgroundColor: '#C8E6C9' },\n CANCELED: { label: 'Canceled', backgroundColor: '#FFCCBC' },\n}\n\nexport const DELETE_CURATION_TASK_DIALOG_TITLE = 'Delete Task'\nexport const DELETE_CURATION_TASK_CONFIRMATION_PROMPT =\n 'Are you sure you want to delete this task? This action cannot be undone.'\nexport const DELETE_CURATION_TASK_GRID_SESSION_WARNING =\n 'Any grid sessions associated with this task will also be deleted.'\nexport const DELETE_CURATION_TASK_SUCCESS_TOAST = 'Task deleted successfully'\nexport const DELETE_CURATION_TASK_ERROR_TOAST_PREFIX = 'Error deleting task: '\n\nexport const CREATE_TASK_STATUS_NOT_SAVED_WARNING =\n 'The task was created, but its due date and status could not be saved. You can set them by editing the task.'\n\n// The following constants are consumed by the legacy CreateOrUpdateCurationTaskDialog, which is\n// removed in a follow-up PR. They are retained here so the dialog continues to compile until then.\nexport const CREATE_CURATION_TASK_DIALOG_TITLE = 'Create Curation Task'\nexport const EDIT_CURATION_TASK_DIALOG_TITLE = 'Edit Curation Task'\nexport const SELECT_TASK_TYPE_DESCRIPTION =\n 'Choose the type of data this curation task will manage. This cannot be changed after the task is created.'\nexport const COLLABORATORS_TOOLTIP =\n 'Collaborators can contribute to the grid session alongside the assignee. For \"Session Owner\" authorization mode, collaborators are added as additional owners of the session.'\nexport const UNRECOGNIZED_TASK_TYPE_ERROR =\n 'This task has an unrecognized task type and cannot be edited here.'\n"],"mappings":";;AAQA,IAAa,IACX,kDACW,IACX,+MAEW,IAA6B,iCAC7B,IACX,uDACW,IACX,iIAIW,IAAgC,aAChC,IACX,qCAEW,IAAmC,gCAEnC,IAA0B,qBAE1B,IAA8B,gBAC9B,IAA6B,eAE7B,IAAiC,2BACjC,IACX,yCAEW,KAAgC,0BAChC,IACX,wCAEW,IAAgC,qBAGhC,IAA4B,CACvC,EAAyD,4FACzD,EAAuD,wFACzD,GAEa,IAA4B,EAA0B,IAMtD,IAIT;EACD,EAAyD,6FACxD;EACE,OAAO;EACP,aACE;CACJ;EACD,EAAuD,2FACtD;EACE,OAAO;EACP,aACE;CACJ;AACJ,GAEa,IAA+B,oBAG/B,IAA2B,CACtC,EAAgD,kFAChD,EAAkD,kFACpD,GAEa,IAA2B,EAAyB,IAEpD,IAAwB,mBACxB,IACX,0NAEW,IACX,yEACW,IACX,oLAEW,IAA0B,sBAC1B,IACX,kIAEW,IACX,oEAMW,IAIT;EACD,EAAgD,mFAC/C;EACE,OAAO;EACP,aAAa;CACf;EACD,EAAkD,qFACjD;EACE,OAAO;EACP,aAAa;CACf;AACJ,GAEa,IAAwB,sBACxB,IACX,2EACW,IAAuB,sBACvB,IACX,iNAEW,IAAgC,6BAChC,IACX,6KAEW,IAAoC,0BACpC,IACX,6JAGW,IAAoB;CAC/B;CACA;CACA;AACF,GAMa,IAGT;CACF,MAAM;EAAE,OAAO;EAAsB,SAAS;CAAuB;CACrE,eAAe;EACb,OAAO;EACP,SAAS;CACX;CACA,mBAAmB;EACjB,OAAO;EACP,SAAS;CACX;AACF,GAEa,IACX,yKAEW,IAA6B,wBAC7B,IACX,wDAEW,IAAyB,oBACzB,IACX,mEAEW,IAA0B,qBAC1B,IACX,mEAEW,IAAyB,WACzB,IACX,oDACW,IAAuB,kBACvB,IAAwB,qCAExB,KACX,0DACW,KAA4B,iBAC5B,KACX,0DACW,KACX,gEAEW,KACX,gEAEW,KAAmC,iBACnC,KACX,iFACW,KAAyC,uBACzC,KACX,4FAEW,KAA6B,iBAC7B,KACX,6EACW,KAAiC,wBACjC,KACX,6DACW,KAAgC,sBAChC,KACX,8GACW,KAAuC,uBACvC,KACX,mFAEW,KACX,mCAEW,KAAiC,gBACjC,KACX,iEAEW,KACX,gGAEW,KAA6B,wCAE7B,KAA0B,UAE1B,KAGT;CACF,aAAa;EAAE,OAAO;EAAe,iBAAiB;CAAU;CAChE,aAAa;EAAE,OAAO;EAAe,iBAAiB;CAAU;CAChE,WAAW;EAAE,OAAO;EAAa,iBAAiB;CAAU;CAC5D,WAAW;EAAE,OAAO;EAAgB,iBAAiB;CAAU;CAC/D,WAAW;EAAE,OAAO;EAAa,iBAAiB;CAAU;CAC5D,UAAU;EAAE,OAAO;EAAY,iBAAiB;CAAU;AAC5D,GAEa,KAAoC,eACpC,KACX,4EACW,KACX,qEACW,KAAqC,6BACrC,KAA0C,yBAE1C,KACX,+GAIW,KAAoC,wBACpC,KAAkC,sBAClC,KACX,6GACW,KACX,mLACW,KACX"}
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"sourcesContent":["import {\n FileBasedMetadataTaskPropertiesConcreteTypeEnum,\n RecordBasedMetadataTaskPropertiesConcreteTypeEnum,\n RecordSetGenerationExecutionDetailsConcreteTypeEnum,\n RecordSetGenerationExecutionPropertiesConcreteTypeEnum,\n SampleSheetGenerationExecutionDetailsConcreteTypeEnum,\n SampleSheetGenerationExecutionPropertiesConcreteTypeEnum,\n TaskExecutionDetails,\n TaskStatusStateEnum,\n} from '@sage-bionetworks/synapse-client'\nimport { ComputeTaskConcreteType } from './types'\n\nexport const OPEN_CURATOR_ERROR_TITLE =\n 'An error occurred while trying to open Curator'\nexport const OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE =\n \"You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.\"\n\nexport const OPEN_CURATOR_TOOLTIP_TITLE = 'Open Curator to edit metadata'\nexport const OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE =\n 'You do not have permission to view the Working Copy'\nexport const OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE =\n 'Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.'\n\n// Create/Edit Curation Task pages (see `create-task/`)\n\nexport const EDIT_CURATION_TASK_PAGE_TITLE = 'Edit Task'\nexport const EDIT_CURATION_TASK_PAGE_DESCRIPTION =\n 'Update the details for this task.'\n\nexport const SELECT_TASK_CATEGORY_DESCRIPTION = 'Select Category for New Task'\n\nexport const BACK_TO_ALL_TASKS_LABEL = 'Back to All Tasks'\n\nexport const COMPUTE_TASK_CATEGORY_TITLE = 'Compute Data'\nexport const CURATE_TASK_CATEGORY_TITLE = 'Curate Data'\n\nexport const CREATE_COMPUTE_TASK_PAGE_TITLE = 'Create New Compute Task'\nexport const FILL_IN_COMPUTE_TASK_DETAILS_DESCRIPTION =\n 'Fill in New Compute Data Task Details'\n\nexport const CREATE_CURATE_TASK_PAGE_TITLE = 'Create New Curate Task'\nexport const FILL_IN_CURATE_TASK_DETAILS_DESCRIPTION =\n 'Fill in New Curate Data Task Details'\n\nexport const COMPUTE_TASK_TYPE_INPUT_LABEL = 'Compute Task Type'\n\n/** The two supported Compute Data concrete types, in the order they should be presented in the type selector. */\nexport const COMPUTE_TASK_TYPE_OPTIONS = [\n SampleSheetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties,\n RecordSetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties,\n] as const\n\nexport const DEFAULT_COMPUTE_TASK_TYPE = COMPUTE_TASK_TYPE_OPTIONS[0]\n\n/**\n * Config for the two supported Compute Data task types. Centralized here so that labels/descriptions\n * can be changed easily without hunting through the form components.\n */\nexport const COMPUTE_TASK_TYPE_CONFIG: Record<\n | SampleSheetGenerationExecutionPropertiesConcreteTypeEnum\n | RecordSetGenerationExecutionPropertiesConcreteTypeEnum,\n { label: string; description: string }\n> = {\n [SampleSheetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties]:\n {\n label: 'Sample Sheet Generation',\n description:\n 'Generates a sample sheet from the source annotations of a file-based task and writes it to a record-based task.',\n },\n [RecordSetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties]:\n {\n label: 'Document Processing',\n description:\n 'Processes files in a folder to generate a CSV. The CSV is defined by a record-based task.',\n },\n}\n\nexport const CURATE_TASK_TYPE_INPUT_LABEL = 'Curate Task Type'\n\n/** The two supported Curate Data concrete types, in the order they should be presented in the type selector. */\nexport const CURATE_TASK_TYPE_OPTIONS = [\n FileBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties,\n RecordBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties,\n] as const\n\nexport const DEFAULT_CURATE_TASK_TYPE = CURATE_TASK_TYPE_OPTIONS[0]\n\nexport const FILE_BASED_TASK_TITLE = 'File-Based Data'\nexport const FILE_BASED_TASK_DESCRIPTION =\n 'Data consists of files uploaded to Synapse.\\nRequirements: A schema for this data type exists in the system, the files have been uploaded to a Synapse folder, and a FileView has been created containing these files.'\n\nexport const FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION =\n 'Select the Synapse folder where files will be uploaded for this task.'\nexport const FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION =\n 'Select the Synapse file view that includes all files that should have curated metadata. If this task is used in Curator, this file view will determine which files are included.'\n\nexport const RECORD_BASED_TASK_TITLE = 'Records-Based Data'\nexport const RECORD_BASED_TASK_DESCRIPTION =\n 'Data consists of a CSV containing records as individual rows.\\nRequirements: A schema for this data type exists in the system.'\n\nexport const RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION =\n 'Select the Synapse record set that should be used for this task.'\n\n/**\n * Config for the two supported Curate Data task types. Centralized here so that labels/descriptions\n * can be changed easily without hunting through the form components.\n */\nexport const CURATE_TASK_TYPE_CONFIG: Record<\n | FileBasedMetadataTaskPropertiesConcreteTypeEnum\n | RecordBasedMetadataTaskPropertiesConcreteTypeEnum,\n { label: string; description: string }\n> = {\n [FileBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties]:\n {\n label: FILE_BASED_TASK_TITLE,\n description: FILE_BASED_TASK_DESCRIPTION,\n },\n [RecordBasedMetadataTaskPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties]:\n {\n label: RECORD_BASED_TASK_TITLE,\n description: RECORD_BASED_TASK_DESCRIPTION,\n },\n}\n\nexport const AUTH_MODE_INPUT_LABEL = 'Authorization Mode'\nexport const AUTH_MODE_INPUT_DESCRIPTION =\n 'Choose how contributors share access to the grid session for this task.'\nexport const AUTH_MODE_NONE_TITLE = 'Work independently'\nexport const AUTH_MODE_NONE_TOOLTIP =\n 'This is the legacy behavior. Each contributor works on their own view of the data, based on what they personally have permission to edit. Without coordination, users may overwrite each other’s annotations.'\n\nexport const AUTH_MODE_SESSION_OWNER_TITLE = 'Share with assignees only'\nexport const AUTH_MODE_SESSION_OWNER_TOOLTIP =\n 'The assigned user or team works together in one shared grid session. Only those assignees can join, and they’ll only see rows that every assignee has permission to edit.'\n\nexport const AUTH_MODE_SOURCE_BENEFACTOR_TITLE = 'Share with all editors'\nexport const AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP =\n 'Contributors work together in one shared grid session. Anyone who has edit access to the task’s data can join and edit the rows available in the session.'\n\n/** The authorization mode options, in the order they should be presented in the selector. */\nexport const AUTH_MODE_OPTIONS = [\n 'NONE',\n 'SESSION_OWNER',\n 'SOURCE_BENEFACTOR',\n] as const\n\n/**\n * Config for the authorization mode options. Centralized here so labels/tooltips can be changed\n * easily without hunting through the form components.\n */\nexport const AUTH_MODE_CONFIG: Record<\n (typeof AUTH_MODE_OPTIONS)[number],\n { label: string; tooltip: string }\n> = {\n NONE: { label: AUTH_MODE_NONE_TITLE, tooltip: AUTH_MODE_NONE_TOOLTIP },\n SESSION_OWNER: {\n label: AUTH_MODE_SESSION_OWNER_TITLE,\n tooltip: AUTH_MODE_SESSION_OWNER_TOOLTIP,\n },\n SOURCE_BENEFACTOR: {\n label: AUTH_MODE_SOURCE_BENEFACTOR_TITLE,\n tooltip: AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP,\n },\n}\n\nexport const AUTH_MODE_CHANGED_WARNING =\n 'Changing the Authorization Mode will clear the active session ID on this task. Any in-progress grid session linked to this task will no longer be associated with it.'\n\nexport const UPLOAD_FOLDER_FINDER_TITLE = 'Select Upload Folder'\nexport const UPLOAD_FOLDER_FINDER_PROMPT =\n 'Select the folder where data files will be uploaded.'\n\nexport const FILE_VIEW_FINDER_TITLE = 'Select File View'\nexport const FILE_VIEW_FINDER_PROMPT =\n 'Select the FileView used to create grid sessions for this task.'\n\nexport const RECORD_SET_FINDER_TITLE = 'Select Record Set'\nexport const RECORD_SET_FINDER_PROMPT =\n 'Select the RecordSet used to start grid sessions for this task.'\n\nexport const PROJECT_SELECTOR_LABEL = 'Project'\nexport const PROJECT_SELECTOR_DESCRIPTION =\n 'Select the Synapse project this task belongs to.'\nexport const PROJECT_FINDER_TITLE = 'Select Project'\nexport const PROJECT_FINDER_PROMPT = 'Select the project for this task.'\n\nexport const TASK_NAME_INPUT_DESCRIPTION =\n 'Enter a clear, descriptive name for the curation task.'\nexport const TASK_DUE_DATE_INPUT_LABEL = 'Task Due Date'\nexport const TASK_DUE_DATE_INPUT_DESCRIPTION =\n 'Enter the date by which this task should be completed.'\nexport const TASK_INSTRUCTIONS_INPUT_DESCRIPTION =\n 'Provide any details the assignee needs to complete the task.'\n\nexport const ASSIGNEE_INPUT_DESCRIPTION =\n 'List the person or team responsible for completing the task.'\n\nexport const SAMPLE_SHEET_INPUT_TASK_ID_LABEL = 'Input Task ID'\nexport const SAMPLE_SHEET_INPUT_TASK_ID_DESCRIPTION =\n 'The ID of the file-based task whose FileView provides the source annotations.'\nexport const SAMPLE_SHEET_DESTINATION_TASK_ID_LABEL = 'Destination Task ID'\nexport const SAMPLE_SHEET_DESTINATION_TASK_ID_DESCRIPTION =\n 'The ID of the record-based task whose RecordSet will receive the generated sample sheet.'\n\nexport const RECORD_SET_FOLDER_ID_LABEL = 'Source Folder'\nexport const RECORD_SET_FOLDER_ID_DESCRIPTION =\n 'Select the folder whose files will be transformed into the generated CSV.'\nexport const RECORD_SET_FOLDER_FINDER_TITLE = 'Select Source Folder'\nexport const RECORD_SET_FOLDER_FINDER_PROMPT =\n 'Select the folder containing the files to be transformed.'\nexport const RECORD_SET_INSTRUCTIONS_LABEL = 'Agent Instructions'\nexport const RECORD_SET_INSTRUCTIONS_DESCRIPTION =\n 'Instructions for the agent describing how the input files should be transformed to produce the output CSV.'\nexport const RECORD_SET_DESTINATION_TASK_ID_LABEL = 'Destination Task ID'\nexport const RECORD_SET_DESTINATION_TASK_ID_DESCRIPTION =\n 'The ID of the record-based task whose RecordSet will receive the generated CSV.'\n\nexport const TASK_ID_FIELD_INVALID_ERROR_MESSAGE =\n 'Must be a positive whole number'\n\nexport const CREATE_TASK_CONFIRMATION_TITLE = 'Task Created'\nexport const CREATE_TASK_CONFIRMATION_DESCRIPTION =\n 'Your new task has been created and is ready to be configured.'\n\nexport const EDIT_TASK_UNRECOGNIZED_TYPE_MESSAGE =\n 'This task has an unrecognized task type. Its category-specific fields cannot be edited here.'\n\nexport const GENERIC_SAVE_ERROR_MESSAGE = 'An error occurred. Please try again.'\n\nexport const TASK_STATUS_INPUT_LABEL = 'Status'\n\nexport const TASK_STATUS_CONFIG: Record<\n TaskStatusStateEnum,\n { label: string; backgroundColor: string }\n> = {\n NOT_STARTED: { label: 'Not Started', backgroundColor: '#EAECEE' },\n IN_PROGRESS: { label: 'In Progress', backgroundColor: '#FFF3CD' },\n EXECUTING: { label: 'Executing', backgroundColor: '#FFF3CD' },\n IN_REVIEW: { label: 'Needs Review', backgroundColor: '#B8CCFF' },\n COMPLETED: { label: 'Completed', backgroundColor: '#C8E6C9' },\n CANCELED: { label: 'Canceled', backgroundColor: '#FFCCBC' },\n}\n\n/**\n * Do not allow users to manually set task state to one of these values (controlled by the system)\n */\nexport const COMPUTE_TASK_DISABLED_STATUS_STATES = [\n TaskStatusStateEnum.EXECUTING,\n TaskStatusStateEnum.CANCELED,\n]\n\n/** Curate tasks have no automatic EXECUTING transition, but it remains a system-controlled state. */\nexport const CURATE_TASK_DISABLED_STATUS_STATES = [\n TaskStatusStateEnum.EXECUTING,\n]\n\nexport const DELETE_CURATION_TASK_DIALOG_TITLE = 'Delete Task'\nexport const DELETE_CURATION_TASK_CONFIRMATION_PROMPT =\n 'Are you sure you want to delete this task? This action cannot be undone.'\nexport const DELETE_CURATION_TASK_GRID_SESSION_WARNING =\n 'Any grid sessions associated with this task will also be deleted.'\nexport const DELETE_CURATION_TASK_SUCCESS_TOAST = 'Task deleted successfully'\nexport const DELETE_CURATION_TASK_ERROR_TOAST_PREFIX = 'Error deleting task: '\n\nexport const CREATE_TASK_STATUS_NOT_SAVED_WARNING =\n 'The task was created, but its due date and status could not be saved. You can set them by editing the task.'\n\n// The following constants are consumed by the legacy CreateOrUpdateCurationTaskDialog, which is\n// removed in a follow-up PR. They are retained here so the dialog continues to compile until then.\nexport const CREATE_CURATION_TASK_DIALOG_TITLE = 'Create Curation Task'\nexport const EDIT_CURATION_TASK_DIALOG_TITLE = 'Edit Curation Task'\nexport const SELECT_TASK_TYPE_DESCRIPTION =\n 'Choose the type of data this curation task will manage. This cannot be changed after the task is created.'\nexport const COLLABORATORS_TOOLTIP =\n 'Collaborators can contribute to the grid session alongside the assignee. For \"Session Owner\" authorization mode, collaborators are added as additional owners of the session.'\nexport const UNRECOGNIZED_TASK_TYPE_ERROR =\n 'This task has an unrecognized task type and cannot be edited here.'\n\n/**\n * The `TaskStatus.executionDetails` value to set when creating a Compute task of each concrete type.\n * Both concrete `TaskExecutionDetails` types require only `concreteType` -- the remaining fields\n * (`asyncJobId`, `startedBy`, `startedOn`, `errorMessage`, `errorDetails`) are server-managed.\n */\nexport const COMPUTE_TASK_EXECUTION_DETAILS: Record<\n ComputeTaskConcreteType,\n TaskExecutionDetails\n> = {\n [SampleSheetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionProperties]:\n {\n concreteType:\n SampleSheetGenerationExecutionDetailsConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_SampleSheetGenerationExecutionDetails,\n },\n [RecordSetGenerationExecutionPropertiesConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionProperties]:\n {\n concreteType:\n RecordSetGenerationExecutionDetailsConcreteTypeEnum.org_sagebionetworks_repo_model_curation_execution_RecordSetGenerationExecutionDetails,\n },\n}\n"],"mappings":";;AAYA,IAAa,IACX,kDACW,IACX,+MAEW,IAA6B,iCAC7B,IACX,uDACW,IACX,iIAIW,IAAgC,aAChC,IACX,qCAEW,IAAmC,gCAEnC,IAA0B,qBAE1B,IAA8B,gBAC9B,IAA6B,eAE7B,KAAiC,2BACjC,IACX,yCAEW,IAAgC,0BAChC,IACX,wCAEW,IAAgC,qBAGhC,IAA4B,CACvC,EAAyD,4FACzD,EAAuD,wFACzD,GAEa,IAA4B,EAA0B,IAMtD,IAIT;EACD,EAAyD,6FACxD;EACE,OAAO;EACP,aACE;CACJ;EACD,EAAuD,2FACtD;EACE,OAAO;EACP,aACE;CACJ;AACJ,GAEa,IAA+B,oBAG/B,IAA2B,CACtC,EAAgD,kFAChD,EAAkD,kFACpD,GAEa,IAA2B,EAAyB,IAEpD,IAAwB,mBACxB,IACX,0NAEW,IACX,yEACW,IACX,oLAEW,IAA0B,sBAC1B,IACX,kIAEW,IACX,oEAMW,IAIT;EACD,EAAgD,mFAC/C;EACE,OAAO;EACP,aAAa;CACf;EACD,EAAkD,qFACjD;EACE,OAAO;EACP,aAAa;CACf;AACJ,GAEa,IAAwB,sBACxB,IACX,2EACW,IAAuB,sBACvB,IACX,iNAEW,IAAgC,6BAChC,IACX,6KAEW,IAAoC,0BACpC,IACX,6JAGW,IAAoB;CAC/B;CACA;CACA;AACF,GAMa,IAGT;CACF,MAAM;EAAE,OAAO;EAAsB,SAAS;CAAuB;CACrE,eAAe;EACb,OAAO;EACP,SAAS;CACX;CACA,mBAAmB;EACjB,OAAO;EACP,SAAS;CACX;AACF,GAEa,IACX,yKAEW,IAA6B,wBAC7B,IACX,wDAEW,IAAyB,oBACzB,IACX,mEAEW,IAA0B,qBAC1B,IACX,mEAEW,IAAyB,WACzB,KACX,oDACW,KAAuB,kBACvB,KAAwB,qCAExB,KACX,0DACW,KAA4B,iBAC5B,KACX,0DACW,KACX,gEAEW,KACX,gEAEW,KAAmC,iBACnC,KACX,iFACW,KAAyC,uBACzC,KACX,4FAEW,KAA6B,iBAC7B,KACX,6EACW,KAAiC,wBACjC,KACX,6DACW,KAAgC,sBAChC,KACX,8GACW,KAAuC,uBACvC,KACX,mFAEW,KACX,mCAEW,KAAiC,gBACjC,KACX,iEAEW,KACX,gGAEW,KAA6B,wCAE7B,KAA0B,UAE1B,KAGT;CACF,aAAa;EAAE,OAAO;EAAe,iBAAiB;CAAU;CAChE,aAAa;EAAE,OAAO;EAAe,iBAAiB;CAAU;CAChE,WAAW;EAAE,OAAO;EAAa,iBAAiB;CAAU;CAC5D,WAAW;EAAE,OAAO;EAAgB,iBAAiB;CAAU;CAC/D,WAAW;EAAE,OAAO;EAAa,iBAAiB;CAAU;CAC5D,UAAU;EAAE,OAAO;EAAY,iBAAiB;CAAU;AAC5D,GAKa,KAAsC,CACjD,EAAoB,WACpB,EAAoB,QACtB,GAGa,KAAqC,CAChD,EAAoB,SACtB,GAEa,KAAoC,eACpC,KACX,4EACW,KACX,qEACW,KAAqC,6BACrC,KAA0C,yBAE1C,KACX,+GAIW,KAAoC,wBACpC,KAAkC,sBAClC,KACX,6GACW,KACX,mLACW,KACX,sEAOW,KAGT;EACD,EAAyD,6FACxD,EACE,cACE,EAAsD,wFAC1D;EACD,EAAuD,2FACtD,EACE,cACE,EAAoD,sFACxD;AACJ"}
|