-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add para assignment dialog #239
Conversation
Closes #236.
<Box sx={{ px: 2, pb: 2 }}> | ||
<Alert severity="info" sx={{ mb: 2 }}> | ||
<AlertTitle>Benchmark</AlertTitle> | ||
By October, when given a list of 20 unfamiliar words that contain |
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.
where can we pull this from?
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 like the closest API we've made is iep.getSubgoalAndTrialData, for data collection, which we are using in /src/pages/benchmarks/[benchmark_id]/index.tsx, but we do not yet have an API for an individual Subgoal without the Trial data.
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.
We also have iep.tempAddTaskToSelf for assignment,being used in the Subgoal.tsx
</List> | ||
</Box> | ||
<Box sx={{ display: "flex", justifyContent: "end" }}> | ||
<Button variant="contained" onClick={handleClose}> |
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 start!
// task.mutate({ | ||
// subgoal_id: subgoal.subgoal_id, | ||
// assignee_id: data.get("assignee_id") as string, | ||
// due_date: new Date(data.get("due_date")) as Date |
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.
Let's be sure to test this when we implement it, to ensure it comes through as the correct date.
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 a great starting point. Thank you, Max!
Closes #236.
Demo:
Screen.Recording.2023-11-05.at.9.50.21.PM.mov