canon

Reusable React environment and components for creating visualization engines.

GPL-3.0 License

Downloads
1.4K
Stars
27
Committers
19
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

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 (92cc52a9)
  • fixes nested outline being visible when the outline has been collapsed (78c9e3e1)
  • puts the paren in the right place 🤦‍♀️ (4cd10e67)
  • refactors outline item into function; removes a bunch of duplicated code (b35bdf4e)
  • removes console logs (05a166a2)
  • fixes storyswap bug (0595d8b4)
  • calls swapEntity() directly insteaad of using swapSections() (e4be10d5)
  • adds cmsreducer to index (8e77af58)
  • updates readme to include cmsReudcer (3653b570)
  • fixes sections preceeding the first grouping in the outline (e8cab793)
  • properly indicates outline selected section state (458dcfef)
  • fixes bug with deepclone in simpleviz (11b7a5e4)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (ef06a327)
  • handles noviz case in simpleviz editor (f8e61d6d)
  • fixes bug with simpleviz editor (7c8ba70d)
  • fixes bugs from master merge (2162a8f7)
  • Merge branch 'refactor-redux' of http://github.com/datawheel/canon into refactor-redux (ccde98f4)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (47c8b058)
  • shows heros in outline (bd39f72d)
  • fixes issue 786 (a0bee700)
  • adds nested outline (still WIP) (cc848a93)
  • takes formatDisplay vars out of state and grabs them directly in render (ab18bbd1)
  • adds grouping logic to Outline (WIP) (a8bb55f4)
  • prevents link icon from getting cut off (7f31a80e)
  • changes default currTree state from an empty string to an empty array, which probably doesn't matter but feels better (7c1f7e47)
  • fixes bug with simple generators (7b202c18)
  • simplifies logic for formatDisplay (85cc9da0)
  • moves Navbar display formatting out of render (13b75fda)
  • fixes minor visual bug with navbar icon alignment (87f8e006)
  • use native striphtml to avoid formatter weirdness (a4a00a0d)
  • adds slug into header (e34db2c6)
  • splits out a chunk of Navbar into Outline component; styles delete button in Header; removes unused styles (e04beb85)
  • adds header to stories (4f9945c5)
  • hooks up deletion button in header (7ba7970b)
  • adds delete button to Header (wip) (721e2a99)
  • adds icon to header link & makes it more flexible (94d6e53d)
  • uses dimensions for title in profile dropdown; doesn't show swap button for last section; fixes minor visual bugs (b3b316f7)
  • fixes bug with permalinks (fe93d9ab)
  • fixes dropdown-link style when the links are buttons (dc0a4beb)
  • fixes small bug with switching profiles (aee5b7e3)
  • hooks up add buttons, needs ordering (4ea01d59)
  • adds swapping to nav (3ac7f8ee)
  • handles adding new stories and closes menu on click (d04a045b)
  • improves pathing (a5854ac9)
  • adds stories to navbar (d3c24479)
  • improves handleclick in nav (311ed030)
  • moves profile meta detection back to profilebuilder (a484fa9e)
  • moves pathobj to redux (bdb90425)
  • makes permalinks work (f018cb9b)
  • rips lots of code out of profilebuilder and moves it to nav (045ef0d2)
  • removes currentNode and tree, starts using pathObj properly (bc46989e)
  • adds in-progress var usage function (e26a6e20)
  • removes console.log (55ed4c17)
  • fixes z-index bug (abe683f3)
  • adds toolboxopen to status (228e0e88)
  • adds better comments (459ceac7)
  • hooks up outline toggle (8a604c9b)
  • improves nav layout on small screens (84981658)
  • adds new section / swap section buttons to Navbar (0e26f868)
  • fixes tree nodes showing as active when no node was selected (91247586)
  • adds create profile button to profile dropdown (d57b58bb)
  • fixes Dropdown unique key warning (21bbc1c3)
  • fixes visual bugs, mostly related to theming (3938275a)
  • fixes z-index bugs (35df4983)
  • comments out profile tree (1ca7d126)
  • begins styling horizontal outline (44b1aa41)
  • tweaks dropdown/nav link style (defc1466)
  • adds selected state logic to nav dropdowns (9b5fa0ec)
  • fixes wierd spacing issue (e23e53f1)
  • blasts in OEC NavGroup component as Dropdown; hooks up profiles switching (WIP) (16d58df7)
  • fixes modal section icon (60875335)
  • begins implementing horizontal tree (WIP) (74be0f91)
  • renames NavBar functions now that they're no longer callbacks; fixes secondaryLocale dropdown (55e22871)
  • adds tree example to navbar (0c3b3fa4)
  • moves callbacks and state for navbar from builder to navbar (99f07686)
  • Merge branch '726-cms-nav-redesign' of http://github.com/datawheel/canon into refactor-redux (9619b68e)
  • fixes bug that crashed pages without a hero stat (db6c44c2)
  • Merge branch 'master' of https://github.com/Datawheel/canon into 726-cms-nav-redesign (dbe6025a)
  • Merge branch 'master' of http://github.com/datawheel/canon into refactor-redux (a4fb4512)
  • formats dispatchtoprops (4fdb2faa)
  • moves stories to redux (57c8a15c)
  • fixes auto-open of toolbox items in redux (18edcf28)
  • switches object assign from broken one to d3plus-common (0142dae5)
  • adds materializer ordering to redux (1a5e0275)
  • fixes bug with vizcards (1ceed19b)
  • adds desc/viz/stats to redux (cccc6a64)
  • moves subtitle swapping to redux (a6b88418)
  • hooks up section_selector swap and cleans up cms routes (7daad9e4)
  • oops, missed one (8b098e9f)
  • adjusts navbar cms style (9233bf14)
  • improves settings keyboard controls (94ba7804)
  • stores variables and short-circuits rerunning gens (ff893a62)
  • removes some soon-to-be-obselete comments (7d9600db)
  • starts to transition storybuilder (f3cce895)
  • fixes routes to be relative to canon_api (1216345d)
  • Merge branch 'cms-assorted-bugfixes' of https://github.com/Datawheel/canon into 726-cms-nav-redesign (fd6bcd2f)
  • fixes dimensionbuilder stuff (71845a3f)
  • fix bug with deleting profiles (809cec73)
  • removes masterpid and mastermeta from tree (1f4cb2a6)
  • adds diffcounter to better track changes (dbdf605f)
  • adds visualization hooks to redux (c5c61d04)
  • adds section_selectors to redux (f2bd40ae)
  • removes selectors and ondeletes (acd0bae8)
  • adds query via selectorusage to redux (77c89e93)
  • adds sub/stat/desc to redux and dedupes reducer routes (4ba477b5)
  • gets basic section editor into redux (9773f273)
  • adds profileeditor to redux (5751b0ca)
  • removes individual toolbox call, puts all in initial profile get (54551b2d)
  • adds selectors to redux (081cce07)
  • adds formatters to redux (1f23b197)
  • moves gens/mats to redux (92f29de9)
  • refactors Builder to split out new Navbar component 😌 (b2a6a36d)
  • passes down setVariables via context (bf3f1872)
  • moves setVariables to redux (978e7a22)
  • moves dimension editing to redux (25fcd453)
  • prevents double execution of fetch (23068d3e)
  • moves preview search and pathing to redux (d908d3da)
  • fixes bug with locales (e850810c)
  • moves locale handling to redux (b257a039)
  • hooks up profile deletes (6aec0566)
  • mostly moves all variables access to redux, fml (ff1f9e41)
  • moves some status elements to redux (3fa4c6bb)
  • moves add/del/update/swap to actions (b99204ef)
  • moves treeify to its own file (703ed7c2)
  • moves profiles and cubeData to redux (77f4d1ee)
  • hooks up actions/reducers, adds first route (d411a72a)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • fixes native focus-within pseudo class (closes #812) (2e5dc55c)
  • fixes deprecated test site promise cache (b29889f8)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • updates mondrian-rest-client to 1.1.4 (900d3a0a)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • moves default props out of constructor (51897041)
  • fixes table viz overflow, turns on pagination by default (ac1dcde9)
  • replaces react-table pagination buttons with canon buttons; removes unnecessary styles; closes #783 (bebb9c81)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • removes console (7e87fa4d)
  • fixes issue with deleted default selectors (27bd33db)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • fixes issue with file-loader (8e7488ea)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • Merge pull request #811 from Datawheel/issue-723-viz-improvements (4d80200f)
  • fixes labels for simpleviz (208f1b61)
  • Merge pull request #813 from Datawheel/issue-810 (a19d9e26)
  • fixes bug in metaeditor that hid images (fa996ee8)
  • fixes payload accessor (dfe554e6)
  • Merge branch 'master' of http://github.com/datawheel/canon into issue-723-viz-improvements (3679a309)
  • fixes bug where props weren't being set on initial load (287ebe5b)
  • fixes captialization and formatter sorting (90a59cb1)
  • changes stripID to regex (c7efc3ff)
  • sets treemap to default (e672c98a)
  • reorganizes vizmethods (c9f60bd7)
  • removes sharedMethods (55aa4eeb)
  • adds scrollContainer to viz, preserves fields on type switch (25184298)
  • fixes resp logic (afe4676e)
  • adds more robust payload extractor for simpleviz (6a1fedb3)
  • adds some comments (14da2db9)
  • extract out option list to func, handle empty titles (784cda99)
  • adds display option to methods, dedupes tooltip, implements num filter (41af5dc1)
  • adds yconfig/xconfig to simpleviz (8e631d48)
  • adds formatters to simpleviz config (adb40403)
  • adds support for optional values (e820188b)
  • sets up groupby with labeling (2418e14b)
  • removes original scaffold (63f301a6)
  • changes vizlookup to new format (c8be46b8)
canon - @datawheel/[email protected]

Published by jhmullen almost 5 years ago

  • hotfix-not-founds (cfe7ab62)
  • fixes Hero usage in default Story layout (e8e56669)
  • fixes Tabs section type when no visualizations are present (20297602)
canon - @datawheel/[email protected]

Published by jhmullen almost 5 years ago

  • hotfix-parent-bug (f7e249dd)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • adds ability to search for parents in images (35b7db03)
  • auto-opens selectors and formatters on creation (56a7141b)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • adds new CMS stat variables to global style variables (c1f12e09)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • allows stats to smartly lay themselves out via flex-basis, stops rendering single stats as stat groups (c1f12e09)
  • fixes ungrouped stats not laying themselves out correctly (b2cbe00e)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • improves generator speed by fixing nestedObjectAssign bug (d6574e86)
  • sets default secondary language to none (8821f163)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • allows selecting the viz type first in the SimpleVisualizationEditor (b351a011)
  • fixes IE view data table overflow (75a2f256)
  • removes unneeded IE scroll fix for image downloads (78e8ffd4)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • exports Mirror for custom Profile implementations (ba1cb065)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • fixes defaultConfig styles import (2ebb5aa8)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • Merge pull request #791 from Datawheel/cms-assorted-bugfixes (50e3dea3)
  • fixes the :damn: table scroll bar situation for once and for all, I hope (4ea5fed1)
  • actually closes #781 (c8d02bc1)
  • fixes IE save image bug by settings classes via className rather than classList (67a41471)
  • Merge branch 'master' of https://github.com/Datawheel/canon into cms-assorted-bugfixes (8ba9ee27)
  • gives percentage bar enough unique keys are you happy now react (fbf55f74)
  • fixes legend labels not rendering when saving image (5f63ba79)
  • gets table visualization headers rendering correctly when saving image (14991a3d)
  • handles layout for groups of 3 or more stats (c9f3bdb3)
  • fixes SVG export (f1a5c4e1)
  • fix react-table width in save image (a6a068ba)
  • fixes display link (c545fef8)
  • rewrites save image function for better performance and more stylistic control, closes #746 (e071fc02)
  • adds a Mirror component in preparation to rewrite save image function (aa612a83)
  • fixes save image function not rendering d3plus viz titles (#746) (dce8a8ce)
  • actually fixes stats anchor link (7771939d)
  • fixes readme typo & links (9a18ef57)
  • adds section on sections to the docs (0a7efa70)
  • gets tab selector config working, removes redundant filters 🤦‍♂️ (b7a74bd0)
  • gets rid of Selector container div, clarifies logic, ensures render return (a81aeb34)
  • prevents empty selectors from breaking the app (e1b1a5f9)
  • imports d3plus formatAbbreviate in a way that doesn't break formatters for CMS users (#782) (e112ab26)
  • updates package-lock (4919482a)
  • Merge branch 'master' of https://github.com/Datawheel/canon into cms-assorted-bugfixes (5dbdd081)
  • renames tabIndex to panelIndex to avoid confusion with the html property; attempts to get tabs with selector overrides to not crash (f57e5119)
  • adds support for arrays of endpoints in d3plus visualizations & options; closes #768 (3704e590)
  • fixes Tab button labels whether the object key is quoted or not (f23a4d47)
  • fixes Tab button labels (33c66c11)
  • simplifies passthrough function (#782) (f7705c0b)
  • replaces custom abbreviate function with d3plus formatAbbreviate; closes #782 (66268ef1)
  • allows Stat root (El)ement to be set; changes Graphic viz stat root element to ; improves stat accessibility (440764c2)
  • brings back the ability to group stats by label; closes #653 (0aaeb531)
  • handles default section layout when there are no visualizations (944c24fa)
  • fixes subtitle getting inherited from profile in Hero section (0748a84e)
  • tweaks options styles for visual consistency; organizes styles; removes unused styles (56e14fd4)
  • Merge branch 'master' of https://github.com/Datawheel/canon into cms-assorted-bugfixes (764d4d09)
  • tries really hard to prevent PercentageBar from spitting out the unique keys error (6bd274c8)
  • performs wonky IE hacks only when IE is the current browser (0048939f)
  • prevents custom visualization Options from crashing the page; targets the correct element for image save & clarifies logic; improves UX (67aa2609)
  • fixes visualizations flush against the bottom of a section (01e6c690)
  • updates package.json (1f8106f3)
  • labels save image button group and converts viz/layout toggle into a labeled button group (65187a88)
  • unhides blueprint dialog scroll bars; probably closes #781 (d5b443b8)
  • de-jankifies share link (dddb2525)
  • fixes style collision between ShareDirectLink fake button and TextInput password button (1f067afa)
  • fixes all manner of Options nonsense; also closes #749 (9b9d49c3)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

This release breaks any site that is using the "slug" field that gets added to results from the search database. If that is you, then you need to add an addition environment variable to turn that behavior back on: CANON_LOGICLAYER_SLUGS=true

  • adds CANON_LOGICLAYER_SLUGS env var (closes #751) (1ffedae8)
canon - @datawheel/[email protected]

Published by davelandry almost 5 years ago

  • fixes bug where formatters would not update on front-end display (AP-210) (e7295bea)
canon - @datawheel/[email protected]

Published by jhmullen about 5 years ago

  • Merge pull request #788 from Datawheel/issue-767 (63953f50)
  • changes wording (a2cc819c)
  • implements Jimmy's review feedback (89e64eae)
  • styles var reset button; closes #777 (311a7589)
  • properly scopes InfoCard select-label & stat-subtitle styles (cbfd1653)
  • moves reset functionality from individual viz to entire section (4f9560b1)
  • adds reset button to vizes (b23b80b0)