-
Notifications
You must be signed in to change notification settings - Fork 2
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
Calendar functionality #18
Conversation
placeholder="Enter substitute teacher ID" | ||
value={substituteTeacherId} | ||
onChange={(e) => setSubstituteTeacherId(e.target.value)} | ||
color="black" |
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.
nit: this might not matter because this ticket is more about frontend than styling, but on these number inputs if you scroll on your trackpad the number changes which is annoying
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.
doesn't seem to happen when I try to fill out the input form, do you mean it just starts changing as soon as you scroll?
src/pages/calendar.tsx
Outdated
FetchEvents(); | ||
}, []); | ||
|
||
const FetchEvents = async () => { |
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 think this should fetch from the db based on if its in day, week, or month mode. I feel like this would be better than grabbing all absences in the db, especially if there are be lot of absences. The useEffect can run this function every time the view is changed.
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.
but we anyways have to fetch them initially for month view in the beginning so won't it be unnecessary to fetch multiple times for different views
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 think a lot of unnecessary files where changed during your rebasing / merging with main. I would take another look to make sure only the changes you intend to make are being made.
047477d
to
2777cc3
Compare
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.
Add steps for seeding to Steps to test
…com/uwblueprint/sistema into vihaan-anant/calendar-functionality
@@ -17,8 +17,7 @@ RUN npm install | |||
EXPOSE 3000 | |||
|
|||
# Run the application | |||
CMD echo "Waiting for database to be ready..." && \ | |||
echo "Running Prisma commands..." && \ | |||
CMD echo "Running Prisma commands..." && \ |
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.
Revert changes here.
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.
Revert changes here
@@ -44,7 +44,7 @@ | |||
"@types/react-dom": "^18.0.0", | |||
"@typescript-eslint/eslint-plugin": "^8.8.0", | |||
"@typescript-eslint/parser": "^8.8.0", | |||
"eslint": "^8.57.1", | |||
"eslint": "^8.57.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.
Revert
"prisma": "^5.16.0", | ||
"postgres": "^3.4.4", |
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.
Revert
"@mui/material": "^5.15.20", | ||
"@mui/system": "^5.15.20", | ||
"@faker-js/faker": "^8.4.1", |
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.
Revert
@@ -2,7 +2,7 @@ | |||
"private": true, | |||
"scripts": { | |||
"dev": "next dev", | |||
"build": "next build", | |||
"build": "prisma generate && prisma migrate && next build", |
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.
Revert
Notion ticket link
Calendar Absence Creation and Deletion
Implementation description
Steps to test
run this in light mode as it's not styled yet completely for dark mode
npm run dev
and go tolocalhost:3000/calendar
What should reviewers focus on?
Checklist