Commit Graph

18 Commits

Author SHA1 Message Date
Cutiful
ac5f7c1619 refactor: remove dummy images from control feature
This commit removes several placeholder image files (`img_dummy.jpg`, `img_dummy2.jpg`, `img_dummy3.jpg`, `img_dummy4.jpg`) from the `control_feature` module.
2025-07-30 13:55:43 +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
fc9c9614ba feat: implement register feature 2025-07-05 11:26:07 +07:00
Cutiful
1ef33bcfda feat: add custom snackbar and UI events for control feature 2025-07-05 11:24:41 +07:00
Cutiful
0f65748195 fix: rename Log to ActuatorLog in ControlLogResponse 2025-07-05 11:24:07 +07:00
Cutiful
5899b77556 feat: implement snackbar for control actuator 2025-07-05 11:23:49 +07:00
Cutiful
eed504f04e feat: add actuator history functionality and refactor API calls 2025-07-05 11:22:32 +07:00
Cutiful
66b7159bf6 feat: implement actuator control history feature 2025-07-05 11:21:56 +07:00
Cutiful
1b8efcbfe6 feat: add some library 2025-06-29 07:54:37 +07:00
Cutiful
f48a96c96c feat: implement actuator control with Koin DI and API integration 2025-06-29 07:53:10 +07:00
Cutiful
6c52d6c008 feat: add network security config and update themes 2025-06-12 11:42:24 +07:00
Cutiful
c6108fc807 fix: adjust control grid height and card padding 2025-06-12 11:39:51 +07:00
Cutiful
6d9aa910b6 feat: update build.gradle.kts 2025-06-12 08:45:59 +07:00
Cutiful
ce5ddf39e0 feat: tidy up code 2025-05-20 18:02:05 +07:00
Cutiful
05b707fbdd feat: implement dynamic feature module for control actuator 2025-05-16 11:14:03 +07:00
Cutiful
1153396638 feat: implement control feature 2025-05-09 10:22:43 +07:00
Cutiful
6cd748e448 feat: implement control feature 2025-05-04 18:35:15 +07:00
Cutiful
db5a346f76 feat: add dynamic feature control 2025-05-04 16:28:33 +07:00