-
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
feat: ✨ add group availability tab content #66
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 great, works great, and you write very nice code.
You do need to resolve the merge conflicts though. Sorry about that
…-availability-groups-tab
@MinhxNguyen7 Re-requesting review after resolving merge conflict. Regarding your comment on
// Triggers on every selection change
$: {
const updateSelection = () => {
if (selectedZotDateIndex === null || selectedBlockIndex === null) return;
const availableMemberIndices: number[] =
$availabilityDates[selectedZotDateIndex].getGroupAvailabilityBlock(selectedBlockIndex) ??
[];
availableMembersOfSelection = availableMemberIndices.map(
(availableMemberIndex) => $groupMembers[availableMemberIndex].name,
);
notAvailableMembersOfSelection = $groupMembers
.filter((_, index) => !availableMemberIndices.includes(index))
.map((notAvailableMember) => notAvailableMember.name);
};
updateSelection();
} For now, I just left it how it originally was prior to the review. I think it seems to defeat the purpose of "not nesting" the conditional logic if we have to nest it in a function anyway :L |
The page isn't loading after the merge. I actually tried to merge, but I left it to you because I couldn't figure out why it was erroring. I tried rebasing, and the first commit seemed to be the problematic one. Not sure what the problem is, and I figured you'd have a better idea. |
@MinhxNguyen7 Did some classic commenting process of elimination to see what's causing the problem. Looks like commenting line 295 in Not sure if there's a missing dependency or environment variable that needs updating. Regardless, that was what worked for me in order to get the group tab up on my end. |
Oh! The problem is with loginModalData. I renamed it when we were first going over the LoginFlow, but I forgot that If you swap all instances of loginModalData back to just data, it'll work! |
Just to minimize the amount I touch your potential work, I aliased the All systems seem to go on my local branch: re-requesting review @MinhxNguyen7 |
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.
This is cursed
Summary
Desktop:
Mobile (iPhone 14 Pro Max shown):
Hovering over cells on desktop will dynamically update the side drawer to display available members.
Clicking on a cell on desktop will toggle lock and unlock of a selected cell to prevent updates on hovering.
Tapping on a cell on mobile will toggle a drawer to display available members (iPhone 14 Pro Max shown).