Skip to content

Commit

Permalink
v2.0.11 (#497)
Browse files Browse the repository at this point in the history
_The PR name should be the version to be deployed (ex: v1.0.1)_

- [x] Bump the version in the package.json or equivalent.

---

# Changelog v2.0.11

## πŸŽ‰ Features

## πŸš€ Improvements
- Upgraded veda-ui to
[v5.6.1](https://github.com/NASA-IMPACT/veda-ui/releases/tag/v5.6.1)
- Updated ODIAC units #492 

## πŸ› Fixes
- #494 
- #493
  • Loading branch information
anisbhsl authored Aug 20, 2024
2 parents b7c8d76 + 3d33c94 commit f3cf0ef
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .veda/ui
Submodule ui updated 35 files
+2 βˆ’2 .env
+34 βˆ’26 app/scripts/components/common/catalog/prepare-datasets.ts
+16 βˆ’0 app/scripts/components/common/datepicker/index.scss
+17 βˆ’2 app/scripts/components/common/datepicker/index.tsx
+5 βˆ’4 app/scripts/components/common/google-form.tsx
+5 βˆ’2 app/scripts/components/common/layout-root/index.tsx
+8 βˆ’8 app/scripts/components/common/map/controls/aoi/preset-selector.tsx
+29 βˆ’7 app/scripts/components/common/map/style-generators/raster-timeseries.tsx
+4 βˆ’0 app/scripts/components/common/mapbox/README.md
+29 βˆ’7 app/scripts/components/common/mapbox/layers/raster-timeseries.tsx
+2 βˆ’3 app/scripts/components/common/nav-wrapper.js
+0 βˆ’605 app/scripts/components/common/page-header.tsx
+53 βˆ’0 app/scripts/components/common/page-header/default-config.ts
+341 βˆ’0 app/scripts/components/common/page-header/index.tsx
+114 βˆ’0 app/scripts/components/common/page-header/logo.tsx
+148 βˆ’0 app/scripts/components/common/page-header/nav-menu-item.tsx
+33 βˆ’0 app/scripts/components/common/page-header/types.d.ts
+7 βˆ’1 app/scripts/components/exploration/atoms/hooks.ts
+86 βˆ’61 app/scripts/components/exploration/components/timeline/date-axis.tsx
+56 βˆ’8 app/scripts/components/exploration/components/timeline/timeline-controls.tsx
+18 βˆ’5 app/scripts/components/exploration/components/timeline/timeline-datepicker.tsx
+7 βˆ’6 app/scripts/components/exploration/components/timeline/timeline-head.tsx
+63 βˆ’0 app/scripts/components/exploration/components/timeline/timeline-utils.ts
+35 βˆ’3 app/scripts/components/exploration/components/timeline/timeline.tsx
+32 βˆ’6 app/scripts/components/exploration/data-utils-no-faux-module.ts
+2 βˆ’2 app/scripts/components/exploration/data-utils.ts
+2 βˆ’2 app/scripts/components/home/index.tsx
+1 βˆ’1 app/scripts/components/stories/hub/index.tsx
+13 βˆ’16 app/scripts/types/veda.ts
+1 βˆ’0 mock/stories/internal-link-example.stories.mdx
+72 βˆ’0 mock/veda.config.js
+2 βˆ’1 package.json
+49 βˆ’27 parcel-resolver-veda/index.d.ts
+4 βˆ’2 parcel-resolver-veda/index.js
+5 βˆ’0 yarn.lock
8 changes: 4 additions & 4 deletions datasets/odiac-ffco2-monthgrid-v2023.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ infoDescription: |
- Temporal Resolution: Monthly
- Spatial Extent: Global
- Spatial Resolution: 1 km x 1 km
- Data Units: Tons of carbon per 1 km x 1 km cell (monthly total)
- Data Units: Metric tonnes of carbon per 1 km x 1 km cell per month (tonne C/kmΒ²/month)
- Data Type: Research
- Data Latency: Updated annually, following the release of an updated [BP Statistical Review of World Energy report](https://www.bp.com/en/global/corporate/energy-economics/statistical-review-of-world-energy.html)
Expand Down Expand Up @@ -73,7 +73,7 @@ layers:
}
legend:
unit:
label: tons C/month
label: tonne C/kmΒ²/month
type: gradient
min: -10
max: 60
Expand Down Expand Up @@ -107,7 +107,7 @@ layers:
source: NASA / NIES
spatialExtent: Global
temporalResolution: Monthly
unit: tons C/month
unit: tonne C/kmΒ²/month
media:
src: ::file ./odiac-ffco2-monthgrid-v2022.thumbnails.co2.png
alt: ODIAC Fossil Fuel COβ‚‚ Emissions - Fossil Fuel COβ‚‚ Emissions
Expand All @@ -120,7 +120,7 @@ layers:
**Temporal Resolution:** Monthly<br />
**Spatial Extent:** Global<br />
**Spatial Resolution:** 1 km x 1 km<br />
**Data Units:** Tons of carbon per 1 km x 1 km cell (monthly total)<br />
**Data Units:** Metric tonnes of carbon per 1 km x 1 km cell per month (tonne C/kmΒ²/month)<br />
**Data Type:** Research<br />
**Data Latency:** Updated annually, following the release of an updated [BP Statistical Review of World Energy report](https://www.bp.com/en/global/corporate/energy-economics/statistical-review-of-world-energy.html)

Expand Down
14 changes: 10 additions & 4 deletions overrides/home/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ const IntroHeadline = styled.div`
}
`;

const ButtonWithLongText = styled(Button)`
min-height: 3rem;
height: auto;
`

const ActionsBlock = styled.div`
grid-column: 1 / -1;
display: flex;
Expand Down Expand Up @@ -144,22 +150,22 @@ export default function HomeComponent() {
<Keypoints />
<ActionsBlock>
<Buttons>
<Button
<ButtonWithLongText
forwardedAs={NavLink}
to="/data-catalog"
size="xlarge"
variation="primary-fill"
>
Browse the Data Catalog <CollecticonArrowRight />
</Button>
<Button
</ButtonWithLongText>
<ButtonWithLongText
onClick={() => handleOpenModal("https://www.youtube.com/embed/S2XL5WT9W4g")}
size="xlarge"
variation="primary-fill"
>
<CollecticonCirclePlay />
How to Explore Data
</Button>
</ButtonWithLongText>
</Buttons>
</ActionsBlock>
</HomeContent>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "veda-config",
"description": "Configuration for Veda",
"version": "2.0.10",
"version": "2.0.11",
"source": "./.veda/ui/app/index.html",
"license": "Apache-2.0",
"scripts": {
Expand Down
30 changes: 30 additions & 0 deletions veda.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
const dotEnvConfig = require('dotenv').config();
const { parsed: config } = dotEnvConfig;

let subNavItems = [
{
title: 'Learn',
to: '/learn',
type: 'internalLink'
},
{
title: 'About',
to: '/about',
type: 'internalLink'
},
]

if (config.GOOGLE_FORM) {
subNavItems = [
...subNavItems,
{
title: 'Contact us',
src: config.GOOGLE_FORM,
type: 'modal'
}
];
}

module.exports = {
/**
* Glob path for the datasets.
Expand Down Expand Up @@ -72,4 +99,7 @@ module.exports = {
booleans: {
'externalLinksInNewTab': true,
},
navItems: {
subNavItems: subNavItems
}
};

0 comments on commit f3cf0ef

Please sign in to comment.