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

Stories july #2653

Merged
merged 40 commits into from
Sep 11, 2024
Merged

Stories july #2653

merged 40 commits into from
Sep 11, 2024

Conversation

aapopescu
Copy link
Contributor

No description provided.

lubojr and others added 24 commits August 8, 2024 17:55
…data/story-images/ScienceHubChallenge/Feb2024/Pakistan/OMI-instrument.jpg
…blic/data/story-images/ScienceHubChallenges/Feb2024/Pakistan/tropomi_above-earth.png
updated Tunga story
updated Pakistan story
updated cover images, subtitle and logos
- Changed a figure to visualize/introduce El Nino + La Nina
- Inserted minor inputs from JAXA
- Still missing LST and ECOSTRESS datasets to finalize the story
- Added a picture from JAXA specifically targeting SST
- Rearranged some text
- Still missing the datasets WST, Ocean Heat Content and SST anomalies to conclude the story
- more changes/updates to SST story
- Still very drafty - but includes all JAXA input and ours
- Needs to be restructured
- Still need to identify the datasets to include in the story and/or ingest in the eodash
New/Final structure to this story. It is now only missing the datasets (S3 and ECOSTRESS).
@lubojr lubojr merged commit 57e969a into staging Sep 11, 2024
4 of 5 checks passed
@lubojr lubojr deleted the stories_july branch September 11, 2024 15:17
santilland added a commit that referenced this pull request Sep 30, 2024
* chore: add new indicator and move minesweeper config to indicator config

* feat: implement proper minesweeper layer deletion and get started with toggle and modals

* fix: handle ol_uid's properly

* fix: a number of linter errors

* chore: enable minesweeper only if given query parameter

* feat: add minesweeper dialog

* chore: bit more complex minesweeper options definition

* fix: allow rudimentary positioning

* chore: pass minesweeper options down

* chore: yeet origin coords, add size temporarily

* chore: few optimizations

* test: resolution

* changes to how raster data is fetched

* fix: adjust size and bbox

* fix: flip data vertically

* chore: use two lines for readability

* fix: board aspect ratio by taking hexagon geometry into account

* fix: transparency

* fix: set hexagon scaling correction to 120%

* feat: start building new minesweeper modals and their stats

* refactor: use new minesweeper modal component to reduce bloating of map component

* feat: enable setting flags on cells using right-click

* chore: add reveal-all method and fix linter errors

* chore: add game modes, modify text and run linter auto-fix

* feat: centralize board and rendering states in new `Minesweeper` class for consistency

* chore: update to new minesweeper class, add reveal button and fix linter errors

* feat: implement simple game flow event handlers

* feat: push current half-working state

* chore: disable minesweeper query parameter

* fix: remove second query param check

* fix: broken game over modal and remove v-model prop warning

* feat: add mine counter

* fix: make sure modal actually shows

* feat: implement working stats for gameover state

* feat: add win mode and pass in elapsed seconds as a prop

* feat: add game flow methods

* feat: complete game flow event handling, implement timer

* fix: re-add lost revealAllTiles method and remove console bloat

* fix: update winning text

* fix: linter errors and remove duplicate reveal function

* fix: include flags in completion indicator

* fix: mine flags

* feat: enable copying stats if the user has won the game

* chore: integrate IND2 as cog rendering

* feat: also provide stats copy-button when the game is lost

* chore: various changes and lint

* feat: work with multiple locations, for now static

* fix: game size better computed now

* fix: manually compute window because bbox is buggy

* feat: various fixes
- fix game flow when flagging
- setup teardown and layer cleanup
- remove dependency on ol-games
- zoom to selected location
- setup cog extent to location only
- cleanup unused methods

* feat: adding Locations change functionality

* chore: update package-lock

* fix: refactor event handling on map click
so they are actually removable due to usage of bind

* feat: integrate osmtogeojson

* chore: visualize HOPI

* fix: update power inframap sprite url

* fix: filters for indicator 1

* chore: dissolve layers ind1 and ind4 as overlays

* feat: implement CustomAlert on timeout 15s

* chore: redo legendUrl and update LayerControl

* fix: previous commit

* fix: minor bugfix

* feat: implement various enhancements for I4

* fix: display features.legendUrl for I4

* chore: refactor overpass api fetch

* chore: minor updates

* feat: implement custom features parameters

* fix: dissolved wildlife layer nodata transparent

client-side fix for areas where all bands ==0

