-
Notifications
You must be signed in to change notification settings - Fork 628
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
Graph widget to show historical data #4601
Graph widget to show historical data #4601
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
…/issue-1529 # Conflicts: # app/src/main/java/io/homeassistant/companion/android/settings/widgets/ManageWidgetsViewModel.kt
Hi Ivor, can you add a small video demo the functionality? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any tests we could add for it?
common/src/main/java/io/homeassistant/companion/android/database/sensor/SensorDao.kt
Show resolved
Hide resolved
Yes we could but I didn't see that as an requirement for the 4 hours test. I want to optimise this piece of code before it gets merged. |
This is the video example of an MVP for the GraphWidget graphwidget_mvp_example.mp4 |
app/src/main/java/io/homeassistant/companion/android/settings/widgets/ManageWidgetsViewModel.kt
Outdated
Show resolved
Hide resolved
...src/main/java/io/homeassistant/companion/android/settings/widgets/views/ManageWidgetsView.kt
Outdated
Show resolved
Hide resolved
@ivorsmorenburg can you please add some screenshots of the configuration page so we can see what options the user needs to use? For example I can see the code contains stuff related to entity attributes but I am not sure if those are even used in the graph? |
Yes you are correct, right now is just an MVP, the UI Config Screen is the Entity UI Screen. I'll work on it no worries : ) I have big plans for the UI |
ok thanks for confirming :) sometimes when a PR is in draft its tough to tell how much to look and comment 🙈 I will go ahead and look at the generated APK for now until you feel the code is ready to look at :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.../src/main/java/io/homeassistant/companion/android/database/widget/graph/GraphWidgetEntity.kt
Outdated
Show resolved
Hide resolved
.../src/main/java/io/homeassistant/companion/android/database/widget/graph/GraphWidgetEntity.kt
Outdated
Show resolved
Hide resolved
04c9aa2
to
02c57d5
Compare
@ivorsmorenburg this PR has a lot going on with just the logic for Graph Widget alone and I dont think a lot of that we can escape. There are other things done in this PR that are touching other widgets thats making this a bit difficult to not only review but also test and make sure the other widgets are still fine. Can you please split up the refactoring of the other widgets so we can review it separately and make the review of this PR easier? That should help cut down on the amount of files touched and make this PR easier to review. We can review that PR before this one as I think you may have some dependencies on it. |
Summary
Adds Graph Widget to make possible see historical data
Screenshots
#1529 (comment)
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes
#1529