Skip to content

Add new preset date options to our calendar#24098

Closed
chippison wants to merge 30 commits into5.x-devfrom
dev-19876
Closed

Add new preset date options to our calendar#24098
chippison wants to merge 30 commits into5.x-devfrom
dev-19876

Conversation

@chippison
Copy link
Copy Markdown
Contributor

@chippison chippison commented Feb 18, 2026

Description

DEV-19876

This will add some preset date options to our current calendar.
The new presets are as follows:

- Today - Last year
- Yesterday - This week (Mon - Today)
- Last 7 days - This month
- Last 30 days - This quarter
- Last 90 days - This year
- Last week (Mon - Sun) - Last month
- Last quarter

Note: Week starts on Monday at Matomo. More details about the presets in DEV-19876

Acceptance Criteria:

  • A preset list of dates is added to the Calendar

  • Each date selected highlights the calendar (same behaviour as current period selectors)

    • Example: Selecting “Last 30 days” highlights that range on the calendar
  • User does not need to click in the date picker/calendar, just click “Apply” to apply selected option

  • “Last week (Mon - Sun)” and “This week (Mon - Today)” have mention to the days included to make it clear which range will be selected

  • Each preset is implemented according to the table in DEV-19876

  • Comparison mode works with these new presets

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

Review

@chippison chippison added this to the 5.8.0 milestone Feb 18, 2026
@chippison chippison force-pushed the dev-19876 branch 2 times, most recently from dfbe103 to f3695f4 Compare February 23, 2026 21:01
fixing some bugs found and adding new tests
…panel before 'Apply' has been clicked when a preset is being clicked.
…ange picker if its coming from Preset date options.
…e parts of the UI when 'Apply' has not been clicked
…ntext has changed.

also adding tests so that its clear that preset options block calendar interactions and period options allow them
@sgiehl sgiehl modified the milestones: 5.8.0, 5.9.0 Feb 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Mar 13, 2026
@sgiehl
Copy link
Copy Markdown
Member

sgiehl commented Mar 13, 2026

closing, as this was implemented with #24139

@sgiehl sgiehl closed this Mar 13, 2026
@sgiehl sgiehl removed this from the 5.9.0 milestone Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale The label used by the Close Stale Issues action

Development

Successfully merging this pull request may close these issues.

2 participants