tinacms: Provide visual feedback when forms fail to save
Description
The form UI provides no indicator when saving fails.
Steps to reproduce
- Go to a Gatsby site that uses Tina + Markdown
git remote remove origin- Start the dev server
- Edit some content in the form
- Press save
Expected result
Some kind of UI notification
Actual result
Looks like the form saves, but it didn’t
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 18 (13 by maintainers)
I tracked down my issue, I didn’t have a remote named
origin. I created a Feature Request here about supporting that in the future: https://github.com/tinacms/tinacms/issues/1199Also, oddly when I did change my remote’s name to
originthen hit save in TinaCMS it committed everything I’d tried to save throughout the day, with the correct commit timestamps.Actually I hadn’t even read that far, just saw there was some structured json in the error response. But it’s only
And HTTP412, precondition failed. So writing that to the console wouldn’t necessarily have been that helpful anyway. I’m still tracking down what the actual bug is.
Yeah, I think a toast popup would be pretty cool. Just slide it up from the bottom of the page. The color would be whatever the main theme color is.
This would be the error state