-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/calendar #86
Feature/calendar #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good being the same calendar. Just a little confused on the downgrading library version part...
@@ -28,7 +29,7 @@ | |||
"pinia-plugin-persistedstate": "^3.2.1", | |||
"sass": "^1.75.0", | |||
"sass-loader": "^14.2.1", | |||
"v-calendar": "^3.1.2", | |||
"v-calendar": "^3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did they remove the date range functionality in newer versions or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah there's a bug in 3.1.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking through my history to try to find the github issue but basically the bug didn't take max-date
into consideration
@@ -196,15 +199,6 @@ async function getAvailableTimes () { | |||
}) | |||
} | |||
|
|||
// Used to block out dates that are not in the availableTimes object from the date picker | |||
const isDateAllowed = (date) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this logic of blocking out dates reimplemented somewhere else now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I figured out that the availableTimes were today --> one week from now and that's in the min-date and max-date props. But maybe it's safer to keep this logic
FEATURE/FIX: Using same calendar when booking RTI and requesting observations
Background:
More than one style of calendar was being used and that was because I couldn't find a date picker and a date range picker but now I've found an older version of a package and it works well.
Implementation:
main.js
TimePicker
(that one was pretty simple, not much changed)BeginnerScheduling
andAdvancedScheduling
because the componentVDatePicker
contains the object keys ofstart
andend
from the package.calendarUtils
but have to discuss with Edward how these should be used. Basically, this gets the start and end dates of the current semester and its purpose is meant to set limitsVISUALS
Calendar when booking for RTI
Calendar when requesting a scheduled observation (end of current semester is Jan 31)
Screen.Recording.2024-11-12.at.1.41.08.PM.mov