Closed DanielMiller-agile6 closed 4 years ago
Deploy preview for agile6 ready!
Built with commit 060f04ba69a55501ac80cc06d4ad0a35cbeee253
We got hung up on the iframe implementation (we were losing the content on browser refresh) after spending about an hour looking at it. We decided to go with an MVP implementation for now that just sends the users to the job page on greenhouse. While that is up and running we can create our own custom implementation calling the API.
Regarding the Service Worker issue and the Greenhouse iframe not attaching on a normal reload, I verified that 'unregistering' the service worker allowed a normal refresh to work every time, need to unregister for every refresh.
I think we could test out adding a the NetworkFirst
SW option to gatsby-config.js for just the /team page such as:
runtimeCaching: [
{
// Test skipping cache for team to debug greenhouse iframe attachment
urlPattern: /^https?:.*team/,
handler: `NetworkFirst`,
},
more detail: https://www.gatsbyjs.org/packages/gatsby-plugin-offline/#overriding-workbox-configuration
If that isn't it, we discussed that some event must not be firing so that <script src="https://boards.greenhouse.io/embed/job_board/js?for=agilesix"></script>
actually executes on reload.
thanks Elijah! I might take a look at that locally when i get time. something similar might also help with the issues we were seeing on the DSC site as well, so might be worth checking to see if similar behavior is happening there as well 👍
Regarding the Service Worker issue and the Greenhouse iframe not attaching on a normal reload, I verified that 'unregistering' the service worker allowed a normal refresh to work every time, need to unregister for every refresh.
I think we could test out adding a the
NetworkFirst
SW option to gatsby-config.js for just the /team page such as:runtimeCaching: [ { // Test skipping cache for team to debug greenhouse iframe attachment urlPattern: /^https?:.*team/, handler: `NetworkFirst`, },
more detail: https://www.gatsbyjs.org/packages/gatsby-plugin-offline/#overriding-workbox-configuration
If that isn't it, we discussed that some event must not be firing so that
<script src="https://boards.greenhouse.io/embed/job_board/js?for=agilesix"></script>
actually executes on reload.
I just opened an issue upstream here, https://github.com/gatsbyjs/gatsby/issues/26058.
Basic greenhouse.io job board integration. We had a few issues attempting the iframe integration technique, so we're starting with the basic "link to external greenhouse.io job board" version (Option 1 in the greenhouse.io integration options).
In a follow-up, we'll look into using the greenhouse API to fetch job board data so that we can render it inside of our site and style it appropriately (Option 3 in the greenhouse.io integration options).
Below is a screenshot of the updated teams page using job board link.