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

Separate error states per tab, clear errors when clicking around #52

Merged
merged 7 commits into from
Nov 12, 2024

Conversation

jspahrsummers
Copy link
Member

@jspahrsummers jspahrsummers commented Nov 12, 2024

CleanShot.2024-11-12.at.15.40.40.mp4

@dsp-ant
Copy link
Member

dsp-ant commented Nov 12, 2024

Would be great to include screenshots of whats going on in the PR.

@jspahrsummers
Copy link
Member Author

This is a bugfix for #40.

A recording would just show how it should've behaved all along

Copy link
Member

@dsp-ant dsp-ant left a comment

Choose a reason for hiding this comment

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

Not gonna pretend i a understand what's going on.

client/src/App.tsx Outdated Show resolved Hide resolved
Comment on lines +204 to +206
} else {
setErrors((prev) => ({ ...prev, [tabKey]: (e as Error).message }));
}
Copy link
Member

Choose a reason for hiding this comment

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

since we have a clearErrors would it make sense to have a setError that takes a specific tab key and sets the error?

Copy link
Member Author

Choose a reason for hiding this comment

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

It would only be used in this and clearError, whereas the latter gets used in many more places. I'd prefer to keep it to this for now.

@dsp-ant dsp-ant self-requested a review November 12, 2024 15:42
@jspahrsummers
Copy link
Member Author

Added a video to the PR description

@jspahrsummers jspahrsummers merged commit 06267d2 into main Nov 12, 2024
2 checks passed
@jspahrsummers jspahrsummers deleted the justin/tab-specific-errors branch November 12, 2024 15:44
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.

2 participants