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

website: Unify task controls #598

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

othrayte
Copy link
Collaborator

@othrayte othrayte commented Jan 10, 2023

Unify the TaskControls implementation into one place.

Also happens to fix some issues with the no-changes are-you-sure dialog only appearing once and other form values not being reset correctly for new tasks etc.

This one ended up touching more code that I was originally hoping for, but I think it at least leaves everything in a better state.

This is the second PR for #569, if there is a third that would be to change the summarisation task pages to use Task.tsx.

Also happens to fix some issues with the no-changes are-you-sure dialog only appearing once and other form values not being reset correctly.
Copy link
Collaborator

@fozziethebeat fozziethebeat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@fozziethebeat fozziethebeat merged commit c794c2d into LAION-AI:main Jan 10, 2023
break;
case "SUBMITABLE": {
trigger({
id: task.id,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks things. task.id isn't the frontend ID it's the backend ID. Right now we can't do a guaranteed lookup to find the proper backend ID.

Once the backend changes remove the frontend ID this will be correct but as of right now submissions are broken.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. I can look into fixing it in about 5hrs, or do you want to fix it before then?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got my fix up and ready :)

@othrayte othrayte deleted the unified-task-controls branch January 11, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants