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

Restructured API endpoints for ohsomeNow stats #6021

Merged
merged 12 commits into from
Oct 10, 2023

Commits on Oct 3, 2023

  1. Restructured API Endpoints for ohsomeNow stats

    Involves the migration of all MissingMaps API endpoints to utilize the endpoints provided by ohsomeNow stats. The changes encompass four distinct sections, namely homepage stats, project-level stats, user-level stats, and TM level stats.
    
    Removed the definitions of specific API endpoints, such as `TM_HOMEPAGE_STATS_API_URL` and `TM_USER_STATS_API_URL`, from the environment configuration. A new approach was implemented by introducing a new base URL for ohsomeNow (`OHSOME_STATS_BASE_URL`). This new structure enables the specification of endpoints at a component level, as opposed to being bound to the environment configuration.
    HelNershingThapa committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    0131aa8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dea1dd4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de4bf0a View commit details
    Browse the repository at this point in the history
  4. Add StatsTimestamp component

    - Introduce a new component, `StatsTimestamp`, responsible for displaying timestamps with tooltips. This component accepts a `messageType` prop to determine whether to show a generic or project-specific message. The inconsistent icon usage has been resolved, now consistently using an info icon.
    - Reorganized the codebase by removing timestamp implementations from the User Contributions and Project Stats components. Instead, these components now utilize the newly introduced `StatsTimestamp` component for timestamp display.
    - Integrated the `StatsTimestamp` component into the Total Features section of the overall statistics page.
    HelNershingThapa committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    a5fa2cb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1c089bb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fd198ea View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

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

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    70b8674 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad12b69 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    99ec96b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e84aec0 View commit details
    Browse the repository at this point in the history
  3. fix stats tooltip typo

    royallsilwallz committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    5c7f928 View commit details
    Browse the repository at this point in the history