Skip to content

Conversation

@eudoroolivares2016
Copy link
Contributor

@eudoroolivares2016 eudoroolivares2016 commented Jan 26, 2026

Overview

What is the feature?

Added degree formatting functionality to display numeric values with the degree symbol (°) and resolved Snyk security vulnerabilities in project dependencies.

What is the Solution?

  • Implemented the getDegrees utility function that formats numeric values as degree strings with proper decimal handling:
  • Non-integer values display as-is (e.g., 45.5°)
  • Integer values display with one decimal place (e.g., 45.0°)
  • Added JSDoc documentation for the new utility function
  • Updated vulnerable dependencies identified by Snyk to their latest secure versions
  • Regenerated lock files to ensure dependency resolution reflects the security patches

What areas of the application does this impact?

Display/Formatting: New utility for formatting degree values throughout the application
Documentation: Added code documentation for the getDegrees utility function
Security: Reduced security risk across the entire application by addressing dependency vulnerabilities
Dependencies: Updated packages may affect any code relying on the patched libraries

Testing

Reproduction steps

  • **Environment for testing:local pointed to prod data
  • **Collection to test with:any
  1. Start the interface with npm run start
  2. Navigate to collections that display degree values
  3. Verify degree formatting displays correctly with the ° symbol
  4. Ensure that the displayed values match the collection details on Earthdata Search

Attachments

image

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Also fixes the snyk vulnerabilities on this project
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.43%. Comparing base (c5b6749) to head (0eea9bc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   99.42%   99.43%           
=======================================
  Files          26       27    +1     
  Lines         526      530    +4     
  Branches      163      166    +3     
=======================================
+ Hits          523      527    +4     
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants