-
Notifications
You must be signed in to change notification settings - Fork 5
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
color range slider revert correction #1278
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e85ea31 - Browse repository at this point
Copy the full SHA e85ea31View commit details
Commits on Oct 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4cfe488 - Browse repository at this point
Copy the full SHA 4cfe488View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b41dad - Browse repository at this point
Copy the full SHA 3b41dadView commit details
Commits on Oct 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 86e83fa - Browse repository at this point
Copy the full SHA 86e83faView commit details
Commits on Oct 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1ee6025 - Browse repository at this point
Copy the full SHA 1ee6025View commit details -
make steps appear in report, use better locators and validators, add expectations verbose, ...
Configuration menu - View commit details
-
Copy full SHA for 15636b8 - Browse repository at this point
Copy the full SHA 15636b8View commit details
Commits on Oct 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c83bce5 - Browse repository at this point
Copy the full SHA c83bce5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebcaff6 - Browse repository at this point
Copy the full SHA ebcaff6View commit details
Commits on Oct 30, 2024
-
Handle the case when source parameters + render parameters are both e…
…mpty (#1218) **Related Ticket:** #1028 ### Description of Changes - It turns out that there are datasets (such as globalscope bluetarp) that should not have any titiler parameters. Bluetarp data from stac backend: https://staging.openveda.cloud/api/stac/collections/blue-tarp-planetscope ### Notes & Questions About Changes This makes me wonder about if we can validate anything about render parameters - ex. When there is no render parameter at all from stac back-end points, is there any way to be sure that this dataset is meant to be without render parameters ? - Tagging @smohiudd for this question. ### Testing Test this branch with veda-config's globalscope bluetarp dataset.
Configuration menu - View commit details
-
Copy full SHA for 1046666 - Browse repository at this point
Copy the full SHA 1046666View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7301b3c - Browse repository at this point
Copy the full SHA 7301b3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d53f73 - Browse repository at this point
Copy the full SHA 4d53f73View commit details -
You can find VEDA Dashboard preview link to test these changes: NASA-IMPACT/veda-config#470 ## 🎉 Features - Cookie consent component: #1163, #1165, #1127, #1177 - Stories Hub export in #1162 - Expose As Is - PageHeader, LinkElement Prop & Logo in #1184 ## 🚀 Improvements - Add docs for registry dev in #1169 - Timeline date selection centering functionality in #1181 - Deprecate old explore page, Mapbox component #1176 - Update doc with new diagrams about general architecture in #1195 - Add playwright in #1139 - Pre-select AOIs that have the "selected" prop set to true in #1215 - ## 🐛 Fixes - Check dastaset analysis exclude attribute before running analysis in #1175 - Restrict dynamic colormaps to applicable layer types in #1183 - Fix external link badge display for tools hosted under the same domain in #1192 - Escape special characters in regex expression when searching datasets in #1204 ### New Contributors * @snmln made their first contribution in #1127 * @AliceR made their first contribution in #1204
Configuration menu - View commit details
-
Copy full SHA for 179976e - Browse repository at this point
Copy the full SHA 179976eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7cc874 - Browse repository at this point
Copy the full SHA d7cc874View commit details
Commits on Oct 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ac43f28 - Browse repository at this point
Copy the full SHA ac43f28View commit details -
Configuration menu - View commit details
-
Copy full SHA for da6c562 - Browse repository at this point
Copy the full SHA da6c562View commit details -
Update condition to run playwright tests on release branches (#1228)
**Related Ticket:** _{link related ticket here}_ ### Description of Changes We want to run the github playwright step only on branches whose name start with `release`. ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing _{Update with info on what can be manually validated in the Deploy Preview link for example "Validate style updates to selection modal do NOT affect cards"}_
Configuration menu - View commit details
-
Copy full SHA for b1f14cc - Browse repository at this point
Copy the full SHA b1f14ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for dcb5fdf - Browse repository at this point
Copy the full SHA dcb5fdfView commit details -
Keep prettier rules in a single location
in .prettierrc. Also, added the typescript parser as override for .ts/.tsx files, which finally enabled me to correctly lint the typescript files.
Configuration menu - View commit details
-
Copy full SHA for 668ab66 - Browse repository at this point
Copy the full SHA 668ab66View commit details -
just a one line change to the style guide docs
Configuration menu - View commit details
-
Copy full SHA for b8b3f95 - Browse repository at this point
Copy the full SHA b8b3f95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ea196 - Browse repository at this point
Copy the full SHA 80ea196View commit details -
Fix lint configuration (#1219)
Enable prettier for .ts/.tsx files, but only warn. Also, keep prettier rules in a single location in .prettierrc, and add the typescript parser as override for .ts/.tsx files, which finally enabled me to correctly lint the typescript files.
Configuration menu - View commit details
-
Copy full SHA for d4de243 - Browse repository at this point
Copy the full SHA d4de243View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e42222 - Browse repository at this point
Copy the full SHA 2e42222View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9b231b - Browse repository at this point
Copy the full SHA e9b231bView commit details
Commits on Nov 4, 2024
-
Add tests for the AOI feature specification (#1216)
**Related Ticket:** #1207 ### Description of Changes So far, added a first test for the scenario "User selects a pre-defined AOI". I'm adding some `data-testid` properties to relevant dom elements in order to select them in the test. Also, added some documentation on how to run the tests. @hanbyul-here if you want to try that on your machine, and let me know if it works? ### Notes & Questions About Changes more tests to be added ### Validation / Testing Follow the instructions added to the SETUP.md guide to run the tests locally. See if they pass!
Configuration menu - View commit details
-
Copy full SHA for 973aadd - Browse repository at this point
Copy the full SHA 973aaddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10a0aa3 - Browse repository at this point
Copy the full SHA 10a0aa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cd0700 - Browse repository at this point
Copy the full SHA 9cd0700View commit details -
Configuration menu - View commit details
-
Copy full SHA for dea2183 - Browse repository at this point
Copy the full SHA dea2183View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4d715e - Browse repository at this point
Copy the full SHA d4d715eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d99af1f - Browse repository at this point
Copy the full SHA d99af1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb4b0ff - Browse repository at this point
Copy the full SHA eb4b0ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for d89d3ba - Browse repository at this point
Copy the full SHA d89d3baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5138220 - Browse repository at this point
Copy the full SHA 5138220View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87161fd - Browse repository at this point
Copy the full SHA 87161fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85742bc - Browse repository at this point
Copy the full SHA 85742bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8022c5 - Browse repository at this point
Copy the full SHA a8022c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7061657 - Browse repository at this point
Copy the full SHA 7061657View commit details -
Cookie consent render logic (#1240)
This pr fixes infinite rerendering issue (it was from the parsing error of cookie value - so I added a unit test to make sure this works. - I used the solution from this post, feel free to edit if you see any improvement https://stackoverflow.com/questions/5142337/read-a-javascript-cookie-by-name) - also feel free to edit the test, I mainly put it for my dev purpose. I removed currenwindowurl logic, replaced it with pathname passed from the layout root. I started making this change and then realized that this is not the cause of infinite rendering problem, but I think it is probably safer to depend on the pathname change than location.href since href can include so many things like query parameters?
Configuration menu - View commit details
-
Copy full SHA for 0b1a732 - Browse repository at this point
Copy the full SHA 0b1a732View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d5ad43 - Browse repository at this point
Copy the full SHA 6d5ad43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 368c2be - Browse repository at this point
Copy the full SHA 368c2beView commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2682238 - Browse repository at this point
Copy the full SHA 2682238View commit details -
Hotfix to hide the external link badge from cards (#1231)
**Related Ticket:** _{link related ticket here}_ ### Description of Changes This update addresses a mistake I made from the initial fix involving the new `isExternalLink` prop, which unintentionally altered the behavior of external links. Basically, this prop not only hid the "External Link" badge but also incorrectly routed external links through React's internal routing, resulting in URLs like `earth.gov/visit/https://earth.gov/mobile-climate-mapper` instead of correctly navigating to `earth.gov/mobile-climate-mapper` **What's fixed here:** 1. Removed the `isExternalLink` prop to revert unintended internal link behavior 2. Introduced a new prop, `hideExternalLinkBadge` that more clearly describes it's role and is used specifically for **visually hiding** the "External Link" badge without altering the link's external behavior ### Notes & Questions About Changes To minimize team effort for a hotfix release and since this fix is specific to the EIC instance only, I did the following: 1. Created a branch from the latest tag specifically for this hotfix 2. Bumped the EIC instance to the latest UI version using this hotfix branch 3. Protected the hotfix branch, which will remain in place until the next planned release (in two weeks) ### Validation / Testing 1. Use the `hideExternalLinkBadge` prop to the `External Link Test` story 2. Check that the "External Link" badge is hidden from the story card 3. Check that the link is opened correctly once the card is clicked Or check it out in [practice on the EIC instance here](https://deploy-preview-144--earth-information-center.netlify.app/visit), where the Mobile Climate Mapper card has no "External Link" badge anymore:
Configuration menu - View commit details
-
Copy full SHA for 4d4b9b4 - Browse repository at this point
Copy the full SHA 4d4b9b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 117db83 - Browse repository at this point
Copy the full SHA 117db83View commit details -
Set data catalog filters to be closed by default (#1243)
**Related Ticket:** US-GHG-Center/ghgc-architecture#391 ### Description of Changes With this change the data catalog filters controls are initially displayed in a closed state when the page loads. ### Notes & Questions About Changes This affects two pages: Data Catalog and Exploration. ### Validation / Testing Visit the following URLs (on localhost), all of them should display the filter controls closed on page load: - [Data Catalog page, no filter option selected](http://localhost:9000/data-catalog) - [Data Catalog page, filter options are selected](http://localhost:9000/data-catalog?taxonomy=%7B%22Topics%22%3A%5B%22burn-severity%22%5D%2C%22Source%22%3A%5B%22cmip-6%22%2C%22epa%22%5D%7D) - [Exploration page, no filter option selected](http://localhost:9000/exploration) - [Exploration page, a filter option is selected](http://localhost:9000/exploration?datasets=%5B%5D&taxonomy=%7B%22Topics%22%3A%5B%22climate-model%22%5D%7D)
Configuration menu - View commit details
-
Copy full SHA for 572459e - Browse repository at this point
Copy the full SHA 572459eView commit details -
Simplify logic for cookie consent (#1241)
First of all, I apologize that I could not make this suggestion as a part of review. It is still challenging for me to make a suggestion without actually touching the code. This PR handles several things. The first to fix is cookieconsent form gradually disappears on the first page load. The second is not depending on session storage - mainly because I feel like it was diverging the logic flow - but if I am missing anything, please feel free to close this. The third is moving out the utility function outside of the component, so it doesn't have to be declared as a dependency of useEffect hook.
Configuration menu - View commit details
-
Copy full SHA for 598ac2a - Browse repository at this point
Copy the full SHA 598ac2aView commit details
Commits on Nov 6, 2024
-
1171 cookie consent clean up (#1199)
**Related Ticket:** #1171 ### Description of Changes - Relocating cookie retrieval, validation, and creation functionality from `layoutRoot` to `cookieConsentForm` - Implementing `session item` to track when a session has begun for each individual user and only run validation and retrieval functionality on session start and when a response has not been recorded. - Adjusting Banner content to accept markdown in config props. ### Notes & Questions About Changes ### Validation / Testing Clear out all cookies in your local machine to do so: open `dev tools` -> navigate to `application tab`-> navigate to `cookies` in the left panel -> right click `clear` - After clearing your existing site cookies, navigate to any page. Click on **Decline**. Navigate to another page and you should not see the cookie consent form component. - Clearing your existing site cookies again, navigate to any page. Click on **Accept**. Navigate to another page and you should not see the cookie consent form component. - Clearing your existing site cookies again, navigate to any page. Click on **X**. Navigate to another page and you should see the cookie consent form component rerendered.
Configuration menu - View commit details
-
Copy full SHA for d2bc0e5 - Browse repository at this point
Copy the full SHA d2bc0e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for db3b502 - Browse repository at this point
Copy the full SHA db3b502View commit details
Commits on Nov 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8200621 - Browse repository at this point
Copy the full SHA 8200621View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0839c98 - Browse repository at this point
Copy the full SHA 0839c98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0438c6b - Browse repository at this point
Copy the full SHA 0438c6bView commit details -
Update tsconfig and make nav interfaces exposable for consumption (#1223
) **Related Ticket:** #1186 **Related PR:** developmentseed/next-veda-ui#10 **Note** To expose interfaces from veda-ui - they should be defined in `.ts` files vs `.d.ts` files. This is because parcel isn't building the typescript definition files into `lib/index.d.ts` but does so when the file is `.ts`. **When building the library with `.d.ts` extension - there are NO type hints from NextInstance side** <img width="1086" alt="Screenshot 2024-11-04 at 9 23 19 AM" src="https://github.com/user-attachments/assets/75d746c3-018e-44a8-8ee3-4f37e336c363"> **When building the library with `.ts` extension - there are type hints form NextInstance side** <img width="1124" alt="Screenshot 2024-11-04 at 9 20 02 AM" src="https://github.com/user-attachments/assets/26ec377d-feb1-48ca-a18b-e54835de91ff"> ### Description of Changes * Update typescript definition file of nav types to typescript file * Add declaration true to tsconfig ### Notes & Questions About Changes Found this thread about typescript definition files and parcel build here parcel-bundler/parcel#1240 ### Validation / Testing _{Update with info on what can be manually validated in the Deploy Preview link for example "Validate style updates to selection modal do NOT affect cards"}_
Configuration menu - View commit details
-
Copy full SHA for adb8741 - Browse repository at this point
Copy the full SHA adb8741View commit details
Commits on Nov 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 842216d - Browse repository at this point
Copy the full SHA 842216dView commit details
Commits on Nov 11, 2024
-
Card image/description independent of hero image/description (#1244)
**Related Ticket:** US-GHG-Center/veda-config-ghg#636 ### Description of Changes 1. Introduced new `cardDescription` and `cardMedia` props to enable customizable card content 2. Implemented a fallback background color for cases where no media (e.g image source) is provided These updates are applied across various places where the card component is used (story cards) but also layer cards in the Data Catalog and the E&A Catalog to better control displayed descriptions and images. ### Notes & Questions About Changes ### Validation / Testing 1. Add `cardDescription` to the 'This is the life of water' story in the MDX configuration file 2. Verify that `/stories` displays the newly added `cardDescription` on the card 3. Click on the story -> verify that the hero section retains its previous description, separate from the card description 4. Try the same with `cardMedia` 5. Also try to remove both the `cardMedia` and the `media` prop -> verify that there's a fallback background color shown Verify that the behavior below (copied from the issues' acceptance criteria) is applied: 1. Story and dataset administrators can define a hero image and a card image separately from one another, within the mdx file 2. Story and dataset administrators can define a hero description and a card description separately from one another, within the mdx file 3. If a story or dataset does not have any hero or card images configured, then we default to a blank space of a solid primary color (like the blue hero for Data Catalog in GHGC) 4. If a story or dataset has a hero image defined, but no card image defined, then the card image shows the hero image (like how it currently functions)
Configuration menu - View commit details
-
Copy full SHA for 2c7561f - Browse repository at this point
Copy the full SHA 2c7561fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea91981 - Browse repository at this point
Copy the full SHA ea91981View commit details -
Expose ExplorationAndAnalysis component, update date-fns for building…
… library, and get to render in nextJs instance
Configuration menu - View commit details
-
Copy full SHA for 7ffa351 - Browse repository at this point
Copy the full SHA 7ffa351View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7061c7f - Browse repository at this point
Copy the full SHA 7061c7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6dfab5 - Browse repository at this point
Copy the full SHA a6dfab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef45523 - Browse repository at this point
Copy the full SHA ef45523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11eb134 - Browse repository at this point
Copy the full SHA 11eb134View commit details -
Configuration menu - View commit details
-
Copy full SHA for a31fc6d - Browse repository at this point
Copy the full SHA a31fc6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcbf657 - Browse repository at this point
Copy the full SHA bcbf657View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad732f7 - Browse repository at this point
Copy the full SHA ad732f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f4e65c - Browse repository at this point
Copy the full SHA 9f4e65cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9afeaaa - Browse repository at this point
Copy the full SHA 9afeaaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for af34511 - Browse repository at this point
Copy the full SHA af34511View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39dfb20 - Browse repository at this point
Copy the full SHA 39dfb20View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5da6c - Browse repository at this point
Copy the full SHA df5da6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a6cff1 - Browse repository at this point
Copy the full SHA 1a6cff1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c08048 - Browse repository at this point
Copy the full SHA 0c08048View commit details -
Configuration menu - View commit details
-
Copy full SHA for db9e3c1 - Browse repository at this point
Copy the full SHA db9e3c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 103b3f6 - Browse repository at this point
Copy the full SHA 103b3f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ac2a9 - Browse repository at this point
Copy the full SHA 20ac2a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 165906e - Browse repository at this point
Copy the full SHA 165906eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d6047e - Browse repository at this point
Copy the full SHA 6d6047eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a538d20 - Browse repository at this point
Copy the full SHA a538d20View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb09159 - Browse repository at this point
Copy the full SHA fb09159View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb269d0 - Browse repository at this point
Copy the full SHA fb269d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d89476 - Browse repository at this point
Copy the full SHA 3d89476View commit details -
Configuration menu - View commit details
-
Copy full SHA for acafa2e - Browse repository at this point
Copy the full SHA acafa2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 090c256 - Browse repository at this point
Copy the full SHA 090c256View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86c90c3 - Browse repository at this point
Copy the full SHA 86c90c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 529d6aa - Browse repository at this point
Copy the full SHA 529d6aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6107a3c - Browse repository at this point
Copy the full SHA 6107a3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e130a6a - Browse repository at this point
Copy the full SHA e130a6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f23dac9 - Browse repository at this point
Copy the full SHA f23dac9View commit details -
Configuration menu - View commit details
-
Copy full SHA for de31403 - Browse repository at this point
Copy the full SHA de31403View commit details -
Remove onClick from linkProps, Remove linkProps req from card, Fix to…
… have externallinkbadge hotfix changes
Configuration menu - View commit details
-
Copy full SHA for 4b59fd6 - Browse repository at this point
Copy the full SHA 4b59fd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8321a12 - Browse repository at this point
Copy the full SHA 8321a12View commit details -
Configuration menu - View commit details
-
Copy full SHA for c502224 - Browse repository at this point
Copy the full SHA c502224View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ec5744 - Browse repository at this point
Copy the full SHA 0ec5744View commit details -
Configuration menu - View commit details
-
Copy full SHA for bee9d96 - Browse repository at this point
Copy the full SHA bee9d96View commit details
Commits on Nov 12, 2024
-
## 🎉 Features * Card image/description independent of hero image/description by @dzole0311 in #1244 ## 🚀 Improvements * Cookie consent code cleanup by @snmln in #1199 , and @hanbyul-here in #1240 , and @hanbyul-here in #1241 * Add ADR about design system change by @j08lue in #890 * Update condition to run playwright tests on release branches by @dzole0311 in #1228 * Update STYLE_GUIDE.md by @AliceR in #1227 * Fix lint configuration by @AliceR in #1219 * Add tests for the AOI feature specification by @AliceR in #1216 * Set data catalog filters to be closed by default by @vgeorge in #1243 * Update tsconfig and make nav interfaces exposable for consumption by @sandrahoang686 in #1223 ## 🐛 Fixes * Hotfix to hide the external link badge from cards by @dzole0311 in #1231 ## New Contributors * @vgeorge made their first contribution in #1243 **Full Changelog**: v5.9.0...v5.10.0
Configuration menu - View commit details
-
Copy full SHA for 6e929e8 - Browse repository at this point
Copy the full SHA 6e929e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ab1a3f - Browse repository at this point
Copy the full SHA 1ab1a3fView commit details
Commits on Nov 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23abc94 - Browse repository at this point
Copy the full SHA 23abc94View commit details -
Various cleanup on EA breakout feature branch (#1251)
**Related Ticket:** #1154 ### Description of Changes * Fixed to have changes from https://github.com/NASA-IMPACT/veda-ui/pull/1231/files# which I accidentally removed when resolving conflicts in main feature branch * Remove `onClick` from `LinkProperties` * When something is a link, it doesn't need an onClick event... The onClick event should be placed on the `Card` Component instead of link props * LinkProperties should not be required for the card component. Only when the card re-routes would it need the linkProperties. For example, cards on the dataset selector modal dont re-route and we shouldn't have to pass in linkProps * Remove try/catch around aoi area/point selection logic and into local state with useEffect ### Note Built `v5.9.1-ea.0` off of these changes Update: Bulit `v5.9.1-ea.1` has been built ### Validation / Testing * Please make sure Dataset Layer Selection modal and E&A works as expected * Please make sure all cards in the dashboard are working as expected * Make sure external cards link externally and have the external badge * Make sure internal cards link internally correctly * Make sure Dataset Layer Selection modal selects cards as expected **NextJs Preview with updated version:** developmentseed/next-veda-ui#4
Configuration menu - View commit details
-
Copy full SHA for 387401f - Browse repository at this point
Copy the full SHA 387401fView commit details
Commits on Nov 14, 2024
-
[FEATURE BRANCH] 902 E&A breakout (#1154)
**Related Ticket:** #902 ### Description of Changes **Related NextJs PR/Branch:** developmentseed/next-veda-ui#4 **GHG Preview** with this branch pulled in generated here => US-GHG-Center/veda-config-ghg#659 **Iteration 1** - Issue #902, changes by @sandrahoang686 * Exposed `ExplorationAndAnalysis` component * Exposed `timelineDatasetsAtom` to be used NextJs side * Exposed & Moved/decoupled `DatasetSelectorModal` out of `ExplorationAndAnalysis`. ExplorationAndAnalysis only needs to know the dataset layers to be displayed. DatasetSelectorModal or whatever layer selection method should be controlled at the parent level above `ExplorationAndAnalysis`. * Commented out certain controls that were breaking `ExplorationAndAnalysis` in NextJs instance * `AnalysisMessageControl` * `CustomAoIControl` ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing * Validate that Datalayer Selection Modal works as expected * Validate that E&A features work as expected - aois, analyzation, adding/removing cards * Validate that all card linking works as expected
Configuration menu - View commit details
-
Copy full SHA for a8311c2 - Browse repository at this point
Copy the full SHA a8311c2View commit details
Commits on Nov 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 35d405c - Browse repository at this point
Copy the full SHA 35d405cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba98c4a - Browse repository at this point
Copy the full SHA ba98c4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b13f55 - Browse repository at this point
Copy the full SHA 0b13f55View commit details
Commits on Nov 19, 2024
-
[1156] Expose a Veda UI EnvConfigProvider for providing env variables (…
…#1253) **Related Ticket:** #1166 ### Problem We need a way for future Next.js instances using veda-ui components to pass their environment variables to the library [The previous PR](#1252) tried to pass env variables as props to our components. However, this might be difficult to maintain and to scale as new environment variables will be added. This PR introduces a centralized config place through a new `VedauiConfigProvider` context to allow devs to configure all environment variables in one place via a config object. ### Description of Changes **Veda-UI changes** - Created `VedauiConfigProvider` context provider - Currently supports these configuration options: - `mapboxToken` ( `MAPBOX_TOKEN`) - `apiRasterEndpoint` (`API_RASTER_ENDPOINT`) - `apiStacEndpoint` (from `API_STAC_ENDPOINT`) - Refactored internal components to consume the environment variables from this context **Next.js ([PR here](developmentseed/next-veda-ui#13 - Imported and used the new provider - ℹ️ In Next.js, environment variables should be named according to the Next.js naming standards so that they can be applied e.g `MAPBOX_TOKEN` should be `NEXT_PUBLIC_MAPBOX_TOKEN` etc. ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing Test that the correct env variables are applied when using the library in Next.js
Configuration menu - View commit details
-
Copy full SHA for ad47c20 - Browse repository at this point
Copy the full SHA ad47c20View commit details
Commits on Nov 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 97f4ad9 - Browse repository at this point
Copy the full SHA 97f4ad9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f9c679 - Browse repository at this point
Copy the full SHA 4f9c679View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5c2b3c - Browse repository at this point
Copy the full SHA a5c2b3cView commit details
Commits on Nov 21, 2024
-
**Related Ticket:** #1264 ### Description of Changes Removed minHeight prop to avoid undesired card behavior. The css prop was introduced here: #1244 ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing 1. Open the stories page where there are card components 2. Verify that the images in the cards no longer have a minHeight property 4. Verify that the card layout appears consistent and the image heights are reduced compared to the previous behavior on v10.0.0 Or see the Air Quality card here: - Before: https://deploy-preview-1250--veda-ui.netlify.app/stories - After: https://deploy-preview-1265--veda-ui.netlify.app/stories
Configuration menu - View commit details
-
Copy full SHA for 14fc8ea - Browse repository at this point
Copy the full SHA 14fc8eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41a3a48 - Browse repository at this point
Copy the full SHA 41a3a48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3543334 - Browse repository at this point
Copy the full SHA 3543334View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32bbf8c - Browse repository at this point
Copy the full SHA 32bbf8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 903807f - Browse repository at this point
Copy the full SHA 903807fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34d878f - Browse repository at this point
Copy the full SHA 34d878fView commit details
Commits on Nov 25, 2024
-
Remove React Router's useNavigate dependency (#1270)
**Related Ticket:** Contributes to #1108 This aims to ensure catalog filters work correctly in Next.js. ### Description of Changes Removes the usage of React Router's `useNavigate` hook in the library to make it more agnostic of routing frameworks, allowing it to work better with Next.js instances. Changes included: - Added a custom `commit` function to `useQsStateCreator`. It appears this was the only place where the `useNavigate` function was effectively in use. I tried using the default `commit` function from the [qs-state-hook](https://github.com/danielfdsilva/qs-state-hook) library, but it doesn't work with Next.js - Formatted the touched files ### Validation / Testing Using `veda-config`: 1. Visit the data catalog page 2. Click on filters, and URL params are updated as usual 3. Reload the page with filters selected; the filter panel is populated as expected 4. Repeat the steps on the Exploration and Stories pages Using `next-veda-ui` instance: 1. Link the source of this PR to the Next.js instance using the instructions in `veda-ui/docs/development/REGISTRY.md` 2. Replace the file `app/(datasets)/data-catalog/catalog.tsx` (this avoids build errors caused by type issues) ```js 'use client'; import React from 'react'; import { CatalogView, useFiltersWithQS } from '@lib'; import { usePathname } from 'next/navigation'; import Link from 'next/link'; export default function Catalog({ datasets }: { datasets: any }) { const pathname = usePathname(); const controlVars = useFiltersWithQS(); return ( <CatalogView datasets={datasets} onFilterChanges={() => controlVars} pathname={pathname} linkProperties={{ LinkElement: Link, pathAttributeKeyName: 'href', }} /> ); } ``` 3. Access `http://localhost:3000/data-catalog`. Filter changes are reflected in the URL, and reloading populates the filter panel as expected This is ready for review.
Configuration menu - View commit details
-
Copy full SHA for edc5d9e - Browse repository at this point
Copy the full SHA edc5d9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4556ef - Browse repository at this point
Copy the full SHA b4556efView commit details -
[#1238] Create a derived atom for dataset hydration from Next.js (#1266)
**Related Ticket:** #1238 **Related Next.js PR:** developmentseed/next-veda-ui#17 ### Description of Changes - Removed dependency on static datasets (veda_faux_module_datasets) when reconciling datasets from URL params in E&A - Created `externalDatasetsAtom` to store datasets from host applications (eg Next.js) - Modified `datasetLayersAtom` to use external datasets instead of the bundled static datasets from VEDA UI ### Notes & Questions About Changes _{Add additonal notes and outstanding questions here related to changes in this pull request}_ ### Validation / Testing VEDA UI 1. Open E&A and select a few datasets 2. Once they are loaded, refresh the page 3. Verify that the datasets still load without issues, no errors are thrown Next.js 1. Same as for the VEDA UI above
Configuration menu - View commit details
-
Copy full SHA for f31f4be - Browse repository at this point
Copy the full SHA f31f4beView commit details
Commits on Nov 26, 2024
-
[RELEASE] Bump minor to v5.11.0 (#1274)
### 🚀 Improvements * Exploration & Analysis core VEDA feature breakout #1251 #1154 * Introduce `EnvConfigProvider` to simplify the injection of environment variables from host applications like Next.js #1253 * Remove React Router's `useNavigate` dependency for simplifying the routing #1270 ### 🐛 Fixes * Fix an issue where card images fail to maintain the correct aspect ratio #1265
Configuration menu - View commit details
-
Copy full SHA for 9132e6d - Browse repository at this point
Copy the full SHA 9132e6dView commit details