Background
Currently, the app fetches the Bitcoin price from a single provider (Yadio) using the YADIO_API_URL environment variable. The goal is to allow users to select their preferred Bitcoin price provider from a list in the app's settings. This will make it easier to add new providers in the future and improve flexibility.
Objectives
- Add a new menu item in the Bitcoin settings: Bitcoin Price Settings.
- Display a list of available Bitcoin price providers (for now, only Yadio).
- Allow the user to select their preferred provider (single selection).
- Refactor the client code to hardcode the provider URL(s) instead of using the environment variable.
- The selected provider should be used to fetch the Bitcoin price.
- Prepare the codebase for easy addition of new providers and adapters in the future.
Acceptance Criteria
Notes
- For this ticket, only Yadio is available as a provider. Future tickets will add more providers and adapters.
- UI/UX should be consistent with existing settings screens.
- Ensure type safety and maintainability.
Out of Scope
- Adding new providers or adapters (future work).
- Changing the UI/UX of other settings screens.
References:
Background
Currently, the app fetches the Bitcoin price from a single provider (Yadio) using the
YADIO_API_URLenvironment variable. The goal is to allow users to select their preferred Bitcoin price provider from a list in the app's settings. This will make it easier to add new providers in the future and improve flexibility.Objectives
Acceptance Criteria
Notes
Out of Scope
References: