Skip to content

Commit

Permalink
feat(manager-dashboard): add street specific inputs (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofr1tz committed Dec 10, 2024
1 parent f9ae768 commit b463566
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions manager-dashboard/app/views/NewProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,30 @@ function NewProject(props: Props) {
/>
</InputSection>
)}

{value.projectType === PROJECT_TYPE_STREET && (
/* TODO: Add street project inputs for
startTimestamp,
endTimeStamp,
isPano,
organizationId,
samplingThreshold
*/
<InputSection
heading="Mapillary Image Filters"
>
<NumberInput
name={'organizationId' as const}
value={value?.organizationId}
onChange={setFieldValue}
error={error?.organizationId}
label="Mapillary Organization ID"
hint="Provide a valid Mapillary organization ID to filter for images belonging to a specific organization."
disabled={submissionPending || projectTypeEmpty}
/>
</InputSection>
)}

{error?.[nonFieldError] && (
<div className={styles.errorMessage}>
{error?.[nonFieldError]}
Expand Down

0 comments on commit b463566

Please sign in to comment.