Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/domain/CustomOptionInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function CustomOptionInput(props: Props) {
error={error?.description}
disabled={disabled}
spacing="sm"
placeholder="Provide a brief description for each answer option (e.g. for Yes - The mapped outline does match the building footprint)"
hint="Provide a brief description for each answer option (e.g. for Yes - The mapped outline does match the building footprint)"
/>
</GridLayoutItem>
</ListLayout>
Expand Down
6 changes: 5 additions & 1 deletion app/components/domain/RasterTileServerInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ function RasterTileServerInput(props: Props) {
const [zoomView, setZoomView] = useState<MapZoomViewType>('aoiBounds');

const workingRasterTileServerNameOptions = useMemo(
() => rasterTileServerNameOptions.filter((option) => !option.disabled) ?? [],
() => [
...rasterTileServerNameOptions.filter((option) => !option.disabled) ?? [],
{ type: RasterTileServerNameEnum.Custom, label: 'Custom' },
],
[rasterTileServerNameOptions],
);

Expand All @@ -113,6 +116,7 @@ function RasterTileServerInput(props: Props) {
);

const { raster: rasterTileServers } = useContext(TileServerContext);

const tileServerMapping = useMemo(() => (
listToMap(rasterTileServers, ({ type }) => type)
), [rasterTileServers]);
Expand Down
5 changes: 4 additions & 1 deletion app/components/domain/RasterTileServerOutput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ function RasterTileServerOutput(props: Props) {

const rasterTileServerNameMapping = useMemo(
() => listToMap(
rasterTileServers,
[
...rasterTileServers,
{ type: RasterTileServerNameEnum.Custom, label: 'Custom' },
],
(item) => item.type,
(item) => item,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function OverlayTileServerPropertyInput(props: Props) {
error={error?.type}
onChange={handleOverlayLayerTypeChange}
disabled={disabled}
hint="Select the layer that you want to compare for completeness."
/>
{value?.type === OverlayLayerTypeEnum.RasterTile && (
<OverlayRasterTileConfigInput
Expand Down
2 changes: 1 addition & 1 deletion backend