matomo icon indicating copy to clipboard operation
matomo copied to clipboard

Enable Annotation Creation for Dates Without Data (Past & Future)

Open Chardonneaur opened this issue 2 years ago • 4 comments

The feature affected is this one (all the grey dates) Screenshot from 2023-12-13 17-04-20

Summary: Users are currently unable to easily create annotations for dates where no data has been recorded using the annotation calendar (past data prior to data collection and data in the future).

Detail:

Functionality Affected: Annotation Calendar
Current Behavior: If a user attempts to send an annotation for a date that has not recorded any data, the calendar interface does not facilitate this action. Currently, users have to resort to inspecting the page source code via a browser toolbar and manually changing the date, which is cumbersome and not user-friendly.
User Impact: This limitation hinders the flexibility and usability of the annotation feature, especially for historical data analysis or future event planning. For example: we know already the Christmas dates, holidays etc, so we should be able to insert those events already.

Suggested Solution

Proposal: Implement functionality to allow users to easily create annotations for any selected date, regardless of whether data was recorded on that date.

Implementation Suggestions:

Calendar Interface Enhancement: Modify the annotation calendar UI to enable selection of any date, including those without data.
Input Validation: Ensure that users can select only valid dates and are provided with appropriate feedback if an invalid date is chosen.
User Experience: The process should be intuitive and align with the existing UI/UX design principles of Matomo.

Chardonneaur avatar Dec 13 '23 16:12 Chardonneaur

Thanks for making this ticket. Just so I understand your suggestion better, if you can select dates with no data, what dates would be considered "invalid"? For example: I don't think there is a way to select the 32nd of February, but I'm not sure if that's what you mean.

Stan-vw avatar Dec 15 '23 03:12 Stan-vw

Well, i guess this scenario will not be supported by Matomo anyway.

Chardonneaur avatar Dec 15 '23 10:12 Chardonneaur

@Stan-vw I received a feedback today asking for this feature. So to say, how to add an annotation for Christmas 25th 2024?

Chardonneaur avatar Apr 15 '24 13:04 Chardonneaur

By using the API we can send an annotation in the future.

Chardonneaur avatar Apr 15 '24 15:04 Chardonneaur