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

[Bug] Date selector fails when clicked, succeeds when manually typed #22042

Open
4 tasks done
atom-box opened this issue Mar 22, 2024 · 4 comments
Open
4 tasks done

[Bug] Date selector fails when clicked, succeeds when manually typed #22042

atom-box opened this issue Mar 22, 2024 · 4 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@atom-box
Copy link

atom-box commented Mar 22, 2024

What happened?

In the screenshot,

  1. fails
  2. succeeds

image

What should happen?

Date should be clickable.

How can this be reproduced?

  1. Go to a report such as Visitors >> Devices, (Or try Acquisitions >> Campaigns)
  2. In Date Selector choose Day + click a day
  3. (so far so good)
  4. In Date Selector, choose "Compare To"
  5. Click a date, with mouse FAIL
  6. Type a date, with keyboard SUCCESS

Fail looks like this:
image

Success looks like this:
image

Matomo version

5.0.3

PHP version

8.2

Server operating system

ubuntu

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

Computer operating system

No response

Relevant log output

No response

Validations

@atom-box atom-box added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Mar 22, 2024
@atom-box
Copy link
Author

The only thing that fails is
Day + Custom + Clicked date(not typed date)
image

@atom-box
Copy link
Author

(Feels related to this Feels related to this
#21945)

@michalkleiner
Copy link
Contributor

Hi @atom-box. This is not related to 21945, and it's also not a bug.
Even though it may not be the desired behaviour (can't select the date for the comparison), the calendar is only used to select the first of the dates or ranges. The second one for the comparison always needs to be manually entered in, it doesn't provide a calendar selector. You would need two sets of calendars, otherwise you are currently changing the first date, not the comparison date.

@michalkleiner
Copy link
Contributor

The issue I can see here (different to the one reported) is that when you enable the comparison feature and then click a date in the calendar, it confirms the date selection and shows an error because there were no dates selected for the comparison (regardless if typed in or selected in some other way). The modal/date selection should not close when the comparison is enabled and a date in the calendar is clicked, it should only apply and close using the Apply button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

2 participants