-
Notifications
You must be signed in to change notification settings - Fork 5
Make the calendar view include grants, proposals, milestones #1552
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
base: staging
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…age-for-all # Conflicts: # wondrous-app/components/organization/wrapper/BoardPageHeader.tsx # wondrous-app/graphql/fragments/task.ts
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.
Great stuff! Just a couple of questions
date: null, | ||
fromDate: startOfMonth(new Date()), | ||
labelId: null, | ||
limit: 1000, |
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 there a reason we're not paginating 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.
makes sense to paginate data
- for day view - load more when you scroll down
- for week view - load more when the user clicks "Show more" button and scrolls down
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.
Yes exactly!
], | ||
}, | ||
// { | ||
// name: 'labelId', |
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.
Do we need this commented code?
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.
no, we don't. I'll remove it
f6ae3ee
to
e972280
Compare
@andywong418 @terryli0095 Additionally, when a user opens the modal to view more tasks, I need to load more tasks/bounties, proposals, milestones, and grants. This means I need to keep track of the count and current index for every entity. I have tried multiple solutions for this, but I have not found a perfect one yet. So, the solution I have implemented is to leave the limit to 1000 and load all tasks/bounties, proposals, milestones, and grants for the month/week view. However, I only display a limited count to not render all and load more when the user scrolls down. For the week view, I display only 10 records for a day and added a "view more" button (similar to what we have for the month view). I understand that this may not be the ideal solution, but I believe it's the best option given the requirements and challenges I've encountered. |
📌 References
📘 Description
🎥 Screenshot or Video
https://www.loom.com/share/714b30cdc94e48de84bf953bfe0a6329
🍰 Checklist: