Skip to content

@datawheel/canon-cms@0.10.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@davelandry davelandry released this 15 Nov 21:47
· 1904 commits to master since this release

This release moves most CMS operations to the redux store. As such, like vizbuilder, it need to be added to the reducers file of any application that makes use of the cms. Steps for this have been added to the readme, but existing installations must perform the following step:

Configure Redux

The CMS state state is managed from the site-wide redux state. In app/reducers/index.js, import the reducer function and assign it to the cms key:

import {cmsReducer} from "@datawheel/canon-cms";

export default {
  cms: cmsReducer
};

Additionally, the blueprint tree originally used for navigation has been replaced with a horizontal ribbon.

Known Issues

  • Adding a new section appends it to the end of the list, instead of in between as the UX would indicate. This fix is forthcoming.
  • Dimension editing will soon be moving to a more hidden/gear-editing location, for now it remains in its place from before this branch.

Caveats

  • MANY integral read/write cycles of the CMS have been modified across the board. Though I've done a lot of testing, I'd advise backing up CMS DBs before doing intense work, in case I've crossed a wire somewhere.

Full Changelog

  • Merge pull request #819 from Datawheel/refactor-redux (92cc52a)
  • fixes nested outline being visible when the outline has been collapsed (78c9e3e)
  • puts the paren in the right place 🤦‍♀️ (4cd10e6)
  • refactors outline item into function; removes a bunch of duplicated code (b35bdf4)
  • removes console logs (05a166a)
  • fixes storyswap bug (0595d8b)
  • calls swapEntity() directly insteaad of using swapSections() (e4be10d)
  • adds cmsreducer to index (8e77af5)
  • updates readme to include cmsReudcer (3653b57)
  • fixes sections preceeding the first grouping in the outline (e8cab79)
  • properly indicates outline selected section state (458dcfe)
  • fixes bug with deepclone in simpleviz (11b7a5e)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (ef06a32)
  • handles noviz case in simpleviz editor (f8e61d6)
  • fixes bug with simpleviz editor (7c8ba70)
  • fixes bugs from master merge (2162a8f)
  • Merge branch 'refactor-redux' of http://github.com/datawheel/canon into refactor-redux (ccde98f)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (47c8b05)
  • shows heros in outline (bd39f72)
  • fixes issue 786 (a0bee70)
  • adds nested outline (still WIP) (cc848a9)
  • takes formatDisplay vars out of state and grabs them directly in render (ab18bbd)
  • adds grouping logic to Outline (WIP) (a8bb55f)
  • prevents link icon from getting cut off (7f31a80)
  • changes default currTree state from an empty string to an empty array, which probably doesn't matter but feels better (7c1f7e4)
  • fixes bug with simple generators (7b202c1)
  • simplifies logic for formatDisplay (85cc9da)
  • moves Navbar display formatting out of render (13b75fd)
  • fixes minor visual bug with navbar icon alignment (87f8e00)
  • use native striphtml to avoid formatter weirdness (a4a00a0)
  • adds slug into header (e34db2c)
  • splits out a chunk of Navbar into Outline component; styles delete button in Header; removes unused styles (e04beb8)
  • adds header to stories (4f9945c)
  • hooks up deletion button in header (7ba7970)
  • adds delete button to Header (wip) (721e2a9)
  • adds icon to header link & makes it more flexible (94d6e53)
  • uses dimensions for title in profile dropdown; doesn't show swap button for last section; fixes minor visual bugs (b3b316f)
  • fixes bug with permalinks (fe93d9a)
  • fixes dropdown-link style when the links are buttons (dc0a4be)
  • fixes small bug with switching profiles (aee5b7e)
  • hooks up add buttons, needs ordering (4ea01d5)
  • adds swapping to nav (3ac7f8e)
  • handles adding new stories and closes menu on click (d04a045)
  • improves pathing (a5854ac)
  • adds stories to navbar (d3c2447)
  • improves handleclick in nav (311ed03)
  • moves profile meta detection back to profilebuilder (a484fa9)
  • moves pathobj to redux (bdb9042)
  • makes permalinks work (f018cb9)
  • rips lots of code out of profilebuilder and moves it to nav (045ef0d)
  • removes currentNode and tree, starts using pathObj properly (bc46989)
  • adds in-progress var usage function (e26a6e2)
  • removes console.log (55ed4c1)
  • fixes z-index bug (abe683f)
  • adds toolboxopen to status (228e0e8)
  • adds better comments (459ceac)
  • hooks up outline toggle (8a604c9)
  • improves nav layout on small screens (8498165)
  • adds new section / swap section buttons to Navbar (0e26f86)
  • fixes tree nodes showing as active when no node was selected (9124758)
  • adds create profile button to profile dropdown (d57b58b)
  • fixes Dropdown unique key warning (21bbc1c)
  • fixes visual bugs, mostly related to theming (3938275)
  • fixes z-index bugs (35df498)
  • comments out profile tree (1ca7d12)
  • begins styling horizontal outline (44b1aa4)
  • tweaks dropdown/nav link style (defc146)
  • adds selected state logic to nav dropdowns (9b5fa0e)
  • fixes wierd spacing issue (e23e53f)
  • blasts in OEC NavGroup component as Dropdown; hooks up profiles switching (WIP) (16d58df)
  • fixes modal section icon (6087533)
  • begins implementing horizontal tree (WIP) (74be0f9)
  • renames NavBar functions now that they're no longer callbacks; fixes secondaryLocale dropdown (55e2287)
  • adds tree example to navbar (0c3b3fa)
  • moves callbacks and state for navbar from builder to navbar (99f0768)
  • Merge branch '726-cms-nav-redesign' of http://github.com/datawheel/canon into refactor-redux (9619b68)
  • fixes bug that crashed pages without a hero stat (db6c44c)
  • Merge branch 'master' of https://github.com/Datawheel/canon into 726-cms-nav-redesign (dbe6025)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (a4fb451)
  • formats dispatchtoprops (4fdb2fa)
  • moves stories to redux (57c8a15)
  • fixes auto-open of toolbox items in redux (18edcf2)
  • switches object assign from broken one to d3plus-common (0142dae)
  • adds materializer ordering to redux (1a5e027)
  • fixes bug with vizcards (1ceed19)
  • adds desc/viz/stats to redux (cccc6a6)
  • moves subtitle swapping to redux (a6b8841)
  • hooks up section_selector swap and cleans up cms routes (7daad9e)
  • oops, missed one (8b098e9)
  • adjusts navbar cms style (9233bf1)
  • improves settings keyboard controls (94ba780)
  • stores variables and short-circuits rerunning gens (ff893a6)
  • removes some soon-to-be-obselete comments (7d9600d)
  • starts to transition storybuilder (f3cce89)
  • fixes routes to be relative to canon_api (1216345)
  • Merge branch 'cms-assorted-bugfixes' of https://github.com/Datawheel/canon into 726-cms-nav-redesign (fd6bcd2)
  • fixes dimensionbuilder stuff (71845a3)
  • fix bug with deleting profiles (809cec7)
  • removes masterpid and mastermeta from tree (1f4cb2a)
  • adds diffcounter to better track changes (dbdf605)
  • adds visualization hooks to redux (c5c61d0)
  • adds section_selectors to redux (f2bd40a)
  • removes selectors and ondeletes (acd0bae)
  • adds query via selectorusage to redux (77c89e9)
  • adds sub/stat/desc to redux and dedupes reducer routes (4ba477b)
  • gets basic section editor into redux (9773f27)
  • adds profileeditor to redux (5751b0c)
  • removes individual toolbox call, puts all in initial profile get (54551b2)
  • adds selectors to redux (081cce0)
  • adds formatters to redux (1f23b19)
  • moves gens/mats to redux (92f29de)
  • refactors Builder to split out new Navbar component 😌 (b2a6a36)
  • passes down setVariables via context (bf3f187)
  • moves setVariables to redux (978e7a2)
  • moves dimension editing to redux (25fcd45)
  • prevents double execution of fetch (23068d3)
  • moves preview search and pathing to redux (d908d3d)
  • fixes bug with locales (e850810)
  • moves locale handling to redux (b257a03)
  • hooks up profile deletes (6aec056)
  • mostly moves all variables access to redux, fml (ff1f9e4)
  • moves some status elements to redux (3fa4c6b)
  • moves add/del/update/swap to actions (b99204e)
  • moves treeify to its own file (703ed7c)
  • moves profiles and cubeData to redux (77f4d1e)
  • hooks up actions/reducers, adds first route (d411a72)