Skip to content

Commit

Permalink
Production deploy race + eodashboard 25.9.2024 (#2678)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: santilland <[email protected]>

---------

Co-authored-by: Moritz Riede <[email protected]>
Co-authored-by: UndeadFairy <[email protected]>
Co-authored-by: Moritz Riede <[email protected]>
Co-authored-by: Daniel Santillan <[email protected]>
Co-authored-by: Anca Anghelea <[email protected]>
Co-authored-by: AparicioSF <[email protected]>
  • Loading branch information
7 people authored Sep 30, 2024
1 parent f2a0ad1 commit 234c28f
Show file tree
Hide file tree
Showing 52 changed files with 9,855 additions and 4,685 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: datamonsters/replace-action@v2
with:
files: 'app/dist/shConfig.js'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }}'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }},$SH_INSTANCE_ID_IDEAS=${{ secrets.SH_INSTANCE_ID_IDEAS }}'

# Upload build client to S3
- name: sync client s3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gtif-demo_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: datamonsters/replace-action@v2
with:
files: 'app/dist/shConfig.js'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_RACE }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_GTIF }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_TRILATERAL }}'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_RACE }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_GTIF }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_TRILATERAL }},$SH_INSTANCE_ID_IDEAS=${{ secrets.SH_INSTANCE_ID_IDEAS }}'

# Upload build client to S3
- name: sync client s3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gtif-staging_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: datamonsters/replace-action@v2
with:
files: 'app/dist/shConfig.js'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }}'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }},$SH_INSTANCE_ID_IDEAS=${{ secrets.SH_INSTANCE_ID_IDEAS }}'

# Upload build client to S3
- name: sync client s3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: datamonsters/replace-action@v2
with:
files: 'app/dist/shConfig.js'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_RACE }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_GTIF }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_TRILATERAL }}'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_RACE }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_GTIF }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_TRILATERAL }},$SH_INSTANCE_ID_IDEAS=${{ secrets.SH_INSTANCE_ID_IDEAS }}'

# Upload to S3
- name: sync s3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: datamonsters/replace-action@v2
with:
files: 'app/dist/shConfig.js'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }}'
replacements: '$SH_INSTANCE_ID=${{ secrets.SH_INSTANCE_ID }},$SH_INSTANCE_ID_POLAR=${{ secrets.SH_INSTANCE_ID_POLAR }},$GEODB_INSTANCE_ID=${{ secrets.GEODB_INSTANCE_ID }},$LISTMONK_API_KEY=${{ secrets.LISTMONK_API_KEY }},$STAT_API_CLIENT_SECRET=${{ secrets.STAT_API_CLIENT_SECRET }},$STAT_API_CLIENT_ID=${{ secrets.STAT_API_CLIENT_ID }},$SH_INSTANCE_ID_GTIF=${{ secrets.SH_INSTANCE_ID_GTIF }},$OPENCAGE_RACE=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_GTIF=${{ secrets.OPENCAGE_EOX }},$OPENCAGE_TRILATERAL=${{ secrets.OPENCAGE_EOX }},$SH_INSTANCE_ID_IDEAS=${{ secrets.SH_INSTANCE_ID_IDEAS }}'

# Upload build client to S3
- name: sync client s3
Expand Down
Loading

0 comments on commit 234c28f

Please sign in to comment.