iOS application that serve exchange electric price in Finland
0
stars
0
forks
source link
Feature: improve electric page where user can view electric price in different views by using POST request to this endpoint `/v1/market-price` from Stormbreaker service #13
Feature Story: Enhanced Electricity Price View with Flexible TimeframesBackground:
The current electricity page displays the price using a GET request to the /v1/market-price/today-tomorrow endpoint of the Stormbreaker service. This approach limits scalability as we plan to support additional timeframes in the future, including:
Weekly price views
Monthly price views
Daily historical views (yesterday, two days ago, etc.)
Custom date range views
Benefits:
Improved Scalability: This feature enables the electricity page to accommodate various timeframe requests seamlessly. By utilizing a single endpoint (/v1/market-price) with flexible parameters, we can retrieve data for different periods without modifying the core functionality.
Enhanced User Experience: Users gain the ability to view electricity prices in their preferred timeframe. This empowers them to make informed decisions about their energy consumption based on historical trends or future projections.
Streamlined Development: Implementing a single, flexible endpoint simplifies future development efforts when adding new timeframe options.
Acceptance Criteria:
Error Handling: Implement proper error handling mechanisms to gracefully address potential issues with the API request or data retrieval. Provide informative messages to users in case of errors, suggesting retries or alternative actions.
I did implement a daily view to view today price. However, my approach is not so scalable which could be a bit headache to extend to weekly, monthly and custom view.. Let's improve it in this ticket
Feature Story: Enhanced Electricity Price View with Flexible Timeframes Background:
The current electricity page displays the price using a GET request to the
/v1/market-price/today-tomorrow
endpoint of the Stormbreaker service. This approach limits scalability as we plan to support additional timeframes in the future, including:Benefits:
Acceptance Criteria: