poteto / ember-hypersearch

Hyperspeed real-time search with caching
MIT License
56 stars 24 forks source link

Use ember-power-select #12

Closed ghost closed 8 years ago

ghost commented 8 years ago

It will make your life way more easier if you do.

http://www.ember-power-select.com/docs/asynchronous-search

poteto commented 8 years ago

What does this issue mean? Stop working on this addon and use power-select?

ghost commented 8 years ago

No, use the UX experience from power-select and layer on the hypersearch sauce!

I maintained a custom thing like this, but the time invested in keeping the UX (opening, selecting, showing labels, etc) of the select part was a huge drag, we recently switched that to using power-select, it hugely improved my life quality.

(I'm sorry the initial issue was a bit aggressive in wording.)

poteto commented 8 years ago

Right, but this addon isn't meant to be only used as a dropdown, it is just a fast searchbox with internal cache and soon-to-be-implemented fuzzy search && is UI agnostic. The consuming application can use the results in whatever manner they like.

The current component template is probably a little misleading, I intend to eventually just turn this into a tagName: 'input' component without the results being rendered in a list

ghost commented 8 years ago

Ah ok, got it, the README.md made it look like it was going that way.

poteto commented 8 years ago

Haha np, I appreciate the suggestion :) This addon is effectively still WIP, and I should update the README with my plans for it

ghost commented 8 years ago

I might be able to contribute some of the stuff we did in the project im working on.

poteto commented 8 years ago

Thanks, that would be great! I'm basing this addon on the React one I built in my old job – http://www.homely.com.au/

Features I plan to build:

ghost commented 8 years ago

Is it supposed to just load a 'dumb' JSON data structure? Or would searching within an ember data endpoint be inside the scope of things this addon would do?

poteto commented 8 years ago

For now yeah, but I don't see why the addon couldn't have the search handled by store.query in the route, and then have the results sent back in and cached