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

Add para assignment dialog #239

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Add para assignment dialog #239

merged 2 commits into from
Nov 9, 2023

Conversation

codetheweb
Copy link
Contributor

@codetheweb codetheweb commented Nov 6, 2023

Closes #236.

Demo:

Screen.Recording.2023-11-05.at.9.50.21.PM.mov

<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
Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor

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

@codetheweb codetheweb marked this pull request as ready for review November 6, 2023 05:52
</List>
</Box>
<Box sx={{ display: "flex", justifyContent: "end" }}>
<Button variant="contained" onClick={handleClose}>
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

@tessathornberry tessathornberry left a 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!

@codetheweb codetheweb merged commit df6e649 into main Nov 9, 2023
3 checks passed
@codetheweb codetheweb deleted the feat-para-assignment-dialog branch November 9, 2023 03:12
amantri pushed a commit that referenced this pull request Nov 11, 2023
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 this pull request may close these issues.

Create modal skeleton (header, benchmark callout, close button)
2 participants