Skip to content

@datawheel/canon-cms@0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@davelandry davelandry released this 13 Feb 17:04
· 3423 commits to master since this release

canon-cms v0.2 is an entire rewrite of the CMS (mad props to @jhmullen). We will be creating an update script to migrate old v0.1 databases at a later point. This update includes the following breaking changes:

  • Moving away from the traditional Profile -> Section -> Topic hierarchy, this PR takes an "Everything is a Topic" approach. This means that profiles are actually quite small now - containing only generators, materalizers, and a title. Everything else, sections, footnotes, topics, vizes - these are all special cases/templates of the generic "Topic," and are organized in an ordered list like a website (as opposed to strictly hierarchically).

  • Most every entity is now multi-lingual. This required the creation of corollary content tables that contain translated content, controlled by the CANON_LANGUAGES environment variable. API endpoints now accept a &locale=<locale> parameter to fetch content in the given locale, falling back to CANON_LANGUAGE_DEFAULT if fields are missing.

  • Update to canon-core 17.4. The most "breaking" part of this upgrade is the jump from blueprint 1.x to blueprint 3.x (though moving to react 16 caused a few blips as well). I have run both migration scripts and reorganized all labs components and moved all pt- classes to bp3-.

Full Changelog

  • updates canon-core to v0.17.6 (73b37f0)
  • Merge pull request #431 from Datawheel/refactor-flatten (0cccafa)
  • adds formatter seed content to model (2953709)
  • updates pt- prefix to bp3- on non-updated classnames (49542de)
  • updates css path in Options.jsx for bp3 (4e3f659)
  • updates package lock (daf4419)
  • pulls in master (60cbe1d)
  • adds framework for possible path setting, commented out (2591dfb)
  • fixes bug where topic titles would regress when secondary locale was updated (26a725b)
  • adds is-dirty? functionality to all cards, skipping confirm prompt if no changes (dd321c6)
  • removes unnecessary object pruning that was causing input warning (09b1833)
  • fixes blueprint portal nesting to inherit css properly (fde90fe)
  • adds keys to comps in generatoreditor to address react16 key-unique warning (1ac6e00)
  • fixes storytopic bugs and linting errors (d5923e5)
  • fixes bugs with creating new topics (eb7dd61)
  • updates to canon-core 17.4 (612ff4a)
  • adds single lang switch (c18235b)
  • fixes bug with renaming slugs in profiles (c6e9e13)
  • fixes bug in storytopic saving (5a3f2d3)
  • removes references to hard coded english from stories (a737b54)
  • fixes bug with title changes in profilebuilder (fafddf5)
  • adds locale toggle, fixes topic naming bug, fixes control flow for editors (f3b0422)
  • removes console log (d1ee5c1)
  • fixes bug with saving stories in storyeditor (662f03e)
  • removes english defaults, fixes locale switching bug (10a8cd2)
  • refactors routes and front-end so that defaultlang can be anything, not just en (5c3873c)
  • adds defaults to top-level editors so we know which keys to iterate on in Cards (b8713f5)
  • adds locale default to profile builder and editor (90b6f14)
  • adds localeDefault to outer Builder (a04f978)
  • updates vizes to respect locale, performs urlswap by locale (71aba51)
  • fixes topic endpoint to respect locale (eeb60ab)
  • splits out variables into locale-specfic blocks (efd3e35)
  • adds locale to mortareval (f40914c)
  • updates mortar front-end to respect locale requests (7c112a4)
  • fixes ordering bug by returning correct payload for create route (532113a)
  • checks that an update has content before updating language table (55755f3)
  • uses actual canon vars for dropdown, hides entire lang interface if none set (534b98d)
  • streamlines control flow in profile editor (b3920bd)
  • updates story and storytopic editors to match new structure (75c32ed)
  • adds visual split and locale dropdown to builder (aee55df)
  • enables textcard to accept locales and write to the proper db (cff3519)
  • fixes associations and broken topic title content (a1a7b1e)
  • removes parent_id from content tables, using regular id instead (2e81be7)
  • updates cms/mortar routes to respect content (2aca743)
  • moves unnecessary props from story_content (bbe1a28)
  • adds content tables to db (ac3b684)
  • removes section from profile scaffold (5016f74)
  • removes sectioneditor and old profile stats (f5288b8)
  • removes sections from profilebuilder (c6ca4cb)
  • removes sections from cms and mortar route (e030c7b)
  • refactors db structure (e4cfd0b)