{"action":"opened","number":253,"pull_request":{"url":"https://api.github.com/repos/tropy/tropy/pulls/253","id":184296093,"html_url":"https://github.com/tropy/tropy/pull/253","diff_url":"https://github.com/tropy/tropy/pull/253.diff","patch_url":"https://github.com/tropy/tropy/pull/253.patch","issue_url":"https://api.github.com/repos/tropy/tropy/issues/253","number":253,"state":"open","locked":false,"title":"Select Component","user":{"login":"inukshuk","id":325102,"avatar_url":"https://avatars2.githubusercontent.com/u/325102?v=4","gravatar_id":"","url":"https://api.github.com/users/inukshuk","html_url":"https://github.com/inukshuk","followers_url":"https://api.github.com/users/inukshuk/followers","following_url":"https://api.github.com/users/inukshuk/following{/other_user}","gists_url":"https://api.github.com/users/inukshuk/gists{/gist_id}","starred_url":"https://api.github.com/users/inukshuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inukshuk/subscriptions","organizations_url":"https://api.github.com/users/inukshuk/orgs","repos_url":"https://api.github.com/users/inukshuk/repos","events_url":"https://api.github.com/users/inukshuk/events{/privacy}","received_events_url":"https://api.github.com/users/inukshuk/received_events","type":"User","site_admin":false},"body":"**Requirements**\r\n- [x] Not based on `<option>` elements (because we want to quickly add/remove selects with several thousand items)\r\n- [ ] Input is an (ordered) array of objects with an `id` (and maybe `name` or `title` but display must be configurable); we may want to add support for passing-in a query function later; it should also support an array of primitives (strings or numbers) so that we can use it as a drop in replacement for normal `<select>`.\r\n- [x] The selected item should be passed in as an `id` via props.\r\n- [ ] The `onChange`-type callbacks should return the full selected object from the source array.\r\n- [ ] The select must be able to cope gracefully with the situation that the selected item is missing from the source array (e.g., an item uses a template which is not available in the ontology db).\r\n- [ ] Optional `isRequired` and `placeholder` props (depending on whether or not the select can be empty).\r\n- [ ] Item display (of the selected item and in the drop down menu) should be a sane default but must be completely configurable (i.e., pass component or rendering function as prop).\r\n- [x] Type-ahead / search (when input is an array): we need to be able to define which fields of the passed-in objects should be matched.\r\n- [x] Keyboard support\r\n- [ ] Callback for re-selecting the selected item (we can use `onChange` with an extra argument)\r\n- [ ] Programmatically control 'focus' state (via props)\r\n- [x] Flexible positioning (to use for managing columns in the item table) (probably using React 16 Portal)\r\n- [ ] Should be easy to create a static variant (no popup)\r\n\r\n**TBD**\r\n- [ ] A multi-select variant\r\n- [ ] The multi-select variant must preserve the order of selections\r\n- [ ] In the multi-select variant we need to be able to change the order of the current selection\r\n\r\nCloses #31 ","created_at":"2018-04-26T10:34:05Z","updated_at":"2018-04-26T10:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tropy/tropy/pulls/253/commits","review_comments_url":"https://api.github.com/repos/tropy/tropy/pulls/253/comments","review_comment_url":"https://api.github.com/repos/tropy/tropy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tropy/tropy/issues/253/comments","statuses_url":"https://api.github.com/repos/tropy/tropy/statuses/3a10f5e35de8a2f3de8205607911dcb94f0e7c6c","head":{"label":"tropy:feature/select","ref":"feature/select","sha":"3a10f5e35de8a2f3de8205607911dcb94f0e7c6c","user":{"login":"tropy","id":12413946,"avatar_url":"https://avatars1.githubusercontent.com/u/12413946?v=4","gravatar_id":"","url":"https://api.github.com/users/tropy","html_url":"https://github.com/tropy","followers_url":"https://api.github.com/users/tropy/followers","following_url":"https://api.github.com/users/tropy/following{/other_user}","gists_url":"https://api.github.com/users/tropy/gists{/gist_id}","starred_url":"https://api.github.com/users/tropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tropy/subscriptions","organizations_url":"https://api.github.com/users/tropy/orgs","repos_url":"https://api.github.com/users/tropy/repos","events_url":"https://api.github.com/users/tropy/events{/privacy}","received_events_url":"https://api.github.com/users/tropy/received_events","type":"Organization","site_admin":false},"repo":{"id":45496875,"name":"tropy","full_name":"tropy/tropy","owner":{"login":"tropy","id":12413946,"avatar_url":"https://avatars1.githubusercontent.com/u/12413946?v=4","gravatar_id":"","url":"https://api.github.com/users/tropy","html_url":"https://github.com/tropy","followers_url":"https://api.github.com/users/tropy/followers","following_url":"https://api.github.com/users/tropy/following{/other_user}","gists_url":"https://api.github.com/users/tropy/gists{/gist_id}","starred_url":"https://api.github.com/users/tropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tropy/subscriptions","organizations_url":"https://api.github.com/users/tropy/orgs","repos_url":"https://api.github.com/users/tropy/repos","events_url":"https://api.github.com/users/tropy/events{/privacy}","received_events_url":"https://api.github.com/users/tropy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tropy/tropy","description":"Research photo management","fork":false,"url":"https://api.github.com/repos/tropy/tropy","forks_url":"https://api.github.com/repos/tropy/tropy/forks","keys_url":"https://api.github.com/repos/tropy/tropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tropy/tropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tropy/tropy/teams","hooks_url":"https://api.github.com/repos/tropy/tropy/hooks","issue_events_url":"https://api.github.com/repos/tropy/tropy/issues/events{/number}","events_url":"https://api.github.com/repos/tropy/tropy/events","assignees_url":"https://api.github.com/repos/tropy/tropy/assignees{/user}","branches_url":"https://api.github.com/repos/tropy/tropy/branches{/branch}","tags_url":"https://api.github.com/repos/tropy/tropy/tags","blobs_url":"https://api.github.com/repos/tropy/tropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tropy/tropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tropy/tropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/tropy/tropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tropy/tropy/statuses/{sha}","languages_url":"https://api.github.com/repos/tropy/tropy/languages","stargazers_url":"https://api.github.com/repos/tropy/tropy/stargazers","contributors_url":"https://api.github.com/repos/tropy/tropy/contributors","subscribers_url":"https://api.github.com/repos/tropy/tropy/subscribers","subscription_url":"https://api.github.com/repos/tropy/tropy/subscription","commits_url":"https://api.github.com/repos/tropy/tropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/tropy/tropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/tropy/tropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/tropy/tropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/tropy/tropy/contents/{+path}","compare_url":"https://api.github.com/repos/tropy/tropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tropy/tropy/merges","archive_url":"https://api.github.com/repos/tropy/tropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tropy/tropy/downloads","issues_url":"https://api.github.com/repos/tropy/tropy/issues{/number}","pulls_url":"https://api.github.com/repos/tropy/tropy/pulls{/number}","milestones_url":"https://api.github.com/repos/tropy/tropy/milestones{/number}","notifications_url":"https://api.github.com/repos/tropy/tropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tropy/tropy/labels{/name}","releases_url":"https://api.github.com/repos/tropy/tropy/releases{/id}","deployments_url":"https://api.github.com/repos/tropy/tropy/deployments","created_at":"2015-11-03T21:29:09Z","updated_at":"2018-04-26T07:50:34Z","pushed_at":"2018-04-26T10:30:45Z","git_url":"git://github.com/tropy/tropy.git","ssh_url":"git@github.com:tropy/tropy.git","clone_url":"https://github.com/tropy/tropy.git","svn_url":"https://github.com/tropy/tropy","homepage":"https://tropy.org","size":64107,"stargazers_count":131,"watchers_count":131,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":17,"open_issues":97,"watchers":131,"default_branch":"master"}},"base":{"label":"tropy:master","ref":"master","sha":"cb5635aa4f2b23b899468f70eb241f70adfbcb91","user":{"login":"tropy","id":12413946,"avatar_url":"https://avatars1.githubusercontent.com/u/12413946?v=4","gravatar_id":"","url":"https://api.github.com/users/tropy","html_url":"https://github.com/tropy","followers_url":"https://api.github.com/users/tropy/followers","following_url":"https://api.github.com/users/tropy/following{/other_user}","gists_url":"https://api.github.com/users/tropy/gists{/gist_id}","starred_url":"https://api.github.com/users/tropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tropy/subscriptions","organizations_url":"https://api.github.com/users/tropy/orgs","repos_url":"https://api.github.com/users/tropy/repos","events_url":"https://api.github.com/users/tropy/events{/privacy}","received_events_url":"https://api.github.com/users/tropy/received_events","type":"Organization","site_admin":false},"repo":{"id":45496875,"name":"tropy","full_name":"tropy/tropy","owner":{"login":"tropy","id":12413946,"avatar_url":"https://avatars1.githubusercontent.com/u/12413946?v=4","gravatar_id":"","url":"https://api.github.com/users/tropy","html_url":"https://github.com/tropy","followers_url":"https://api.github.com/users/tropy/followers","following_url":"https://api.github.com/users/tropy/following{/other_user}","gists_url":"https://api.github.com/users/tropy/gists{/gist_id}","starred_url":"https://api.github.com/users/tropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tropy/subscriptions","organizations_url":"https://api.github.com/users/tropy/orgs","repos_url":"https://api.github.com/users/tropy/repos","events_url":"https://api.github.com/users/tropy/events{/privacy}","received_events_url":"https://api.github.com/users/tropy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tropy/tropy","description":"Research photo management","fork":false,"url":"https://api.github.com/repos/tropy/tropy","forks_url":"https://api.github.com/repos/tropy/tropy/forks","keys_url":"https://api.github.com/repos/tropy/tropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tropy/tropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tropy/tropy/teams","hooks_url":"https://api.github.com/repos/tropy/tropy/hooks","issue_events_url":"https://api.github.com/repos/tropy/tropy/issues/events{/number}","events_url":"https://api.github.com/repos/tropy/tropy/events","assignees_url":"https://api.github.com/repos/tropy/tropy/assignees{/user}","branches_url":"https://api.github.com/repos/tropy/tropy/branches{/branch}","tags_url":"https://api.github.com/repos/tropy/tropy/tags","blobs_url":"https://api.github.com/repos/tropy/tropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tropy/tropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tropy/tropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/tropy/tropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tropy/tropy/statuses/{sha}","languages_url":"https://api.github.com/repos/tropy/tropy/languages","stargazers_url":"https://api.github.com/repos/tropy/tropy/stargazers","contributors_url":"https://api.github.com/repos/tropy/tropy/contributors","subscribers_url":"https://api.github.com/repos/tropy/tropy/subscribers","subscription_url":"https://api.github.com/repos/tropy/tropy/subscription","commits_url":"https://api.github.com/repos/tropy/tropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/tropy/tropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/tropy/tropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/tropy/tropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/tropy/tropy/contents/{+path}","compare_url":"https://api.github.com/repos/tropy/tropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tropy/tropy/merges","archive_url":"https://api.github.com/repos/tropy/tropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tropy/tropy/downloads","issues_url":"https://api.github.com/repos/tropy/tropy/issues{/number}","pulls_url":"https://api.github.com/repos/tropy/tropy/pulls{/number}","milestones_url":"https://api.github.com/repos/tropy/tropy/milestones{/number}","notifications_url":"https://api.github.com/repos/tropy/tropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tropy/tropy/labels{/name}","releases_url":"https://api.github.com/repos/tropy/tropy/releases{/id}","deployments_url":"https://api.github.com/repos/tropy/tropy/deployments","created_at":"2015-11-03T21:29:09Z","updated_at":"2018-04-26T07:50:34Z","pushed_at":"2018-04-26T10:30:45Z","git_url":"git://github.com/tropy/tropy.git","ssh_url":"git@github.com:tropy/tropy.git","clone_url":"https://github.com/tropy/tropy.git","svn_url":"https://github.com/tropy/tropy","homepage":"https://tropy.org","size":64107,"stargazers_count":131,"watchers_count":131,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":17,"open_issues":97,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tropy/tropy/pulls/253"},"html":{"href":"https://github.com/tropy/tropy/pull/253"},"issue":{"href":"https://api.github.com/repos/tropy/tropy/issues/253"},"comments":{"href":"https://api.github.com/repos/tropy/tropy/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/tropy/tropy/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/tropy/tropy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tropy/tropy/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/tropy/tropy/statuses/3a10f5e35de8a2f3de8205607911dcb94f0e7c6c"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":24,"deletions":17,"changed_files":2}}
{"actor":{"display_login":"inukshuk"}}