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

Load availability dates from a meeting #156

Open
seancfong opened this issue Feb 14, 2025 · 1 comment · May be fixed by #157
Open

Load availability dates from a meeting #156

seancfong opened this issue Feb 14, 2025 · 1 comment · May be fixed by #157
Assignees

Comments

@seancfong
Copy link
Member

seancfong commented Feb 14, 2025

Summary

On the availability/[slug] page, load the dates of a meeting from the JSON column according to the new schema.

Dependent on #155. This ticket will be ready to start once it gets merged.

Personal Availability

If a user is logged in, load their availabilities.

Group Availability

Write a function in src/server/data/availability/queries.ts to query all member availabilities from a meeting.

Deliverables

Modify the Page server component in page.tsx with the updated fetches. No need to update any front-end even though it breaks.

  • A console.log of personal availability of the logged in user (null if not logged in)
  • A console.log of group availability of all users

Resources

src/lib/auth/index.ts has an exported function for user session / auth.

src/server/data/meeting/queries.ts has basic functionality of fetching meeting dates.
src/server/data/availability/queries.ts has basic functionality of fetching the availability of a user.

src/app/availability/[slug]/page.tsx contains the fetch calls from the old database utils. Change this to the two functions exported from above.

You may have to use Drizzle Studio pnpm db:studio to manually add rows in tables.

@seancfong
Copy link
Member Author

@aizilerts @amhaiskar0921 #155 got merged, so feel free to get progress on this task before Monday's meeting.

@amhaiskar0921 amhaiskar0921 linked a pull request Mar 3, 2025 that will close this issue
@amhaiskar0921 amhaiskar0921 linked a pull request Mar 3, 2025 that will close this issue
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 a pull request may close this issue.

3 participants