# Advent of Code, Day 6: Plant Addition Flow

- Link: https://cagrimmett.com/2019/12/07/advent-day-6/
- Published: 2019-12-07T00:15:00-05:00
- Author: Chuck Grimmett

Day 6! Short update today after tons of phone calls, move packing prep, and packing
for a trip.

#### Today’s progress

 * Removed the mocked plant data for my testing and built out the plant addition
   flow:
    - If there are no plants, hide the chart, show the form, and show a header
    - After adding a plant, hide the form, render the chart, and show the Add a 
      Plant button
    - Only add the resize listener after the chart renders

I also tried to fix a bug with the color picker where it wouldn’t close, but didn’t
solve it.

Amanda gave me another good idea today: For items like tomatoes, it would be good
if there was another bar at the end that was lighter to signify a harvesting time
window.

Today’s commits:

 1. [first use flow](https://github.com/cagrimmett/plant-gantt/commit/9cb46c788b4f14f684436b868a827cf7aacb9170)

#### Tomorrow’s goal:

 * Dig in further to tailwind for styling
 * Read the Ember Data docs
 * Use D3’s `update()` to update the chart instead of destroying and redrawing it
 * Break the components apart
