Skip to content

@datawheel/canon-cms@0.14.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@davelandry davelandry released this 03 Sep 18:06
· 926 commits to master since this release

As with most major CMS releases, please run the migration script to update a 0.13 database to the new 0.14 format.

New Features

  • Entire profiles now have a "visible" status, which allows them to be edited in the CMS but not appear in front-end search results.
  • Dimension variants within a profile now have an "allowed" status, so that work can be done on new variants in the CMS without exposing them via search results.
  • Generators now contain an "allowed" status, based on Boolean variables provided by the customAttributes endpoint. Generators that are not allowed for a given dimension will not be run for that profile (reducing load times).
  • Materializers now contain an "allowed" status, based on Boolean variables provided by either the customAttributes endpoint or Generators. Materializers that are not allowed for a given dimension will not be run for that profile (reducing load times).
  • Selector/setVariables state is now stored in query arguments when changed on the front-end, allowing to share more specific URLs.
  • The /profilesearch endpoint now contains filters for dimension, hierarchy, and profile.
  • The /profilesearch endpoint now returns any custom defined meta information in its results.
  • Profiles now feature a "Save as PDF" button in the hero section. This button can be hidden by adding the following CSS to a project: .cp-hero-pdf { display: none }

Full Changelog

  • Merge pull request #1073 from Datawheel/feature-1070-pdf (56a2d0e)
  • fixes monorepo packages linking to canon-core (b1abd8e)
  • Merge branch 'master' into feature-1070-pdf (dcecf28)
  • Merge pull request #1058 from Datawheel/feature-allowed-generators (f1d2418)
  • Merge branch 'master' into feature-allowed-generators (c43d7ed)
  • tweaks design of is-not-allowed class (5b14b52)
  • documents new behavior (dc1e2ed)
  • adds filtering to profilesearch (cd21607)
  • adds attr to grouped profiles (911b547)
  • returns attr in profile search results (db39a1e)
  • Merge branch 'master' into feature-allowed-generators (1e468ba)
  • allows data appendix tables to page-break-inside (f539a3f)
  • adds pdfOptions prop to PDFButton and wraps text prop in translate function (bc02a87)
  • adds description to Data Appendix and wraps title/desc in translate function (6140076)
  • removes overly aggressive print styles (4889958)
  • allows custom pdfOptions to be passed in body to express endpoint and fixes viewport sizing (ce6503c)
  • adds columns to db_0.14 migration script (568d319)
  • updates readme (9c0967e)
  • hides results from /api/search unless ?cms=true (8883d1c)
  • adds another hidden indicator to ui (3b45eb7)
  • adds eye icon to indiciate invisible profiles (23727c5)
  • filters out search results from hidden profiles (5aa3523)
  • adds visibility to profile variants (38a75bf)
  • uses size-me with printable Table viz (d3cc871)
  • improves profile print styles (d2603bb)
  • improves data appendix table styles in print (bd257a7)
  • improves data appendix column widths in print mode (9ac4dc0)
  • Merge branch 'master' of http://github.com/datawheel/canon into feature-allowed-generators (3b50a47)
  • print css page break tweaks (c758d54)
  • hides Tabs selector in print (18725ef)
  • removes viz titles from print Tables (97b0226)
  • fixes print bug in Selector where no default is selected (fb696aa)
  • removes unused imports from ProfileRenderer (26dea08)
  • uses profile title for PDFButton filename (01d97aa)
  • uses saveAs in PDFButton and adds filename and text props (845188c)
  • changes Button icon when rebuilding (1ae0507)
  • adds print styles for Data Appendix (3e9a2ee)
  • adds configOverride to MultiColumn, SingleColumn, and Tabs (6c7d3ab)
  • removes test code from Selector (97de8e0)
  • hides empty viz header in print mode (1777a65)
  • fixes declaration line (68dcb19)
  • converts appendix to true sections (9303edd)
  • removes dataOnly badness (2c580e8)
  • Merge branch 'feature-1070-pdf' of https://github.com/datawheel/canon into feature-1070-pdf (af29391)
  • hides Options when print is true (375f537)
  • hides Subnav when print is true (324eb7b)
  • initial profile print styles (21b2f90)
  • only shows activeValue in Selector when print is true (7ff52fd)
  • offsets cp-hero-pdf top by nav-height (7744df3)
  • adds print to childcontext of ProfileRenderer and adds a cp-print class (ca3f0c5)
  • resizes and styles puppeteer PDF (c4f7375)
  • fixes pnpm-lock for examples logiclayet (6e7f127)
  • creates exported PDFButton component (2f9b0e3)
  • bundles query state into pdf request (74066b6)
  • catches cases where panelIndex is out of range (c2f72eb)
  • adds tab state to dropdown configuration (f17159c)
  • makes front-end pages store and respect dropdown states (0dc4ab7)
  • Merge branch 'master' into feature-1070-pdf (f1d96ca)
  • adds req passthru to fetchprofile so print visibility var works (25f2851)
  • adds query param spread pass-thru to canon-core (0ca97ad)
  • adds showWhenPrinting var to cms-side (0e4b5f3)
  • Merge branch 'master' of http://github.com/datawheel/canon into feature-1070-pdf (47387b5)
  • adds profile visibility toggle (33b4257)
  • Merge branch 'master' of http://github.com/datawheel/canon into feature-allowed-generators (9fb4f62)
  • adds print option to dropdown (bab13e1)
  • adds source to pdf data (6ea70e4)
  • adds pass-thru options to show tables at end of doc (300ff13)
  • hides button on save, adds vizes to end of render (42eb19f)
  • adds print mode and api endpoint for puppeteer pdf (76b39c9)
  • adds puppeteer package and print query to url (9527a02)
  • Merge branch 'master' of http://github.com/datawheel/canon into feature-allowed-generators (355204e)
  • adds migration script for 0.14 (0eff537)
  • filters materializers by allowed (b84660f)
  • adds models for allowed generators (6ae2f80)
  • adds allowed to generators (f6d835e)