Skip to content

Feat/calendar time filter - #1698

Open
NaderArea52 wants to merge 2 commits into
nextcloud:masterfrom
NaderArea52:feat/calendar-time-filter
Open

NaderArea52 wants to merge 2 commits into
nextcloud:masterfrom
NaderArea52:feat/calendar-time-filter

Conversation

@NaderArea52

@NaderArea52 NaderArea52 commented Oct 14, 2026 •

Copy link
Copy Markdown

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Implements #1222 (calendar date selection for the history/time filter).

Changes

  • Settings: under "Display time filter slider", a Time filter choice between Slider and Calendar (timeFilterMode option). The slider is unchanged.
  • New DateRangeFilter.vue: separate From and To pickers (NcDateTimePicker). Days outside the available data are greyed out, and From can't be after To. Whole days in local time.
  • Reset selects everything from the first to the last data point.
  • In calendar mode the selection is saved in dateFilterStart/dateFilterEnd and restored on reload. A bound at the edge of the data is saved as open, so new device points stay visible.
  • maxDataTimestamp no longer uses "now" for data types without entries, and it includes the newest device point.

Notes

@NaderArea52
NaderArea52 force-pushed the feat/calendar-time-filter branch from 50074d2 to 5abfeee Compare October 14, 2026 18:02
- New DateRangeFilter component with separate From and To date pickers
  (NcDateTimePicker). Days outside the available data are grayed out,
  From can not be after To. Reset selects the full data range.
- Settings: choose between Slider and Calendar (timeFilterMode option)
- The calendar remembers its selection after a page reload
  (dateFilterStart/dateFilterEnd options). A bound at the edge of the
  data is saved as open so new data stays visible.
- maxDataTimestamp now ignores data types without dates (they defaulted
  to now) and includes the newest device point.

Implements nextcloud#1222

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Area52_Nader <86432017+NaderArea52@users.noreply.github.com>
@NaderArea52
NaderArea52 force-pushed the feat/calendar-time-filter branch from 5abfeee to acceff7 Compare October 16, 2026 15:32

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant