* Bug fix for adding variables and procedures categories with prompt, removed blocks from category name, check if unsaved changes in workspace factory before leave
* Updated flags in clear all. Added more comments
* Solved merge conflicts
* warn user upon refreshing page and leaving page (by going to prev page or by exiting the window or tab)
* alert upon leaving page ONLY when unsaved changes
* nit remove log
* no alert when on starter block, added clarifying comment
* block library now dynamically updates buttons based on the current block open in block factory--whether or not it is saved, whether or not changes have been made, whether or not it's the starter block.
update buttons rather than switching to new block on delete
remove warning about updating block
alert when creating new block with unsaved changes
working warnings on tab switches and create new block
green buttons indicate user can save or update block, red save button indicates that user cannot save the block ( but encourages user to click button)
consistent button name on default
added alert upon switching between blocks without saving
nit comments, condensing if statements, removing extra code
throw errors in sameBlockXml function of factory utils
created wrapper function for warning user about unsaved changes and checking if they'd like to proceed
cleaned up code for setSelected block
* nit change to warning message on block type being one of core block types
* nit helper text for exporter
* nit comments and spacing
* Automatically generates flyout on switching to category
* Fixed import blocks bugs
* Made last set of UI changes and changes to starter code exporting
* Combined if statements
* Only add toolbox if not read only
* Removed extra curly braces
* Some options stuff changed
* Finished changes to options, including moving readonly to toop, fixing zoom errors, indenting suboptions, generating an options string, getting category options automatically, and making max blocks clearer, and having number inputs
* Added null check and nit line length
* Fixed bug of open flyout not updating by closing flyout, also changed shadow block editing UI to be a block that changes between add shadow and remove shadow
* Removed unncessary CSS rule
* Fixed marking shadow blocks so keeps warnings when switching between categories
* Done with variable and procedure block checks
* Used setShadowDom instead of shadowDom_, and nit changes in wfactory init
* Fixed bug of disable div covering whole screen
* Made workspace factory toolboxes take up height of screen, made workspce options properly scrollable, fixed being able to accidentally see Block factory some times, made Exporter and workspace factory scrollable if necessary
* Nit alphabetize css rules
* Fixed display none problems for Block factory, making it so that it can be hidden properly
* Nit css style
* disabled disconnected blocks in block factory
change to block def and also warn user
fixed bug and renamed math_foo
* clearUndo upon opening a saved block, change alert messages that use ok
* removed warning for unsaved blocks. in separate CL
* fix bug and make the blank option clickable
* generate block selector with checkboxes
working click handler
updated block exporter view and controller to work with new UI
select a block by clicking on the option--not just checkbox
renamed selectorWorkspace and fixed checkbox selecting bug
adding used blocks works
added and cleaned up css, removed extra exporter controller function, nit comment
simplified code
* style
* does not clear selected blocks upon tab switch
* added tooltips to buttons, reworded some buttons
* remove console.log statement and clarify this.selected in blockoption
* removed console log & nit comment
* Some UI changes made
* CSS changes
* Done with UI tweaks
* Changing arrow key event listeners, also changing category header in category list
* Fixed bug with error on updating toolbox with read only
* Changes to factory.css and workspacefactory view
* Bug fixes and UI changes and refactoring to have enableKeyEvents in wfactory controller
* Uncommented catch
* Changes to app_controller.js to use constants, other nit changes
* Nit line breaks
* addAllUsedBlocks in exporter works when you hand set the instance variable.
added click handler for export button (which got lost in refactor).
saveStateFromWorkspace on tab switch
fixed bug in deselect block in exporter; added warning alert for add all used blocks
* nit line
* not warning for standard block types
* switch block factory buttons, clarify exporter helper text,rename block selector
* add space between navigation bar and content. hide toolbox content.
* nit space
* moved helper text out of the columns and moved currently selected blocks into export settings
* Added block library category to toolbox workspace in workspace factory and update it each time user switches to workspace factory
* Added whitespace to end of index.html
* Bug fixes for convertShadowBlocks and updateState
* Last part of bug fix for adding separators
* Can import blocks in JSON and Javascript to generate new category in toolbox workspace
* Added try/catch to file reading
* Added comment to getDefinedBlocks in generator and changed name
* Use random color for imported category and use different call to
update toolbox
* Nit removed extra line
* Added more shadow block validation and cascading when adding shadow blocks
* Rebased and small bug fix in add category
* Removed warning text in addShadow
* Broke long if statement into inlined function
* Updated tab in blockly factory to reflect changes made to workspace factory, changes mainly in index.html and wfactory_init.js
* Added tab for workspace editing mode
* Changed font size in dropdown menu
* Added class for options inputs to add event listeners more easily
* generate category xml from block library and from imported block defs
* simplified algorithms for parsing block definition and cleaned up style
* refactored getCategoryFromBlockDefs, breaking it up and moving it to FactoryUtils
* refactored getCategoryXml, fixed bug in updatingToolBox of exporter
* removed unneeded function, added quick check for empty library
* nit comments
* Starting to integrate workspacefactory
* Committing before switching branches
* Tab for workspace factory working
* Committing before switching branches
* Refactored to have FactoryInit namespace and move logic out of AppController
* Nit typo fix.
* Fixed bugs from rebasing
* Nit fix in factory.css
* Added this. to previewWorkspace
* added warning if a block type already exists in blockly standard category
simplified isStandardBlockType
* simplified code, removed isStandardBlockType function
* nit remove implementation detail from comment
* Did cherry-picking for style changes with different resolution, no workspace factory style yet
* Nit changes
* Moving style out of index.html to factory.css
* Nit ordering in factory.css
* created FactoryUtils, to share useful generator code between the different apps within Blockly Factory
* undo removal of alert upon empty block library
nit removed specification of wfactory exporter param in comment for export controller
* remove alert from index and nit comment in wfactory generator
* Added pre-loaded blocks with import and export, squashed commit.
* Configure Options object
Allows user to configure the options object, see changes in the preview workspace, and export the options object (squashed commit).
* Nit changes to style.css
* working tabs using closure
expanded export settings menu
added old blockfactory and moved new files into blocklyfactory
expanded export to lay groundwork for workspace factory integration
fixed BlockFactory escapeString bug
* added TODO for refactoring onTab
Workspace factory helps developers configure their workspace by allowing them to drag blocks into the workspace to add them to their toolbox.
Current features:
supports categories or a single flyout of blocks
updates a preview workspace automatically
imports toolbox XML already written
exports toolbox XML to a file
prints toolbox XML to the console
imports a standard Blockly category
supports shadow blocks (allowing the user to move shadow blocks and toggle between shadow blocks and normal blocks), disabled blocks, block groups
allows the user to add/move/delete/rename/color categories and separators.
Created Blockly Factory, an expansion of the Block Factory demo that adds the Block Library and Block Exporter to the Block Factory.
The Block Library provides the interfaces for the user to save their blocks to local storage so that upon opening and closing the page, their blocks will still persist. In Blockly Factory, Users can re-open saved blocks for edit through a dropdown interface, delete blocks from their library, clear their block library, and import and export their block library. Importing and exporting their block library may be useful for creating specific sets of in-progress blocks for editing.
The Block Exporter allows users to export block definitions and generator stubs of their saved blocks easily by using a visual interface powered by Blockly. It contains a selector workspace in which users add and remove blocks to the workspace to select and deselect them for export.
The exporter also contains an export settings form through which people may export block definitions and generator stubs.