Skip to content
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

Include last 30 min and 2 hours into history page #23848

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

tasomaniac
Copy link

@tasomaniac tasomaniac commented Jan 22, 2025

Breaking change

No

Proposed change

The change adds last 30 min and 2 hours options. Based on the feedback on this PR, I can amend to include other options.

Screenshots

The time of the computer was 9:11 PM when this was taken.

image image image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests
  • Improvement of existing feature

Example configuration

N/A

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works (couldn't find existing tests, let me know if they exist and I will add more to cover the new options)

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tasomaniac

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!

@home-assistant home-assistant bot added cla-needed WTH Issues & PRs generated from the "Month of What the Heck?" cla-recheck cla-signed and removed cla-recheck cla-needed labels Jan 22, 2025
@tasomaniac tasomaniac marked this pull request as ready for review January 22, 2025 20:13
@tasomaniac

This comment has been minimized.

@silamon
Copy link
Contributor

silamon commented Jan 25, 2025

There's a related PR in the queue: #23362. I'll link it up here for visibility.
What's the reasoning to add 30 minutes and 2 hours specific?

@tasomaniac
Copy link
Author

Those are what I thought would be useful. But as I said in the description, I'm open to opinions. Please share yours.

  • 30 minutes to quickly check the latest
  • 2 hours to check more

I didn't want to put more to not clutter the UI. Plus, it can be easily adjusted below in the time picker.

@marcinbauer85
Copy link
Contributor

marcinbauer85 commented Jan 27, 2025

Thanks @tasomaniac for this addition, but I'm afraid there will be more requests to add: 1hour, 4hours etc. which will blow up this selector. The date/time picker needs a bigger UX revamp especially for mobile, that's why I would hold off for now with adding more presets.

@tasomaniac
Copy link
Author

tasomaniac commented Jan 27, 2025

Checking something recent takes a lot of time and clicks. By default it starts from yesterday, so you first select today and then select pm, then select the hour closer. It's a real pain for me as a user right now.

I would recommend at least adding one of these so that adjusting to whatever recent hour gets easier.

I understand the idea of redesigning the whole thing but that will just take much more time.

@silamon
Copy link
Contributor

silamon commented Jan 27, 2025

That's amazon way of dealing with the same (two tabs with 2 buttons visible on each tab):

image
image

Edit: On mobile the buttons are replaced with a dropdown.

@marcinbauer85
Copy link
Contributor

@silamon that's nice, but we also use those presets in other areas, which don't have UI space for a button group. Like in the Statistics card 23794

@tasomaniac
Copy link
Author

I'm not sure if this is the right place to discuss what could be the next redesign of this page. But the fact that it is already controversial just proves my point that the users like me will have to wait for very long for this redesign and will continue to suffer from inaccessibility to look for recent data.

@boern99
Copy link
Contributor

boern99 commented Jan 27, 2025

Tried to improve the situation by using plus and minus zoom buttons #23358 in combination with additional ranges #23362. Think that the two commits together build a compromise between easy implementation, maximum flexibility, clarity and good usability. The maximum zoom range for the buttons is 2 hours: never thought to need a lower range as history only uses 5Minute-intervals and charts itself can now be zoomed to see more details …

@marcinbauer85
Copy link
Contributor

I will be doing a user test to define the most commonly voted ranges that we can agree upon for this picker. Please hold on till we get the results.

@bramkragten bramkragten added the Needs UX Pull requests requiring a review from the Home Assistant design team label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed Needs UX Pull requests requiring a review from the Home Assistant design team WTH Issues & PRs generated from the "Month of What the Heck?"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants