Skip to content
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

Feature/analysis flow #677

Merged
merged 18 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions app/scripts/components/analysis/define/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default function Analysis() {
name='start-date'
value={start ? dateToInputFormat(start) : ''}
onChange={onStartDateChange}
min='1900-01-01'
min='1980-01-01'
max={dateToInputFormat(end)}
/>
</FormGroupStructureCustom>
Expand All @@ -418,7 +418,7 @@ export default function Analysis() {
value={end ? dateToInputFormat(end) : ''}
onChange={onEndDateChange}
min={dateToInputFormat(start)}
max={new Date().toISOString().split('T')[0]}
max='2022-12-31'
/>
</FormGroupStructureCustom>
</FormBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type AnyAnalysisParamsKey = keyof AnalysisParams;
type AnyAnalysisParamsType = Date | DatasetLayer[] | FeatureCollection<Polygon>;

const initialState: AnalysisParamsNull = {
start: undefined,
end: undefined,
start: new Date(2018, 0, 1),
end: new Date(2022, 11, 31),
j08lue marked this conversation as resolved.
Show resolved Hide resolved
datasetsLayers: undefined,
aoi: undefined,
errors: null
Expand Down