pozil / sfdc-ui-lookup

Salesforce Lookup Component (Aura version, maintenance only, see LWC version for updates)
Apache License 2.0
102 stars 47 forks source link

add errors, listbox scrolling, and loading indicator to UI #3

Closed no-stack-dub-sack closed 5 years ago

no-stack-dub-sack commented 6 years ago

Hi @pozil, awesome component! It's a shame Lightning doesn't provide this natively, but you've done an awesome job, and I'm surprised the repo doesn't have more stars!

I've been working this into one of my developer orgs just to play around with it, and have some suggestions for minor improvements if you're willing to accept a PR. The notable changes I've made so far are:

image

Of course, this all adds a bit more code to the component, but I think it improves its overall reusabiilty and flexibility. If you're interested, I'd be happy to put this all together into a PR and send it your way for review and discussion.

Thanks again!

quin-srp commented 6 years ago

👍 on an awesome job, works great so far and we are testing this as well. Would love to see the ability to tab or use arrows to navigate through the search results. Any chance that's in the roadmap?

no-stack-dub-sack commented 6 years ago

@quin-srp are you testing it just by using it and seeing how it performs or are you also writing unit tests? If the latter, I would love it if you'd be willing to share some! I'm unsure what the best approach is in certain cases, but if there's any chance of using this in prod, I'd need to get some good coverage on it.

pozil commented 6 years ago

@no-stack-dub-sack thanks for the feedback and great suggestions. Please open a PR so that we work on including those features.

@quin-srp I suggest that you open a new issue (it's more a feature request) for shortcuts and we can continue the discussion there.

@all I agree regarding the tests. I will log a feature request for Lightning tests. We probabbly need to set up LTS and a CI environment.

no-stack-dub-sack commented 6 years ago

@pozil may take me a couple of days to pull this together, but I will follow up soon. I also recently implemented arrow key navigation in another similar component I am designing, so to @quin-srp's point, perhaps that could be next. I can open an issue for that at some point, once I work through this.