* chore: create configs for auxiliary data for ideas_i4 (#2496)

* chore: create configs for auxiliary data

* chore: add GHS built up area 2020

* add two other builtup area layers

* chore: add two osm tags and update color mapping

* chore: add 'content' tag to OSM allowed props

* chore: add legend to GHSPopulation

* feat: implement world bounds from which smaller bboxes can be chosen randomly

* feat: implement randomization algorithm

* chore: update formatting of worldBounds

* feat: add a prng so that we can have repeatable bbox generations

* doc: update jsdoc of `cyrb128` function

* chore: add config for indicator3
currently without overpass api integration
because the resulting vectorlayer configured via .features for some reason does not work with Geotiff layer together

* fix: a lot of linter errors

* chore: features config working together with cog source

* chore: remove worldBounds and add configurable horizontal extents for each minesweep location

* feat: use new randomizer to set the bounding box

* fix: linter error by actually exporting new randomizer fn

* update of IND1_1

* Update IND2_1

* add IND3_1

* feat: pass randomly generated bounding box into minesweeper code

* fix: shrink all of the horizontal extents so they fit into the defined world boxes

* chore: update ideas i3 aux data

* feat: use the new crop bbox also as a constraint for the hex board itself

* feat: integrate new ind1 data

* feat: add data for wildlife plant and animal species

* chore: rename species index

* feat: show discovered species in dialog and copy text

* feat: add logic to extrapolate present species for a given minesweeper bbox

* chore: only display common name if it is not unknown, put in parens if there

* fix: linting

* fix: shorten lines

* chore: make species list reusable

* chore: make species list completely modular

* chore: revert to pevious `winMinesweep` method since the species code now runs in dedicated component

* fix: enable drawing buttons for `IND2_1`

* feat: add species enumeration for selected areas

* fix: comparison of webgl layers
according to Viglino/ol-ext#1054

* chore: move index json to bucket

* chore: update  config to use EU-wide dataset

* fix: comparison of webgl layer works now

* chore: minor fix

* chore: lint

* feat: aggregrate species with same index to prevent multiples and display a count

* chore: fix linter errors

* feat: enable species extraction also for lost games both in-dialog and in text

* refactor: remove old confusing minesweeper variable

* fix: move discovered species into DataPanel so they are visible without scrolling

* style: reduce spacing between species items

* feat: expose covered mine count as a getter and display remaining mines in minesweeper options

* Update IND3_1.md

* chore: add mine and flag counts, improve counting mechanism

* fix: implement counter properly so that it does not allow cheating

* chore: add `@turf/turf` and `@turf/intersect` dependencies for intersection detection

* chore: update dependencies

* chore: update package lock

* feat: define method for detecting intersections between europe geojson and sweeper bbox

* chore: regenerate seed and bounding box iteratively if no intersections are found

* chore: add geojson with countries that belong to wildlife dataset

* fix: linter errors

* chore: remove console logs

* chore: slightly refactor specieslist
adding watcher or prop to refresh on new area drawn

* fix: relative path for testing deployments

* chore: adjust the welcome message to give intro to game

* feat: configure new HULK endpoint

* chore: hide species info box in sidebar if minesweeper is configured

* chore: hide "reveal all" button behind debug flag as a query parameter

* chore: remove location dropdown for now

* chore: move "copy to clipboard" button to bottom of dialog

* chore: sort species by descending count and limit to 5 results

* fix: copy-to-clipboard species by moving species sorting into minesweeper dialog for consistency

* wip: change mine icon to a flower emoji and get started with revealing board when mine is clicked

* style: implement requested field colors

* feat: update minesweeper to use corine and esa landcover layers
remove original wildlife
lint

* chore: minor update of intro text

* chore: minor brush up on the initial popup in minesweeper
add opacity for layers

* fix: NaN poisoning and simplify color interpolation; reveal board when mine is clicked

* feat: enable easy restarting with a new-game button

* fix: change "new game" to "restart game" and make sure it always renders when appropriate

* fix: linter errors

* chore: zoom to location bbox

* update style

* fix: update ind4 image and show selected value in wmsVariables dropdown

* fix: broken NaN checker

* feat: integrate species images

* style: transform species name to uppercase

* feat: add new area statistics component

* chore: replace species index with S3 version

* fix: add missing s3 link

* minor update of text

* chore: add mock scenarios

* chore: adapt indicator 4

* fix: chart rendering

* feat: add question mark placeholders

* fix: switch descriptions of confidence and storm_surge

* update species index file

* chore: push latest state with styles

* fix: and simplify aggregation, add loading indicator

* fix: preselection

* feat: implement user hint

* fix: use narrower design on smaller screens

* feat: rework layout on smaller screens; adjust to new variable names from ideas_i4

* chore: fix linter errors

* chore: remove temp files

* chore: remove comment

* Update IND1_1.md

* feat: integrate minesweeper for ind2

* fix: unify bbox for minesweeps

* update version

* fix: minesweeper options reset instead of selectedLocationIndex

* fix: OSM features shown again
defaults seen in WMS options
minesweeper for houhpi filter 0s
note: never touch this code again

* chore: remove blue boxes in legend

* feat: rework state display, integrate promise handling

* fix: finally get aggregation working again; properly use pre-set variables

* fix: push working chart rendering with aggregation (almost done)

* feat: almost finalizing integration of statistics charts for indicator 4

* feat: implement species conservation status for minesweeper stats

* chore: add hint label

* chore: lint

* feat: change baselayer for HOUHPI  minesweeper to days exceeding who threshold

* fix: enableCustomAreaStatistics

* fix: reordering logic and map export state for custom area data (#2656)

* fix: adding ids to layers to make sure reordering in layercontrol works

* chore: linting

* fix: wrong layer order exported for analysis layers

* Adaptations of ideas deployment (#2659)

* fix: adaptations of ideas deployment
ref #2650

* update image icons for game indicators

* fix: double format caps/lowercase

* Merging of new vector filter capabilities (#2663)

* feat: added possibility to pass flat style style

* chore: added initial vector layer for sawmill data

* feat: implemented initial idea for vector tile feature filtering

* chore: cleanup of component, added category info to filter definition

* fix: made sure colormap is loaded in correct layer for forest disturbance

* chore: added truck supported roads network as layer to fcm2, added sawmill capabilities also to fcm3

* chore: removed adress from tooltip

* Stories july (#2653)

4 new stories added

* first set of updates for ideas indicators

* fix: several ideas fixes

* chore: bump package versions

intentionally not bumping stacinfo to 0.4.0 because even when adhering to breaking changes, it does not show here

* feat: add automatic opening of analysis panel

* merge staging into ideas_i4

* fix: cleanupand merge conflict resolution

* fix: multiple fixes

* fix: styling and display fixes after merge

* feat: remote GTIF brand check from DataPanel
!potentially regression causing change

* fix: minor config fixes

* fix: review ideas merge into staging

* fix: syntax

* chore: lint

* fix: styling issues, separate into catalogs

* fix: regression

* Update eodashMarkdown_EXTREME_SST.md

* fix: href links to images, remove ?catalog queru from dashboard link

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md (#2675)

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update stories.json

* update wind layer to a global one

* update storytelling to 1.1.0

* fix: override SLSTR1 dateformat function

* feat: add ideas 5 indicator

* fix: legend

* fix: format for SLSTR1

* chore: minor update of step for ind5

* fix: WSF

* Final story review (#2679)

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_SST.md

added link between Ocean content and Marine Heat wave

* Update eodashMarkdown_EXTREME_SST.md

link between ocean content and marine heat waves

* Update eodashMarkdown_EXTREME_SST.md

* Add files via upload

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

Change name of the story

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_POLLUTION_2.md

* Update eodashMarkdown_HUNGA_ERUPTION_2.md

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update about.md

* Update about.md

* Update about.md

* chore: update s3 date in story

---------

Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: santilland <daniel.santillan@eox.at>

---------

Co-authored-by: Moritz Riede <moritz@mriede.com>
Co-authored-by: UndeadFairy <krikes@seznam.cz>
Co-authored-by: Moritz Riede <94269527+spectrachrome@users.noreply.github.com>
Co-authored-by: Daniel Santillan <daniel.santillan@eox.at>
Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: AparicioSF <33723271+AparicioSF@users.noreply.github.com>
santilland added a commit that referenced this pull request Oct 1, 2024
* fix: handle ol_uid's properly

* fix: a number of linter errors

* chore: enable minesweeper only if given query parameter

* feat: add minesweeper dialog

* chore: bit more complex minesweeper options definition

* fix: allow rudimentary positioning

* chore: pass minesweeper options down

* chore: yeet origin coords, add size temporarily

* chore: few optimizations

* test: resolution

* changes to how raster data is fetched

* fix: adjust size and bbox

* fix: flip data vertically

* chore: use two lines for readability

* fix: board aspect ratio by taking hexagon geometry into account

* fix: transparency

* fix: set hexagon scaling correction to 120%

* feat: start building new minesweeper modals and their stats

* refactor: use new minesweeper modal component to reduce bloating of map component

* feat: enable setting flags on cells using right-click

* chore: add reveal-all method and fix linter errors

* chore: add game modes, modify text and run linter auto-fix

* feat: centralize board and rendering states in new `Minesweeper` class for consistency

* chore: update to new minesweeper class, add reveal button and fix linter errors

* feat: implement simple game flow event handlers

* feat: push current half-working state

* chore: disable minesweeper query parameter

* fix: remove second query param check

* fix: broken game over modal and remove v-model prop warning

* feat: add mine counter

* fix: make sure modal actually shows

* feat: implement working stats for gameover state

* feat: add win mode and pass in elapsed seconds as a prop

* feat: add game flow methods

* feat: complete game flow event handling, implement timer

* fix: re-add lost revealAllTiles method and remove console bloat

* fix: update winning text

* fix: linter errors and remove duplicate reveal function

* fix: include flags in completion indicator

* fix: mine flags

* feat: enable copying stats if the user has won the game

* chore: integrate IND2 as cog rendering

* feat: also provide stats copy-button when the game is lost

* chore: various changes and lint

* feat: work with multiple locations, for now static

* fix: game size better computed now

* fix: manually compute window because bbox is buggy

* feat: various fixes
- fix game flow when flagging
- setup teardown and layer cleanup
- remove dependency on ol-games
- zoom to selected location
- setup cog extent to location only
- cleanup unused methods

* feat: adding Locations change functionality

* chore: update package-lock

* fix: refactor event handling on map click
so they are actually removable due to usage of bind

* feat: integrate osmtogeojson

* chore: visualize HOPI

* fix: update power inframap sprite url

* fix: filters for indicator 1

* chore: dissolve layers ind1 and ind4 as overlays

* feat: implement CustomAlert on timeout 15s

* chore: redo legendUrl and update LayerControl

* fix: previous commit

* fix: minor bugfix

* feat: implement various enhancements for I4

* fix: display features.legendUrl for I4

* chore: refactor overpass api fetch

* chore: minor updates

* feat: implement custom features parameters

* fix: dissolved wildlife layer nodata transparent

client-side fix for areas where all bands ==0

* chore: create configs for auxiliary data for ideas_i4 (#2496)

* chore: create configs for auxiliary data

* chore: add GHS built up area 2020

* add two other builtup area layers

* chore: add two osm tags and update color mapping

* chore: add 'content' tag to OSM allowed props

* chore: add legend to GHSPopulation

* feat: implement world bounds from which smaller bboxes can be chosen randomly

* feat: implement randomization algorithm

* chore: update formatting of worldBounds

* feat: add a prng so that we can have repeatable bbox generations

* doc: update jsdoc of `cyrb128` function

* chore: add config for indicator3
currently without overpass api integration
because the resulting vectorlayer configured via .features for some reason does not work with Geotiff layer together

* fix: a lot of linter errors

* chore: features config working together with cog source

* chore: remove worldBounds and add configurable horizontal extents for each minesweep location

* feat: use new randomizer to set the bounding box

* fix: linter error by actually exporting new randomizer fn

* update of IND1_1

* Update IND2_1

* add IND3_1

* feat: pass randomly generated bounding box into minesweeper code

* fix: shrink all of the horizontal extents so they fit into the defined world boxes

* chore: update ideas i3 aux data

* feat: use the new crop bbox also as a constraint for the hex board itself

* feat: integrate new ind1 data

* feat: add data for wildlife plant and animal species

* chore: rename species index

* feat: show discovered species in dialog and copy text

* feat: add logic to extrapolate present species for a given minesweeper bbox

* chore: only display common name if it is not unknown, put in parens if there

* fix: linting

* fix: shorten lines

* chore: make species list reusable

* chore: make species list completely modular

* chore: revert to pevious `winMinesweep` method since the species code now runs in dedicated component

* fix: enable drawing buttons for `IND2_1`

* feat: add species enumeration for selected areas

* fix: comparison of webgl layers
according to Viglino/ol-ext#1054

* chore: move index json to bucket

* chore: update  config to use EU-wide dataset

* fix: comparison of webgl layer works now

* chore: minor fix

* chore: lint

* feat: aggregrate species with same index to prevent multiples and display a count

* chore: fix linter errors

* feat: enable species extraction also for lost games both in-dialog and in text

* refactor: remove old confusing minesweeper variable

* fix: move discovered species into DataPanel so they are visible without scrolling

* style: reduce spacing between species items

* feat: expose covered mine count as a getter and display remaining mines in minesweeper options

* Update IND3_1.md

* chore: add mine and flag counts, improve counting mechanism

* fix: implement counter properly so that it does not allow cheating

* chore: add `@turf/turf` and `@turf/intersect` dependencies for intersection detection

* chore: update dependencies

* chore: update package lock

* feat: define method for detecting intersections between europe geojson and sweeper bbox

* chore: regenerate seed and bounding box iteratively if no intersections are found

* chore: add geojson with countries that belong to wildlife dataset

* fix: linter errors

* chore: remove console logs

* chore: slightly refactor specieslist
adding watcher or prop to refresh on new area drawn

* fix: relative path for testing deployments

* chore: adjust the welcome message to give intro to game

* feat: configure new HULK endpoint

* chore: hide species info box in sidebar if minesweeper is configured

* chore: hide "reveal all" button behind debug flag as a query parameter

* chore: remove location dropdown for now

* chore: move "copy to clipboard" button to bottom of dialog

* chore: sort species by descending count and limit to 5 results

* fix: copy-to-clipboard species by moving species sorting into minesweeper dialog for consistency

* wip: change mine icon to a flower emoji and get started with revealing board when mine is clicked

* style: implement requested field colors

* feat: update minesweeper to use corine and esa landcover layers
remove original wildlife
lint

* chore: minor update of intro text

* chore: minor brush up on the initial popup in minesweeper
add opacity for layers

* fix: NaN poisoning and simplify color interpolation; reveal board when mine is clicked

* feat: enable easy restarting with a new-game button

* fix: change "new game" to "restart game" and make sure it always renders when appropriate

* fix: linter errors

* chore: zoom to location bbox

* update style

* fix: update ind4 image and show selected value in wmsVariables dropdown

* fix: broken NaN checker

* feat: integrate species images

* style: transform species name to uppercase

* feat: add new area statistics component

* chore: replace species index with S3 version

* fix: add missing s3 link

* minor update of text

* chore: add mock scenarios

* chore: adapt indicator 4

* fix: chart rendering

* feat: add question mark placeholders

* fix: switch descriptions of confidence and storm_surge

* update species index file

* chore: push latest state with styles

* fix: and simplify aggregation, add loading indicator

* fix: preselection

* feat: implement user hint

* fix: use narrower design on smaller screens

* feat: rework layout on smaller screens; adjust to new variable names from ideas_i4

* chore: fix linter errors

* chore: remove temp files

* chore: remove comment

* Update IND1_1.md

* feat: integrate minesweeper for ind2

* fix: unify bbox for minesweeps

* update version

* fix: minesweeper options reset instead of selectedLocationIndex

* fix: OSM features shown again
defaults seen in WMS options
minesweeper for houhpi filter 0s
note: never touch this code again

* chore: remove blue boxes in legend

* feat: rework state display, integrate promise handling

* fix: finally get aggregation working again; properly use pre-set variables

* fix: push working chart rendering with aggregation (almost done)

* feat: almost finalizing integration of statistics charts for indicator 4

* feat: implement species conservation status for minesweeper stats

* chore: add hint label

* chore: lint

* feat: change baselayer for HOUHPI  minesweeper to days exceeding who threshold

* fix: enableCustomAreaStatistics

* fix: reordering logic and map export state for custom area data (#2656)

* fix: adding ids to layers to make sure reordering in layercontrol works

* chore: linting

* fix: wrong layer order exported for analysis layers

* Adaptations of ideas deployment (#2659)

* fix: adaptations of ideas deployment
ref #2650

* update image icons for game indicators

* fix: double format caps/lowercase

* Merging of new vector filter capabilities (#2663)

* feat: added possibility to pass flat style style

* chore: added initial vector layer for sawmill data

* feat: implemented initial idea for vector tile feature filtering

* chore: cleanup of component, added category info to filter definition

* fix: made sure colormap is loaded in correct layer for forest disturbance

* chore: added truck supported roads network as layer to fcm2, added sawmill capabilities also to fcm3

* chore: removed adress from tooltip

* Stories july (#2653)

4 new stories added

* first set of updates for ideas indicators

* fix: several ideas fixes

* chore: bump package versions

intentionally not bumping stacinfo to 0.4.0 because even when adhering to breaking changes, it does not show here

* feat: add automatic opening of analysis panel

* merge staging into ideas_i4

* fix: cleanupand merge conflict resolution

* fix: multiple fixes

* fix: styling and display fixes after merge

* feat: remote GTIF brand check from DataPanel
!potentially regression causing change

* fix: minor config fixes

* fix: review ideas merge into staging

* fix: syntax

* chore: lint

* fix: styling issues, separate into catalogs

* fix: regression

* Update eodashMarkdown_EXTREME_SST.md

* fix: href links to images, remove ?catalog queru from dashboard link

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md (#2675)

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update stories.json

* update wind layer to a global one

* update storytelling to 1.1.0

* fix: override SLSTR1 dateformat function

* feat: add ideas 5 indicator

* fix: legend

* fix: format for SLSTR1

* chore: minor update of step for ind5

* fix: WSF

* Final story review (#2679)

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_SST.md

added link between Ocean content and Marine Heat wave

* Update eodashMarkdown_EXTREME_SST.md

link between ocean content and marine heat waves

* Update eodashMarkdown_EXTREME_SST.md

* Add files via upload

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

Change name of the story

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_POLLUTION_2.md

* Update eodashMarkdown_HUNGA_ERUPTION_2.md

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update about.md

* Update about.md

* Update about.md

* chore: update s3 date in story

---------

Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: santilland <daniel.santillan@eox.at>

* chore: fixed map config issues in story

---------

Co-authored-by: Moritz Riede <moritz@mriede.com>
Co-authored-by: Lubomir Dolezal <lubomir.dolezal@eox.at>
Co-authored-by: Lubomír Doležal <lubojr@seznam.cz>
Co-authored-by: UndeadFairy <krikes@seznam.cz>
Co-authored-by: Moritz Riede <94269527+spectrachrome@users.noreply.github.com>
Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: AparicioSF <33723271+AparicioSF@users.noreply.github.com>
santilland added a commit that referenced this pull request Oct 1, 2024
* fix: a number of linter errors

* chore: enable minesweeper only if given query parameter

* feat: add minesweeper dialog

* chore: bit more complex minesweeper options definition

* fix: allow rudimentary positioning

* chore: pass minesweeper options down

* chore: yeet origin coords, add size temporarily

* chore: few optimizations

* test: resolution

* changes to how raster data is fetched

* fix: adjust size and bbox

* fix: flip data vertically

* chore: use two lines for readability

* fix: board aspect ratio by taking hexagon geometry into account

* fix: transparency

* fix: set hexagon scaling correction to 120%

* feat: start building new minesweeper modals and their stats

* refactor: use new minesweeper modal component to reduce bloating of map component

* feat: enable setting flags on cells using right-click

* chore: add reveal-all method and fix linter errors

* chore: add game modes, modify text and run linter auto-fix

* feat: centralize board and rendering states in new `Minesweeper` class for consistency

* chore: update to new minesweeper class, add reveal button and fix linter errors

* feat: implement simple game flow event handlers

* feat: push current half-working state

* chore: disable minesweeper query parameter

* fix: remove second query param check

* fix: broken game over modal and remove v-model prop warning

* feat: add mine counter

* fix: make sure modal actually shows

* feat: implement working stats for gameover state

* feat: add win mode and pass in elapsed seconds as a prop

* feat: add game flow methods

* feat: complete game flow event handling, implement timer

* fix: re-add lost revealAllTiles method and remove console bloat

* fix: update winning text

* fix: linter errors and remove duplicate reveal function

* fix: include flags in completion indicator

* fix: mine flags

* feat: enable copying stats if the user has won the game

* chore: integrate IND2 as cog rendering

* feat: also provide stats copy-button when the game is lost

* chore: various changes and lint

* feat: work with multiple locations, for now static

* fix: game size better computed now

* fix: manually compute window because bbox is buggy

* feat: various fixes
- fix game flow when flagging
- setup teardown and layer cleanup
- remove dependency on ol-games
- zoom to selected location
- setup cog extent to location only
- cleanup unused methods

* feat: adding Locations change functionality

* chore: update package-lock

* fix: refactor event handling on map click
so they are actually removable due to usage of bind

* feat: integrate osmtogeojson

* chore: visualize HOPI

* fix: update power inframap sprite url

* fix: filters for indicator 1

* chore: dissolve layers ind1 and ind4 as overlays

* feat: implement CustomAlert on timeout 15s

* chore: redo legendUrl and update LayerControl

* fix: previous commit

* fix: minor bugfix

* feat: implement various enhancements for I4

* fix: display features.legendUrl for I4

* chore: refactor overpass api fetch

* chore: minor updates

* feat: implement custom features parameters

* fix: dissolved wildlife layer nodata transparent

client-side fix for areas where all bands ==0

* chore: create configs for auxiliary data for ideas_i4 (#2496)

* chore: create configs for auxiliary data

* chore: add GHS built up area 2020

* add two other builtup area layers

* chore: add two osm tags and update color mapping

* chore: add 'content' tag to OSM allowed props

* chore: add legend to GHSPopulation

* feat: implement world bounds from which smaller bboxes can be chosen randomly

* feat: implement randomization algorithm

* chore: update formatting of worldBounds

* feat: add a prng so that we can have repeatable bbox generations

* doc: update jsdoc of `cyrb128` function

* chore: add config for indicator3
currently without overpass api integration
because the resulting vectorlayer configured via .features for some reason does not work with Geotiff layer together

* fix: a lot of linter errors

* chore: features config working together with cog source

* chore: remove worldBounds and add configurable horizontal extents for each minesweep location

* feat: use new randomizer to set the bounding box

* fix: linter error by actually exporting new randomizer fn

* update of IND1_1

* Update IND2_1

* add IND3_1

* feat: pass randomly generated bounding box into minesweeper code

* fix: shrink all of the horizontal extents so they fit into the defined world boxes

* chore: update ideas i3 aux data

* feat: use the new crop bbox also as a constraint for the hex board itself

* feat: integrate new ind1 data

* feat: add data for wildlife plant and animal species

* chore: rename species index

* feat: show discovered species in dialog and copy text

* feat: add logic to extrapolate present species for a given minesweeper bbox

* chore: only display common name if it is not unknown, put in parens if there

* fix: linting

* fix: shorten lines

* chore: make species list reusable

* chore: make species list completely modular

* chore: revert to pevious `winMinesweep` method since the species code now runs in dedicated component

* fix: enable drawing buttons for `IND2_1`

* feat: add species enumeration for selected areas

* fix: comparison of webgl layers
according to Viglino/ol-ext#1054

* chore: move index json to bucket

* chore: update  config to use EU-wide dataset

* fix: comparison of webgl layer works now

* chore: minor fix

* chore: lint

* feat: aggregrate species with same index to prevent multiples and display a count

* chore: fix linter errors

* feat: enable species extraction also for lost games both in-dialog and in text

* refactor: remove old confusing minesweeper variable

* fix: move discovered species into DataPanel so they are visible without scrolling

* style: reduce spacing between species items

* feat: expose covered mine count as a getter and display remaining mines in minesweeper options

* Update IND3_1.md

* chore: add mine and flag counts, improve counting mechanism

* fix: implement counter properly so that it does not allow cheating

* chore: add `@turf/turf` and `@turf/intersect` dependencies for intersection detection

* chore: update dependencies

* chore: update package lock

* feat: define method for detecting intersections between europe geojson and sweeper bbox

* chore: regenerate seed and bounding box iteratively if no intersections are found

* chore: add geojson with countries that belong to wildlife dataset

* fix: linter errors

* chore: remove console logs

* chore: slightly refactor specieslist
adding watcher or prop to refresh on new area drawn

* fix: relative path for testing deployments

* chore: adjust the welcome message to give intro to game

* feat: configure new HULK endpoint

* chore: hide species info box in sidebar if minesweeper is configured

* chore: hide "reveal all" button behind debug flag as a query parameter

* chore: remove location dropdown for now

* chore: move "copy to clipboard" button to bottom of dialog

* chore: sort species by descending count and limit to 5 results

* fix: copy-to-clipboard species by moving species sorting into minesweeper dialog for consistency

* wip: change mine icon to a flower emoji and get started with revealing board when mine is clicked

* style: implement requested field colors

* feat: update minesweeper to use corine and esa landcover layers
remove original wildlife
lint

* chore: minor update of intro text

* chore: minor brush up on the initial popup in minesweeper
add opacity for layers

* fix: NaN poisoning and simplify color interpolation; reveal board when mine is clicked

* feat: enable easy restarting with a new-game button

* fix: change "new game" to "restart game" and make sure it always renders when appropriate

* fix: linter errors

* chore: zoom to location bbox

* update style

* fix: update ind4 image and show selected value in wmsVariables dropdown

* fix: broken NaN checker

* feat: integrate species images

* style: transform species name to uppercase

* feat: add new area statistics component

* chore: replace species index with S3 version

* fix: add missing s3 link

* minor update of text

* chore: add mock scenarios

* chore: adapt indicator 4

* fix: chart rendering

* feat: add question mark placeholders

* fix: switch descriptions of confidence and storm_surge

* update species index file

* chore: push latest state with styles

* fix: and simplify aggregation, add loading indicator

* fix: preselection

* feat: implement user hint

* fix: use narrower design on smaller screens

* feat: rework layout on smaller screens; adjust to new variable names from ideas_i4

* chore: fix linter errors

* chore: remove temp files

* chore: remove comment

* Update IND1_1.md

* feat: integrate minesweeper for ind2

* fix: unify bbox for minesweeps

* update version

* fix: minesweeper options reset instead of selectedLocationIndex

* fix: OSM features shown again
defaults seen in WMS options
minesweeper for houhpi filter 0s
note: never touch this code again

* chore: remove blue boxes in legend

* feat: rework state display, integrate promise handling

* fix: finally get aggregation working again; properly use pre-set variables

* fix: push working chart rendering with aggregation (almost done)

* feat: almost finalizing integration of statistics charts for indicator 4

* feat: implement species conservation status for minesweeper stats

* chore: add hint label

* chore: lint

* feat: change baselayer for HOUHPI  minesweeper to days exceeding who threshold

* fix: enableCustomAreaStatistics

* fix: reordering logic and map export state for custom area data (#2656)

* fix: adding ids to layers to make sure reordering in layercontrol works

* chore: linting

* fix: wrong layer order exported for analysis layers

* Adaptations of ideas deployment (#2659)

* fix: adaptations of ideas deployment
ref #2650

* update image icons for game indicators

* fix: double format caps/lowercase

* Merging of new vector filter capabilities (#2663)

* feat: added possibility to pass flat style style

* chore: added initial vector layer for sawmill data

* feat: implemented initial idea for vector tile feature filtering

* chore: cleanup of component, added category info to filter definition

* fix: made sure colormap is loaded in correct layer for forest disturbance

* chore: added truck supported roads network as layer to fcm2, added sawmill capabilities also to fcm3

* chore: removed adress from tooltip

* Stories july (#2653)

4 new stories added

* first set of updates for ideas indicators

* fix: several ideas fixes

* chore: bump package versions

intentionally not bumping stacinfo to 0.4.0 because even when adhering to breaking changes, it does not show here

* feat: add automatic opening of analysis panel

* merge staging into ideas_i4

* fix: cleanupand merge conflict resolution

* fix: multiple fixes

* fix: styling and display fixes after merge

* feat: remote GTIF brand check from DataPanel
!potentially regression causing change

* fix: minor config fixes

* fix: review ideas merge into staging

* fix: syntax

* chore: lint

* fix: styling issues, separate into catalogs

* fix: regression

* Update eodashMarkdown_EXTREME_SST.md

* fix: href links to images, remove ?catalog queru from dashboard link

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md (#2675)

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update stories.json

* update wind layer to a global one

* update storytelling to 1.1.0

* fix: override SLSTR1 dateformat function

* feat: add ideas 5 indicator

* fix: legend

* fix: format for SLSTR1

* chore: minor update of step for ind5

* fix: WSF

* Final story review (#2679)

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_SST.md

added link between Ocean content and Marine Heat wave

* Update eodashMarkdown_EXTREME_SST.md

link between ocean content and marine heat waves

* Update eodashMarkdown_EXTREME_SST.md

* Add files via upload

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

Change name of the story

* Update eodashMarkdown_EXTREME_SST.md

* Update eodashMarkdown_EXTREME_POLLUTION_2.md

* Update eodashMarkdown_HUNGA_ERUPTION_2.md

* Update eodashMarkdown_EXTREME__TEMPERATURES_2.md

* Update about.md

* Update about.md

* Update about.md

* chore: update s3 date in story

---------

Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: santilland <daniel.santillan@eox.at>

* chore: fixed map config issues in story

* Update stories.json (#2686)

updated titles to official stories on main page

---------

Co-authored-by: Moritz Riede <moritz@mriede.com>
Co-authored-by: Lubomir Dolezal <lubomir.dolezal@eox.at>
Co-authored-by: Lubomír Doležal <lubojr@seznam.cz>
Co-authored-by: UndeadFairy <krikes@seznam.cz>
Co-authored-by: Moritz Riede <94269527+spectrachrome@users.noreply.github.com>
Co-authored-by: Anca Anghelea <35488732+aapopescu@users.noreply.github.com>
Co-authored-by: AparicioSF <33723271+AparicioSF@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants