Update: I've resolved & merged conflicts with the main branch in this one, deployed this branch as the latest code in the script editor and tested against the now live document API this work integrates with, at least for the oaklyn organization. Lookup, preview, publish, and unpublish all worked as expected. I also started a spreadsheet where examples of each org's API calls are linked.
This PR goes with the API endpoints PR in the front-end repo. It is currently the "latest code" in the script editor.
Closes #392
[x] on sidebar load, lookup article data by documentID replacing hasuraGetArticle, hasuraGetArticleTranslations, isArticleFeatured
[x] on sidebar load, lookup page data by documentID replacing hasuraGetArticle, hasuraGetArticleTranslations
[x] on sidebar load, lookup unknown documentID and return sitewide data (replacing hasuraGetArticle etc)
[x] on preview, save article data (published: false) and return preview article link
[x] on publish, save article data (published: true) and return published article link
[x] on unpublish, update published: false and return message
[x] on sidebar load, find existing translations, displaying open in $locale buttons
[x] on sidebar load, display translate to $locale button for languages not yet translated to
Update: I've resolved & merged conflicts with the main branch in this one, deployed this branch as the latest code in the script editor and tested against the now live document API this work integrates with, at least for the
oaklyn
organization. Lookup, preview, publish, and unpublish all worked as expected. I also started a spreadsheet where examples of each org's API calls are linked.This PR goes with the API endpoints PR in the front-end repo. It is currently the "latest code" in the script editor.
Closes #392
open in $locale
buttonstranslate to $locale
button for languages not yet translated to