Skip to content

Conversation

jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Oct 7, 2025

Description

This PR implements the date range selector sheet in the Activities screen

Linked Issues/Tasks

FIGMA

Roadmap item

Screenshot / Video

Tried to keep as close as possible from Figma

Simulator.Screen.Recording.-.iPhone.16.-.2025-10-10.at.10.20.45.mp4

@jvsena42 jvsena42 self-assigned this Oct 7, 2025
@jvsena42 jvsena42 requested a review from Copilot October 9, 2025 14:50
@jvsena42 jvsena42 marked this pull request as ready for review October 9, 2025 14:56
@jvsena42 jvsena42 requested a review from pwltr October 9, 2025 14:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the existing date range selector with a new sheet-based implementation featuring an improved calendar interface. The update changes from a basic form-based date picker to a more interactive graphical calendar that allows users to select date ranges by tapping dates directly.

  • Replaces the old DateRangeSelector component with a new DateRangeSelectorSheet
  • Implements interactive calendar-based date range selection with visual feedback
  • Updates the filter integration to use the new sheet component

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
DateRangeSelectorSheet.swift New implementation with graphical calendar picker and range selection logic
DateRangeSelector.swift Complete removal of the old form-based date selector
ActivityListFilter.swift Updates sheet presentation to use the new DateRangeSelectorSheet component

Copy link
Contributor

@pwltr pwltr left a comment

Choose a reason for hiding this comment

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

Looks pretty good, just some minor issues, especially the first will be needed to make tests pass here

  • should be able to filter by a single day (and clear it)
  • when selecting a filter from a past month and reopening the sheet, it should show the month with the selected range
  • there is a layout jump when making a selection
  • use SheetHeader, remove button bottom padding (already in Sheet)

@jvsena42 jvsena42 requested a review from pwltr October 10, 2025 13:26
@pwltr
Copy link
Contributor

pwltr commented Oct 10, 2025

I pushed a couple of fixes, including:

  • fix weekday headers not correct. Can you check if this fix works for you too? For me it showed "THU" above the current date, when it is Friday. Maybe a localization issue?
  • don't close sheet on clear
  • proper sheet size
  • polish selected range UI

pwltr
pwltr previously approved these changes Oct 10, 2025
@jvsena42 jvsena42 enabled auto-merge October 10, 2025 14:44
@jvsena42 jvsena42 disabled auto-merge October 10, 2025 14:44
} else if isStartDate {
Circle()
.fill(Color.brand16)
UnevenRoundedRectangle(
Copy link
Member Author

Choose a reason for hiding this comment

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

nice! couldn't find this even with Claude help

Copy link
Member Author

Choose a reason for hiding this comment

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

It is not perfectly aligned, but it is ok for now

@jvsena42
Copy link
Member Author

I pushed a couple of fixes, including:

  • fix weekday headers not correct. Can you check if this fix works for you too? For me it showed "THU" above the current date, when it is Friday. Maybe a localization issue?
  • don't close sheet on clear
  • proper sheet size
  • polish selected range UI

Thanks! worked for me too

Simulator.Screen.Recording.-.iPhone.16.-.2025-10-10.at.11.50.01.mp4

@jvsena42 jvsena42 enabled auto-merge October 10, 2025 14:53
@jvsena42
Copy link
Member Author

had to do one more push so I could be the last pusher again

@jvsena42 jvsena42 merged commit 3f86328 into master Oct 10, 2025
2 checks passed
@pwltr pwltr deleted the feat/date-picker-activity branch October 10, 2025 16:25
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.

2 participants