Skip to content

Fix/ohsome user stats#130

Merged
prabinoid merged 13 commits intodeployment/naxafrom
fix/ohsome-user-stats
Jul 18, 2025
Merged

Fix/ohsome user stats#130
prabinoid merged 13 commits intodeployment/naxafrom
fix/ohsome-user-stats

Conversation

@prabinoid
Copy link
Copy Markdown

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

Example: Fixes #123

Describe this PR

A brief description of how this solves the issue.

Screenshots

Please provide screenshots of the change.

Alternative Approaches Considered

Did you attempt any other approaches that are not documented in code?

Review Guide

Notes for the reviewer. How to test this change?

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

prabinoid and others added 13 commits July 9, 2025 10:02
…em into query string

This change allows passing an array of topics, which gets serialized into
multiple `&topics=` query parameters for the ohsome stats API request
…ters and include them as query params in the request and update function call accordingly
remove url key and value
- Values < 1 are displayed with 3 decimal places
- Values >= 1 are truncated (no rounding)
- Handled edge case where value is exactly 0
- Removed local state and useEffect-based axios request for stats
- Replaced with useOsmStatsQuery hook to fetch Ohsome statistics
- Adapted to new API response structure with 'topics' field
- Simplifies data fetching and aligns with query-driven architecture
- To implemnt on test case and ensure correct label and value is rendered
- Removed axios mock as stats fetching is now handled via useOsmStatsQuery
- Organized tests under a 'Feature Stats Section' describe block for clarity and maintainability
- Ensures correct values and labels are rendered using mocked hook data
@prabinoid prabinoid merged commit b9076b9 into deployment/naxa Jul 18, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants