Skip to content

Add save story error message#888

Merged
swissspidy merged 1 commit intomasterfrom
add/801-save-story-error-message
Apr 1, 2020
Merged

Add save story error message#888
swissspidy merged 1 commit intomasterfrom
add/801-save-story-error-message

Conversation

@merapi
Copy link
Copy Markdown
Contributor

@merapi merapi commented Mar 31, 2020

Fixes #801

However, I don't know if this is enough for such critical action.

On FHD it's barely noticeable, given the distance between button and message:
image

@github-actions
Copy link
Copy Markdown
Contributor

Size Change: +171 B (0%)

Total Size: 506 kB

Filename Size Change
assets/js/edit-story.js 436 kB +171 B (0%)
ℹ️ View Unchanged
Filename Size Change
assets/css/edit-story.css 3.01 kB 0 B
assets/css/stories-dashboard.css 206 B 0 B
assets/js/stories-dashboard.js 67.2 kB 0 B

compressed-size-action

@swissspidy
Copy link
Copy Markdown
Collaborator

Doesn't the snackbar provider support various positions? cc @ndev1991

Would need UX confirmation on best position

@merapi
Copy link
Copy Markdown
Contributor Author

merapi commented Mar 31, 2020

Doesn't the snackbar provider support various positions? cc @ndev1991

It does, but only at Provider level (cannot be overridden for a specific snackbar), so this should be changed IMHO.

<SnackbarProvider place="top-right">

CC @samitron7 for UX

image

@spacedmonkey
Copy link
Copy Markdown
Contributor

The code for this looks good ( it is very simple ). Once UX has been confirmed, I will approve.

@samitron7
Copy link
Copy Markdown

The Material recommendation is for snackbar to always be at the bottom lower left corner. It's definitely not ideal and we're looking slightly changing up the notification system in P1 but in the meantime, I would go with the Material recommendation.

Screen Shot 2020-03-31 at 2 09 44 PM

@merapi
Copy link
Copy Markdown
Contributor Author

merapi commented Mar 31, 2020

@spacedmonkey Let's merge it for Alpha.

Copy link
Copy Markdown
Contributor

@spacedmonkey spacedmonkey left a comment

Choose a reason for hiding this comment

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

LGTM

@spacedmonkey
Copy link
Copy Markdown
Contributor

@merapi Approved

Copy link
Copy Markdown
Contributor

@barklund barklund left a comment

Choose a reason for hiding this comment

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

I'd like us to give better feedback, in order for users of the plugin to file better bug reports.

.catch(() => {
// TODO Display error message to user as save as failed.
showSnackbar({
message: __('Failed to save the story', 'web-stories'),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we include some extra technical information? If a superuser wants to try to do something about it, they need more info. Or if any of our alpha/beta testers come across this, they need more information in order to file a better bug report.

Can we add extra info to the snack bar, that can be expanded, or something like that? Something like a "Show technical information" toggle?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What like this WordPress/gutenberg#15657 ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also think that we can follow up on this after.

Copy link
Copy Markdown
Contributor

@dvoytenko dvoytenko left a comment

Choose a reason for hiding this comment

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

LGTM. Would also like to see a follow up with some user-actionable messaging. Such as "Try again.". Assuming we can tell the reason for why saving fails.

@swissspidy
Copy link
Copy Markdown
Collaborator

@jauyong Can you create a follow-up task for more actionable messaging here?

@swissspidy swissspidy added the Type: Enhancement New feature or improvement of an existing feature label Apr 1, 2020
@swissspidy swissspidy merged commit a3fbc8e into master Apr 1, 2020
@swissspidy swissspidy deleted the add/801-save-story-error-message branch April 1, 2020 06:16
obetomuniz added a commit that referenced this pull request Apr 1, 2020
* master: (61 commits)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  Use native aspect-ration format for grid layers
  Fixed behavior for selected elements (#924)
  Fix ID prefix in auto-advanve-after (#915)
  Review fixes
  Switch to using Resource object throughout. Fix related bugs.
  Bump uuid from 7.0.2 to 7.0.3 (#913)
  Use Resource type everywhere relevant
  ...
obetomuniz added a commit that referenced this pull request Apr 1, 2020
…working

* master: (50 commits)
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  Use native aspect-ration format for grid layers
  Fixed behavior for selected elements (#924)
  Fix ID prefix in auto-advanve-after (#915)
  ...
obetomuniz added a commit that referenced this pull request Apr 1, 2020
* master: (56 commits)
  Add Snackbar for Invalid Links. (#912)
  Renamed files to make more sense, updated aria-label.
  Finished initial pass on Dashboard My Stories Page UI Grid View
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement New feature or improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show snackbar message when story fails to save

7 participants