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

feat: past and overlapping ooo #17373

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Amit91848
Copy link
Contributor

@Amit91848 Amit91848 commented Oct 28, 2024

What does this PR do?

Screencast.from.2024-10-28.21-26-38.webm

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Copy link

vercel bot commented Oct 28, 2024

@Amit91848 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added 💎 Bounty A bounty on Algora.io 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Oct 28, 2024
@dosubot dosubot bot added the ✨ feature New feature or request label Oct 28, 2024
@dosubot dosubot bot added this to the Community Only milestone Oct 28, 2024
@graphite-app graphite-app bot requested a review from a team October 28, 2024 16:01
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Oct 28, 2024
Copy link

graphite-app bot commented Oct 28, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (10/28/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (10/28/24)

1 label was added to this PR based on Keith Williams's automation.

@Praashh Praashh self-assigned this Oct 28, 2024

function Calendar({
className,
classNames,
fromDate,
toDate,
showOutsideDays = true,
disablePastDates = true,
Copy link
Contributor

@emrysal emrysal Oct 30, 2024

Choose a reason for hiding this comment

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

would prefer this to be a minDate option (set by default to new Date()) - and nullable to allow all dates enabled.

Edit: This can be implemented to a minor tweak to the fromDate instead of introducing a new param.

Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

@@ -21,7 +21,7 @@ function Calendar({
}: CalendarProps) {
return (
<DayPicker
fromDate={fromDate || new Date()}
fromDate={fromDate}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Handled in parent component

@@ -63,7 +64,8 @@ export function DatePickerWithRange({
sideOffset={4}>
<Calendar
initialFocus
fromDate={minDate}
//When explicitly null, we want past dates to be shown as well, otherwise show only dates passed or from current date
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comment because this is confusing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💎 Bounty A bounty on Algora.io community Created by Linear-GitHub Sync ✨ feature New feature or request 🧹 Improvements Improvements to existing features. Mostly UX/UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-4631] allow OOO of the past and overlapping
3 participants