{"action":"created","issue":{"url":"https://api.github.com/repos/directus/app/issues/366","repository_url":"https://api.github.com/repos/directus/app","labels_url":"https://api.github.com/repos/directus/app/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/directus/app/issues/366/comments","events_url":"https://api.github.com/repos/directus/app/issues/366/events","html_url":"https://github.com/directus/app/issues/366","id":321746846,"node_id":"MDU6SXNzdWUzMjE3NDY4NDY=","number":366,"title":"Allow for Item Reordering on Listing Page","user":{"login":"benhaynes","id":522079,"node_id":"MDQ6VXNlcjUyMjA3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/522079?v=4","gravatar_id":"","url":"https://api.github.com/users/benhaynes","html_url":"https://github.com/benhaynes","followers_url":"https://api.github.com/users/benhaynes/followers","following_url":"https://api.github.com/users/benhaynes/following{/other_user}","gists_url":"https://api.github.com/users/benhaynes/gists{/gist_id}","starred_url":"https://api.github.com/users/benhaynes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhaynes/subscriptions","organizations_url":"https://api.github.com/users/benhaynes/orgs","repos_url":"https://api.github.com/users/benhaynes/repos","events_url":"https://api.github.com/users/benhaynes/events{/privacy}","received_events_url":"https://api.github.com/users/benhaynes/received_events","type":"User","site_admin":false},"labels":[{"id":839560195,"node_id":"MDU6TGFiZWw4Mzk1NjAxOTU=","url":"https://api.github.com/repos/directus/app/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":839560196,"node_id":"MDU6TGFiZWw4Mzk1NjAxOTY=","url":"https://api.github.com/repos/directus/app/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-09T22:23:50Z","updated_at":"2018-07-07T18:40:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If there is a field with a `sort` interface, then the Item Listing page should show handles and allow for drag and drop reordering.\r\n\r\nDragging is enabled by sorting the items by the SORT field/ASC (so you always start with the existing saved order).\r\n\r\nThere should be a drag handle (like 6.x) that can be used.\r\n\r\nNew items should always go to the END of the list (NULL should sort after values).\r\n\r\nNEED SOLUTION: If the page is only showing partial data (lazy-load) we need to figure out how to send/update order. I do **not** want to do any fancy decimal ordering – but we could do something like:\r\n\r\n```\r\nitem 1 (visible)\r\n<----- NEW POSITION\r\nitem 2 (visible)\r\nitem 3 (visible) *DRAG ITEM*\r\nitem 4 (visible)\r\nitem 5 (not loaded yet)\r\nitem 6 (not loaded yet)\r\nitem 7 (not loaded yet)\r\nitem 8 (not loaded yet)\r\nitem 9 (not loaded yet)\r\n```\r\n\r\nItem 3 gets moved, but we only have items 1-4 visible (lazy-loaded on page). We could add sort values for 1-4 (Sort: `1,3,4,2`) and then just increment sort values for any NON-loaded items (Sort: `5,6,7,8,9...`). These would be based on the user's column sort preferences on the Listing Page.\r\n\r\nI'm tired. Does this make any sense?"},"comment":{"url":"https://api.github.com/repos/directus/app/issues/comments/403235392","html_url":"https://github.com/directus/app/issues/366#issuecomment-403235392","issue_url":"https://api.github.com/repos/directus/app/issues/366","id":403235392,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzIzNTM5Mg==","user":{"login":"benhaynes","id":522079,"node_id":"MDQ6VXNlcjUyMjA3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/522079?v=4","gravatar_id":"","url":"https://api.github.com/users/benhaynes","html_url":"https://github.com/benhaynes","followers_url":"https://api.github.com/users/benhaynes/followers","following_url":"https://api.github.com/users/benhaynes/following{/other_user}","gists_url":"https://api.github.com/users/benhaynes/gists{/gist_id}","starred_url":"https://api.github.com/users/benhaynes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhaynes/subscriptions","organizations_url":"https://api.github.com/users/benhaynes/orgs","repos_url":"https://api.github.com/users/benhaynes/repos","events_url":"https://api.github.com/users/benhaynes/events{/privacy}","received_events_url":"https://api.github.com/users/benhaynes/received_events","type":"User","site_admin":false},"created_at":"2018-07-07T18:40:38Z","updated_at":"2018-07-07T18:40:38Z","author_association":"CONTRIBUTOR","body":"MVP: If no preferences, the extension should only show the first 4 fields (but not the primary key field)"}}
{"actor":{"display_login":"benhaynes"}}