-
Notifications
You must be signed in to change notification settings - Fork 105
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
new feature: subsite change detector #515
Comments
That looks nice and we would certainly have a use for it. The message could be more descriptive in terms of how the current subsite changed, mentioning another tab or other window, so editors don't think something changed it magically or they got hacked. |
@michalkleiner yes even if the following snippet is working fine for my use case, it needs to be tweaked a bit before being added
|
I would support this enhancement if you want to open a PR for it. |
@michalkleiner done, PR created with the little changes mentioned. I did try this locally on my project and it seems fine, but I made the edit directly on github because it's much more convenient :) |
I'll try to test it locally on one of our multi-subsite builds. |
This has already been done.
|
The critical thing that's missing @lekoala is that giving the user the chance to dismiss the message brings in their ability to click the save button again. This causes huge issues (saving data to the wrong site, potentially moving it between sites) that have afflicted users for years. Although the notice is good, it doesn't prevent the underlying issues it tries to avoid :) |
@NightJar yes, I agree it's not ideal, but it's an improvement. A better situation is always a good thing, I believe. anyway, that's my take, it's an easy snippet to add for anyone who wants to add this |
@lekoala I agree, improvement that does no harm (side effect) is good. It's not always a shared opinion unfortunately. Please don't take my feedback as denial of approach - I mention as it's relevant feedback... but it depends on your goals with this development. We tried a full solution that helped people unaware of the side effects of multi-tab editing avoid disrupting their site. The solution here achieves a very similar outcome with much less code, which is perfectly acceptable I think. If you wanted to take the solution further, the feedback is relevant, if not, then that's fine :) |
@NightJar no worries, i fully agree with you |
There's probably a lot of side questions about how we should be handling this type of situation. We don't really have the time to ask or answer those questions. Given that the attach PR seems like a good incremental improvements, we're inclined to review it as is for now. |
@maxime-rainville maybe the one change that is still missing to make it 100% is to make it configurable, ie: add a setting to make it opt in for example |
I've recently played around with a little js snippet and I think it would be a worthwhile addition to the module
the goal is to detect when a subsite change has occurred in another tab. This can help preventing many odd situations where you would click and suddenly see a whole new page due to the context change
the solution works like this, it's a really simple js snippet
what do you think?
Acceptance criteria
PR
The text was updated successfully, but these errors were encountered: