agilesix / AgileSix.com

Agile Six works with government agencies to create customized digital solutions that meet the needs of their users, both staff and citizens.
https://agile6.com
MIT License
4 stars 1 forks source link

Greenhouse.io job board #33

Closed DanielMiller-agile6 closed 3 years ago

DanielMiller-agile6 commented 3 years ago

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.

Screen Shot 2020-07-27 at 3 02 58 PM

netlify[bot] commented 3 years ago

Deploy preview for agile6 ready!

Built with commit 060f04ba69a55501ac80cc06d4ad0a35cbeee253

https://deploy-preview-33--agile6.netlify.app

bderfer68 commented 3 years ago

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.

ElijahLynn commented 3 years ago

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.

DanielMiller-agile6 commented 3 years ago

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 👍

ElijahLynn commented 3 years ago

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.