Right, but why agonize over users who are intent on shooting themselves in the foot? As long as they have the notice, we could say “well, we did warn you”… I support de-modal-izing this:
We could add some words to encourage users to update, e.g.
We’ve updated this site. Please update, or things might get weird
Not that exact language, but you see what I mean
「いいね!」 16
I would like us to improve this for the current release, how much work is this in your estimation @sam … I think the old school way
leaves a lot to be desired and I much prefer @awesomerobot mockup. Not proposing a huge change to behavior, just get rid of the jarring big ol’ giant OK/CANCEL dialog?
「いいね!」 3
sam
(Sam Saffron)
2021 年 3 月 25 日午前 5:02
23
Probably not too much work to add this in, @martin can take it next week.
「いいね!」 4
martin
(Martin Brennan)
2021 年 4 月 6 日午後 11:13
30
This change has been merged:
master ← feature/subtle-software-update-prompt
merged 10:56PM - 06 Apr 21 UTC


This moves the "This site was just updated" modal asking the user if they want to refresh into a subtle prompt that slides down from the header.
Also in this PR I've added a helper to publish message bus messages in JS tests. So instead of this:
```javascript
// Mimic a messagebus message
MessageBus.callbacks
.filterBy("channel", "/global/asset-version")
.map((c) => c.func("somenewversion"));
```
We can have:
```javascript
publishToMessageBus("/global/asset-version", "somenewversion");
```
### Testing
Change this JS:
```
timeout = later(() => {
updatePromptWidget.state.showPrompt = true;
updatePromptWidget.scheduleRerender();
}, 1000 * 60 * 24 * 60);
```
to
```
timeout = later(() => {
updatePromptWidget.state.showPrompt = true;
updatePromptWidget.scheduleRerender();
}, 500);
```
And send messagebus messages via `rails c` like so (the numbers are just random):
```ruby
MessageBus.publish("/global/asset-version", 428523235235)
```
Now the popup shows at the top of the page and is much less in-your-face than a modal
「いいね!」 11