Commit Graph

13 Commits

Author SHA1 Message Date
Cutiful
4dab797cb9 feat: add some document 2025-07-30 13:57:19 +07:00
Cutiful
faa8f2ea76 refactor: fix some feature 2025-07-30 13:56:29 +07:00
Cutiful
a822c1782e feat: implement commodity price prediction feature
This commit introduces the commodity price prediction feature, including:

- **Data Layer:**
    - Models for commodity prediction and price responses.
    - `CommodityApiService` for fetching data from the backend.
    - `CommodityRepository` to abstract data fetching logic.
- **DI Modules:**
    - `appModule` for providing `CommodityRepository`.
    - `networkModule` for setting up Retrofit and OkHttp.
    - `viewModelModule` for providing `PredictionViewModel` and `CommodityViewModel`.
- **Presentation Layer:**
    - `PredictionViewModel` and `CommodityViewModel` to handle business logic and expose data to UI.
    - `PredictionScreen` to display commodity price predictions with a dropdown to select commodities and detailed breakdown of future prices (tomorrow, next week, next month, next 3 months).
    - `CommodityPriceScreen` (initial setup, details to be implemented) to display current commodity prices.
    - `CommodityListItem` composable for displaying individual commodity price information.
    - `FeatureBanner` composable for both commodity price prediction and control features.
- **Navigation:**
    - `SetupNavigation` to define navigation routes for `CommodityPriceScreen` and `PredictionScreen`.
- **Core Utilities:**
    - `toRupiahFormat()` extension function to format numbers as Indonesian Rupiah.
    - `percentageChange()` function to calculate percentage difference.
2025-07-30 13:55:25 +07:00
Cutiful
1b8efcbfe6 feat: add some library 2025-06-29 07:54:37 +07:00
Cutiful
c2aa13e4ce feat: implement detail screen for NPK and DHT sensors 2025-06-29 07:53:51 +07:00
Cutiful
5151379922 add draft report 2025-06-20 22:35:00 +07:00
Cutiful
b0a3130cb9 feat: refactor package 2025-06-13 13:47:25 +07:00
Cutiful
17e2762f3b feat: implement commodity price prediction and growth recipe features 2025-06-12 11:43:17 +07:00
Cutiful
6c52d6c008 feat: add network security config and update themes 2025-06-12 11:42:24 +07:00
Cutiful
a3d819417e feat: implement commodity price prediction and plant disease detection features 2025-06-12 11:36:41 +07:00
Cutiful
6d9aa910b6 feat: update build.gradle.kts 2025-06-12 08:45:59 +07:00
Cutiful
cc3326fe8d feat: add gitignore for dynamic feature modules 2025-06-05 13:14:21 +07:00
Cutiful
a00762e139 feat: add gitignore for dynamic feature modules 2025-06-05 13:14:12 +07:00