joshwcomeau/guppy

Save flash for app settings & project configuration

Open

#314 opened on Oct 31, 2018

View on GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (151 forks)github user discovery
good first issueinvolves design

Repository metrics

Stars
 (3,248 stars)
PR merge metrics
 (PR metrics pending)

Description

During the work on PR #295 we've noticed that we need a message after the saving acutally happend so the user gets a feedback.

We'd like to change the behaviour at ProjectConfiguationModal too. As there it will autohide the dialog and this is the feedback that saving happend. We'd like to keep the modal open and show the flash message as well.

Describe the solution you'd like Add a small text saved close to the save button that will auto hide after 2 seconds. Styling could be similar to the style from the info text on ProjectConfiguration modal if save button is blocked.

I think it's OK to add a saved flag on app-status.reducer and then the component that will display the flash can connect to this do display the message for two seconds and clear afterwards the saved flag with an action.

Additional context This requires the app-settings feature from PR #295. You could start working if you're using app-settings branch as base for your work.

Contributor guide