chaoss / grimoirelab-bestiary

GNU General Public License v3.0
3 stars 9 forks source link

[ui] Add GitHub repositories to projects #95

Closed evamillan closed 2 years ago

evamillan commented 2 years ago

This PR adds a view at /datasets with a form to get the GitHub repositories from a given owner. On submit, it calls the githubOwnerRepos mutation and redirects to /datasources/github/id using the resulting job ID. The job query is then performed every second until it returns the finished status. Users can select commits, PRs and issues for each repository and add them to a project by selecting it from a dropdown menu or dragging and dropping them from the table to the sidebar.

Note: the PR needs the GraphQL mutations from #93 in order to work properly.

evamillan commented 2 years ago

I've updated the PR with the changes. I also added examples of the table on Storybook for when it's loading or there are no results.

jjmerchante commented 2 years ago

LGTM