-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OSM users by username #438
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@LanesGood I've added the frontend to allow adding users to teams by username. |
@willemarcel this is looking great!
|
@LanesGood thanks for the feedback! I'll make the changes you suggested. I prefer to keep the modal open. |
@LanesGood I made the changes and also increased the size of the input fields. |
@willemarcel I'm still seeing the "adding" loading spinner when I find a user and hit "search" - but I haven't hit "add" yet. I'm working in Chrome. I also realized that I was expecting "fuzzy" search and the platform requires exact search. |
Thanks for debugging with me @willemarcel! As you saw on the slack, i don't see the issue when I reload... though I did see it again a little, I'm not sure how to reproduce but will let you know if it continues to pop up. I pushed up some styling changes for the form field layout: Finally, I noticed that there are no error notifications/toasts when a user adds a member twice, or when they try to add themselves. I think this is restricted at the API level, and I see no console or network errors, so I'm guessing that we should make some UI changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this works great and is a much welcomed addition! I'll defer to @kamicut on model/data review.
To confirm, does this cache searches for the OSM database? Are these usernames cached in the osm teams database and now available without hitting OSM for all OSM Teams users?
I didn't implement cache. When the user search, we try first to find the user in the OSM Teams database, if it's not found, we fetch the OSM API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a small issue where at some point the "+ Add" button "froze", but after refreshing the page I couldn't replicate the bug. I'm not sure what it could be. If we see this happen again we can open an issue.
Contributes to #97
It first searches in the osm teams database. If it doesn't find a user, then we search in OSM.
It's missing to modify the frontend yet.