Thanks for reaching out, this is a great question!
If your index page or whatever the page is NOT an HTML file (e.g. just saying OK text) or invalid HTML file (e.g. without body tag), you won’t see the drawer. This is because we inject the drawer with the closing body tag, if the HTML file doesn’t have it, we can’t inject it.
That means, for example, the below code would not allow the drawer to be visible.
hello!
<br>
hi!
However, if you changed it to include body tags, it should work! For example:
Hi @hillary, thanks for responding so quickly. It’s not working on my end unfortunately. I used an 11ty starter and its HTML output is valid. In addition there are no console errors. Any idea what’s going on over here?
Thanks for following up! I am happy to help here, and there are a couple other things may be happening that we can work through.
Are you working with PRs that were created before Collaborative Deploy Previews were launched? If that is the case, I would suggest creating a new PR to see if that triggers the drawer.
Are you using both GitHub as well as the Github App?
Same problem here. This preview is from a PR created this afternoon, and the snippet is being injected right before the closing body tag. However, the following warning from line 21 of netlify.js is in the console:
Thanks for those details, @simon and @polarweasel. I have looped in our team that built this feature and we will continue to work on this for you hang tight!
Sorry for not following up yesterday evening! I have identified the issue and our Support Engineers are working on a fix for you. We will follow up on this thread when we have more information! Thanks for your patience
Thanks @hillary, that gets me a bit further. I’m 100% positive though I got a dialog from Github asking me to confirm the additional rights Netlify was requesting. Perhaps something went wrong there.
I’m getting the icon now on the preview build, and when I expand it I get the option to either sign up or log in. I choose log in, and opt for logging in with my Netlify e-mail and password. However, then the Netlify app is opened in the pop-up window instead of enabling the sidebar/drawer. So I end up with this: