C2LC-83: Indicate applicable program step blocks when an editor action or command palette block is activated

Description

Comments

  • Daniel Cho commented 2019-12-10T09:44:07.898-0500

    Currently, last empty block is not registered in the ‘program’ state, and this is causing weird user experience which users have to click the last empty block twice with ‘add’ function to add an empty block to the end. Design for 0.1 release includes an indicator on the last block as well, so I am wondering if we should include none for the last empty block to the program state.

  • Daniel Cho commented 2019-12-13T16:06:23.235-0500

    Current design of the indicator for add is little off – I think we should indicate every blocks when add or a command from the command panel is selected.

  • Daniel Cho commented 2019-12-16T15:52:46.065-0500

    There are 4 cases we want to check for applicable indicator:

    1. When the program is empty.
    2. When the program has less commands than the minimum visible steps.
    3. When the program has exactly same number of commands as the minimum visible steps.
    4. When the program has more commands than the minimum visible steps.

    And each selectedAction should behave:

    • Add from the editor action: indicate all blocks for any of the 4 cases above.
    • Delete from the editor action: don’t indicate any blocks for the case 1, indicate up to the last non-empty command for the case 2, indicate up to the steps specified by minimum visible steps, and don’t indicate last filled in empty block for the case 3 and indicate all blocks for the case 4.
    • Command from the command panel: indicate all blocks for any of the 4 cases above.
  • Michelle D'Souza commented 2020-01-22T15:10:42.070-0500

    Given the design changes for 0.3, it doesn’t make sense to spend time on this task for 0.2.