Skip to content

Commit

Permalink
Merge pull request #4248 from UNDP-Data/release/develop-to-main
Browse files Browse the repository at this point in the history
[RELEASE] Merge develop to main
  • Loading branch information
JinIgarashi authored Oct 11, 2024
2 parents 955997e + 4426f87 commit 4581b28
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 104 deletions.
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sites/geohub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# geohub

## 1.17.4

### Patch Changes

- b77c96a: refactor: delete unused components, and use fixed-grid of bulma for OperationButtons component

## 1.17.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions sites/geohub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geohub",
"version": "1.17.3",
"version": "1.17.4",
"description": "GeoHub is a geospatial visualization data portal built by UNDP using sveltekit",
"scripts": {
"dev": "pnpm prebuild && vite dev",
Expand Down Expand Up @@ -91,7 +91,7 @@
"d3-format": "^3.1.0",
"d3-sankey": "^0.12.3",
"dayjs": "^1.11.13",
"drizzle-kit": "^0.24.2",
"drizzle-kit": "^0.25.0",
"easymde": "^2.18.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
Expand Down Expand Up @@ -148,7 +148,7 @@
"@mapbox/vector-tile": "^2.0.3",
"@undp-data/style": "^2.2.0",
"crypto-js": "^4.2.0",
"drizzle-orm": "^0.33.0",
"drizzle-orm": "^0.34.0",
"flatgeobuf": "^3.35.0",
"jwt-decode": "^4.0.0",
"pbf": "^4.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,58 +29,64 @@
};
</script>

<div class="grid p-0" role="menu">
{#each operationOptions as operation}
<div
data-testid="operation-button"
class="card grid-item p-0 m-0 is-clickable {operation.disabled ? 'disabled' : null} "
role="button"
tabindex="0"
on:keydown={handleEnterKey}
on:click={() => {
operation.disabled ? null : (currentSelectedOperation = operation.value);
operation.disabled ? null : dispatch('click');
}}
>
<div
class="card-header is-size-6 pb-0 pt-0 m-0 {currentSelectedOperation === operation.value
? 'has-background-success'
: 'has-background-info'} "
>
<span
class="card-header-title is-centered is-v-centered {currentSelectedOperation ===
operation.value
? 'has-text-white-ter'
: 'has-text-white-ter'} "
<div class="fixed-grid has-3-cols">
<div class="grid is-gap-1">
{#each operationOptions as operation}
<div class="cell">
<div
data-testid="operation-button"
class="card grid-item p-0 m-0 is-clickable {operation.disabled ? 'disabled' : null} "
role="button"
tabindex="0"
on:keydown={handleEnterKey}
on:click={() => {
operation.disabled ? null : (currentSelectedOperation = operation.value);
operation.disabled ? null : dispatch('click');
}}
>
{#if currentSelectedOperation === operation.value}
<span class="icon">
<i class="fa-solid fa-check" />
<div
class="card-header is-size-6 pb-0 pt-0 m-0 {currentSelectedOperation === operation.value
? 'has-background-success'
: 'has-background-info'} "
>
<span
class="card-header-title is-centered is-v-centered {currentSelectedOperation ===
operation.value
? 'has-text-white-ter'
: 'has-text-white-ter'} "
>
{#if currentSelectedOperation === operation.value}
<span class="icon">
<i class="fa-solid fa-check" />
</span>
{/if}
{operation.label}
</span>
{/if}
{operation.label}
</span>
</div>
<div class="card-content p-0 m-0 has-text-centered">
<div class="content is-size-2 p-0 m-0 has-text-weight-bold has-text-danger">
{operation.symbol}
</div>
<div class="card-content is-flex is-align-items-center is-justify-content-center">
<div class="content is-size-2 p-0 m-0 has-text-weight-bold has-text-danger">
{operation.symbol}
</div>
</div>
</div>
</div>
</div>
{/each}
{/each}
</div>
</div>

<style lang="scss">
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 5px;
padding: 0px;
}
.disabled {
opacity: 0.5;
background-color: white !important;
cursor: not-allowed !important;
}
.grid-item {
.card-header {
height: 44px;
}
.card-content {
height: 60px;
}
}
</style>

This file was deleted.

This file was deleted.

0 comments on commit 4581b28

Please sign in to comment.