-
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
Refactor isCommunity field #587
Conversation
[diff-counting] Significant lines: 44. |
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 work!
Can you update backend/tests/data/createData.ts:89
as well?
@@ -104,7 +104,7 @@ const TeamEventDashboard: React.FC = () => { | |||
0 | |||
); | |||
const initiativeCredits = teamEvents.reduce( | |||
(val, event) => calculateInitiativeCreditsForEvent(member, event), | |||
(val, event) => val + calculateInitiativeCreditsForEvent(member, event), |
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.
👍
@@ -53,7 +55,8 @@ const TeamEventForm = (props: Props): JSX.Element => { | |||
date: teamEventDate, | |||
numCredits: teamEventCreditNum, | |||
hasHours: teamEventHasHours, | |||
isCommunity | |||
isCommunity: isInitiativeEvent, |
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.
👍
Summary
isCommunity
field toisInitiativeEvent
in FEisInitiativeEvent
when requesting all team event infoThis pull request is the second step towards implementing support for initiative TEC
Notion/Figma Link
https://www.notion.so/TEC-Add-support-for-Initiative-tec-279c8cac37124630b2b7d7f383c70e55
Test Plan
Notes
isCommunity
is still referenced in some files to be safe, namely inindex.d.ts
andTeamEventForm.tsx
when editing an event. In the latter case,isCommunity
is updated to the value ofisInitiativeEvent
.Breaking Changes