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

color range slider revert correction #1278

Closed
wants to merge 112 commits into from

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    e85ea31 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    4cfe488 View commit details
    Browse the repository at this point in the history
  2. Add instructions to the setup documentation

    on how to run the tests
    AliceR committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    3b41dad View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    86e83fa View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    1ee6025 View commit details
    Browse the repository at this point in the history
  2. Improve aoi tests

    make steps appear in report, use better locators and validators, add expectations verbose, ...
    AliceR committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    15636b8 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Release v5.9.0

    hanbyul-here committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    c83bce5 View commit details
    Browse the repository at this point in the history
  2. Revert "Color maps range slider implementation (#1190)"

    This reverts commit 233a31c, reversing
    changes made to 46e1c5d.
    snmln committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    ebcaff6 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. 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.
    hanbyul-here authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    1046666 View commit details
    Browse the repository at this point in the history
  2. Update STYLE_GUIDE.md

    AliceR authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    7301b3c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d53f73 View commit details
    Browse the repository at this point in the history
  4. [Release] v5.9.0 (#1224)

    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
    snmln authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    179976e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d7cc874 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Configuration menu
    Copy the full SHA
    ac43f28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da6c562 View commit details
    Browse the repository at this point in the history
  3. 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"}_
    dzole0311 authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    b1f14cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dcb5fdf View commit details
    Browse the repository at this point in the history
  5. 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.
    AliceR committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    668ab66 View commit details
    Browse the repository at this point in the history
  6. Update STYLE_GUIDE.md (#1227)

    just a one line change to the style guide docs
    AliceR authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    b8b3f95 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    80ea196 View commit details
    Browse the repository at this point in the history
  8. 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.
    AliceR authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    d4de243 View commit details
    Browse the repository at this point in the history
  9. Bump package json version

    dzole0311 committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    2e42222 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e9b231b View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. 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!
    AliceR authored Nov 4, 2024
    Configuration menu
    Copy the full SHA
    973aadd View commit details
    Browse the repository at this point in the history
  2. removing fucntionality from layout

    snmln authored and hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    10a0aa3 View commit details
    Browse the repository at this point in the history
  3. implementing session item

    snmln authored and hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    9cd0700 View commit details
    Browse the repository at this point in the history
  4. banner adjustments

    snmln authored and hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    dea2183 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d4d715e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d99af1f View commit details
    Browse the repository at this point in the history
  7. addressing lint errors.

    snmln authored and hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    eb4b0ff View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d89d3ba View commit details
    Browse the repository at this point in the history
  9. implementing review feedback.

    snmln authored and hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    5138220 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    87161fd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    85742bc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a8022c5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7061657 View commit details
    Browse the repository at this point in the history
  14. 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?
    snmln authored Nov 4, 2024
    Configuration menu
    Copy the full SHA
    0b1a732 View commit details
    Browse the repository at this point in the history
  15. Do not use session

    hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    6d5ad43 View commit details
    Browse the repository at this point in the history
  16. Use debounced function

    hanbyul-here committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    368c2be View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Fix test

    hanbyul-here committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    2682238 View commit details
    Browse the repository at this point in the history
  2. 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:
    dzole0311 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    4d4b9b4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    117db83 View commit details
    Browse the repository at this point in the history
  4. 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)
    vgeorge authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    572459e View commit details
    Browse the repository at this point in the history
  5. 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.
    snmln authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    598ac2a View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. 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.
    snmln authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    d2bc0e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db3b502 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Configuration menu
    Copy the full SHA
    8200621 View commit details
    Browse the repository at this point in the history
  2. change nav file type

    sandrahoang686 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    0839c98 View commit details
    Browse the repository at this point in the history
  3. expose NavItemType

    sandrahoang686 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    0438c6b View commit details
    Browse the repository at this point in the history
  4. 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"}_
    sandrahoang686 authored Nov 7, 2024
    Configuration menu
    Copy the full SHA
    adb8741 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    842216d View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. 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)
    dzole0311 authored Nov 11, 2024
    Configuration menu
    Copy the full SHA
    2c7561f View commit details
    Browse the repository at this point in the history
  2. Bump version in package.json

    AliceR authored Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ea91981 View commit details
    Browse the repository at this point in the history
  3. Expose ExplorationAndAnalysis component, update date-fns for building…

    … library, and get to render in nextJs instance
    sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    7ffa351 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7061c7f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6dfab5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ef45523 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    11eb134 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a31fc6d View commit details
    Browse the repository at this point in the history
  9. add comment

    sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    bcbf657 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ad732f7 View commit details
    Browse the repository at this point in the history
  11. Fix lint

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    9f4e65c View commit details
    Browse the repository at this point in the history
  12. Fix unmount error

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    9afeaaa View commit details
    Browse the repository at this point in the history
  13. Clean up

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    af34511 View commit details
    Browse the repository at this point in the history
  14. Switch to non-ref object usage

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    39dfb20 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    df5da6c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1a6cff1 View commit details
    Browse the repository at this point in the history
  17. Put onClick props directly

    hanbyul-here authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    0c08048 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    db9e3c1 View commit details
    Browse the repository at this point in the history
  19. Revert fix attempt

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    103b3f6 View commit details
    Browse the repository at this point in the history
  20. Fix imports

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    20ac2a9 View commit details
    Browse the repository at this point in the history
  21. Add missing import

    dzole0311 authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    165906e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6d6047e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    a538d20 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    fb09159 View commit details
    Browse the repository at this point in the history
  25. Flag the problem - 1

    hanbyul-here authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    fb269d0 View commit details
    Browse the repository at this point in the history
  26. Edit date atom (workaround)

    hanbyul-here authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    3d89476 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    acafa2e View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    090c256 View commit details
    Browse the repository at this point in the history
  29. Add last array method

    hanbyul-here authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    86c90c3 View commit details
    Browse the repository at this point in the history
  30. Revert temporary work around

    hanbyul-here authored and sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    529d6aa View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6107a3c View commit details
    Browse the repository at this point in the history
  32. Resolved all conflicts

    sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    e130a6a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    f23dac9 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    de31403 View commit details
    Browse the repository at this point in the history
  35. Remove onClick from linkProps, Remove linkProps req from card, Fix to…

    … have externallinkbadge hotfix changes
    sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    4b59fd6 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8321a12 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    c502224 View commit details
    Browse the repository at this point in the history
  38. fix lint error..

    sandrahoang686 committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    0ec5744 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    bee9d96 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. [RELEASE] v5.10.0 (#1250)

    ## 🎉 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
    AliceR authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    6e929e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ab1a3f View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    23abc94 View commit details
    Browse the repository at this point in the history
  2. 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
    sandrahoang686 authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    387401f View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. [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
    sandrahoang686 authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    a8311c2 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Configuration menu
    Copy the full SHA
    35d405c View commit details
    Browse the repository at this point in the history
  2. Fix naming

    dzole0311 committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    ba98c4a View commit details
    Browse the repository at this point in the history
  3. Update naming

    dzole0311 committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    0b13f55 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. [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
    dzole0311 authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    ad47c20 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. Remove prop

    dzole0311 committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    97f4ad9 View commit details
    Browse the repository at this point in the history
  2. Update styles and mocks

    dzole0311 committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    4f9c679 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5c2b3c View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Remove minHeight prop (#1265)

    **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
    dzole0311 authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    14fc8ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    41a3a48 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3543334 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32bbf8c View commit details
    Browse the repository at this point in the history
  5. Format changed files

    vgeorge committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    903807f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    34d878f View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. 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.
    vgeorge authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    edc5d9e View commit details
    Browse the repository at this point in the history
  2. Bump minor to 5.11.0

    dzole0311 committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    b4556ef View commit details
    Browse the repository at this point in the history
  3. [#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
    dzole0311 authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    f31f4be View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. [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
    dzole0311 authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    9132e6d View commit details
    Browse the repository at this point in the history