• Buck Doyle's avatar
    UI: Migrate to Storybook (#6507) · 9f86f5a1
    Buck Doyle authored
    I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future.
    
    My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary:
    • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them:
      ◦ charts were rendering with zero width
      ◦ the JSON viewer was rendering with empty content
    • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes:
      ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/control...
    9f86f5a1