ember-light-table icon indicating copy to clipboard operation
ember-light-table copied to clipboard

Create a base ember-twiddle for showcasing issues

Open buschtoens opened this issue 8 years ago • 4 comments

As suggested in https://github.com/offirgolan/ember-light-table/pull/441#discussion_r123591773

An official base ember-twiddle would be super useful to quickly prototype new ideas or demonstrate bugs / issues.

buschtoens avatar Jun 22 '17 20:06 buschtoens

Should we include any other addons by default? Good candidates:

  • ember-concurrency
  • ember-cli-mirage (what about pre-configuring it?)
  • ember-one-way-controls
  • ember-truth-helpers
  • ember-composable-helpers

Should we provide multiple routes with different base setups (similar to the dummy app) or only the one "classic" minimal example?

What about styling?

Should we include instructions in the twiddle itself? If so, which?

buschtoens avatar Jun 22 '17 20:06 buschtoens

I think a good setup would just be a twiddle with ember-light-table with a basic table and simple data. We shouldnt depend on all those extra dependencies since they could potentially introduce some complications in the future (prolly not but hey... you never know). The more vanilla the easier it will be for us to debug 😄

offirgolan avatar Jun 27 '17 06:06 offirgolan

I think a good setup would just be a twiddle with ember-light-table with a basic table and simple data.

By "simple data" you probably mean static fixtures (const rows = [ ... ]) and not a pre-configured Mirage?

I believe including Mirage is a good idea, because users tend to encounter problems while actually interacting with an API / Ember Data with #423 and #272 being examples. Setting up Mirage in Ember Twiddle is a pain we can alleviate. Here's the Mirage boilerplate Twiddle.

I understand that you want to keep the base Twiddle as slim as possible, so a second Twiddle with Mirage pre-installed could be a nice addition.

buschtoens avatar Jun 27 '17 07:06 buschtoens

Very true! ELT + Mirage twiddle sounds good to me.

offirgolan avatar Jun 27 '17 07:06 offirgolan