hanula / StarHub

GitHub star browser in ReactJS
http://stuff.hanula.com/starhub/
Apache License 2.0
18 stars 2 forks source link

Hide deleted / removed repositories from the UI #1

Open martin-braun opened 3 years ago

martin-braun commented 3 years ago

I just discovered StarHub and love it for its simple tile view, however it seems that it shows repositories that do not exist anymore, either from getting deleted or removed for various reasons.

Please check the starred repositories from me. You will find https://github.com/Amadiro/love-shaders (404, was deleted by the author) and https://github.com/mgp25/Instagram-API (taken down due to DMCA). GitHub does not allow to un-star these repositories in their UI, since they are not listed. So I end up with dead items cluttering the UI of StarHub which is very unsatisfying.

hanula commented 3 years ago

Glad to hear you like it.

Github doesn't seem to mark repositories as removed/hidden from the starred API service [1]. Maybe hiding or collapsing tiles would be an option. Or just

[1] response item from your bookmarks:

{
    "id": 26613413,
    "node_id": "MDEwOlJlcG9zaXRvcnkyNjYxMzQxMw==",
    "name": "love-shaders",
    "full_name": "Amadiro/love-shaders",
    "private": false,
    "owner": {
      "login": "Amadiro",
      "id": 75186,
      "node_id": "MDQ6VXNlcjc1MTg2",
      "avatar_url": "https://avatars.githubusercontent.com/u/75186?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/Amadiro",
      "html_url": "https://github.com/Amadiro",
      "followers_url": "https://api.github.com/users/Amadiro/followers",
      "following_url": "https://api.github.com/users/Amadiro/following{/other_user}",
      "gists_url": "https://api.github.com/users/Amadiro/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/Amadiro/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/Amadiro/subscriptions",
      "organizations_url": "https://api.github.com/users/Amadiro/orgs",
      "repos_url": "https://api.github.com/users/Amadiro/repos",
      "events_url": "https://api.github.com/users/Amadiro/events{/privacy}",
      "received_events_url": "https://api.github.com/users/Amadiro/received_events",
      "type": "User",
      "site_admin": false
    },
    "html_url": "https://github.com/Amadiro/love-shaders",
    "description": "a few example shaders for love2d",
    "fork": false,
    "url": "https://api.github.com/repos/Amadiro/love-shaders",
    "forks_url": "https://api.github.com/repos/Amadiro/love-shaders/forks",
    "keys_url": "https://api.github.com/repos/Amadiro/love-shaders/keys{/key_id}",
    "collaborators_url": "https://api.github.com/repos/Amadiro/love-shaders/collaborators{/collaborator}",
    "teams_url": "https://api.github.com/repos/Amadiro/love-shaders/teams",
    "hooks_url": "https://api.github.com/repos/Amadiro/love-shaders/hooks",
    "issue_events_url": "https://api.github.com/repos/Amadiro/love-shaders/issues/events{/number}",
    "events_url": "https://api.github.com/repos/Amadiro/love-shaders/events",
    "assignees_url": "https://api.github.com/repos/Amadiro/love-shaders/assignees{/user}",
    "branches_url": "https://api.github.com/repos/Amadiro/love-shaders/branches{/branch}",
    "tags_url": "https://api.github.com/repos/Amadiro/love-shaders/tags",
    "blobs_url": "https://api.github.com/repos/Amadiro/love-shaders/git/blobs{/sha}",
    "git_tags_url": "https://api.github.com/repos/Amadiro/love-shaders/git/tags{/sha}",
    "git_refs_url": "https://api.github.com/repos/Amadiro/love-shaders/git/refs{/sha}",
    "trees_url": "https://api.github.com/repos/Amadiro/love-shaders/git/trees{/sha}",
    "statuses_url": "https://api.github.com/repos/Amadiro/love-shaders/statuses/{sha}",
    "languages_url": "https://api.github.com/repos/Amadiro/love-shaders/languages",
    "stargazers_url": "https://api.github.com/repos/Amadiro/love-shaders/stargazers",
    "contributors_url": "https://api.github.com/repos/Amadiro/love-shaders/contributors",
    "subscribers_url": "https://api.github.com/repos/Amadiro/love-shaders/subscribers",
    "subscription_url": "https://api.github.com/repos/Amadiro/love-shaders/subscription",
    "commits_url": "https://api.github.com/repos/Amadiro/love-shaders/commits{/sha}",
    "git_commits_url": "https://api.github.com/repos/Amadiro/love-shaders/git/commits{/sha}",
    "comments_url": "https://api.github.com/repos/Amadiro/love-shaders/comments{/number}",
    "issue_comment_url": "https://api.github.com/repos/Amadiro/love-shaders/issues/comments{/number}",
    "contents_url": "https://api.github.com/repos/Amadiro/love-shaders/contents/{+path}",
    "compare_url": "https://api.github.com/repos/Amadiro/love-shaders/compare/{base}...{head}",
    "merges_url": "https://api.github.com/repos/Amadiro/love-shaders/merges",
    "archive_url": "https://api.github.com/repos/Amadiro/love-shaders/{archive_format}{/ref}",
    "downloads_url": "https://api.github.com/repos/Amadiro/love-shaders/downloads",
    "issues_url": "https://api.github.com/repos/Amadiro/love-shaders/issues{/number}",
    "pulls_url": "https://api.github.com/repos/Amadiro/love-shaders/pulls{/number}",
    "milestones_url": "https://api.github.com/repos/Amadiro/love-shaders/milestones{/number}",
    "notifications_url": "https://api.github.com/repos/Amadiro/love-shaders/notifications{?since,all,participating}",
    "labels_url": "https://api.github.com/repos/Amadiro/love-shaders/labels{/name}",
    "releases_url": "https://api.github.com/repos/Amadiro/love-shaders/releases{/id}",
    "deployments_url": "https://api.github.com/repos/Amadiro/love-shaders/deployments",
    "created_at": "2014-11-13T23:43:35Z",
    "updated_at": "2019-09-30T13:43:07Z",
    "pushed_at": "2014-11-14T15:54:52Z",
    "git_url": "git://github.com/Amadiro/love-shaders.git",
    "ssh_url": "git@github.com:Amadiro/love-shaders.git",
    "clone_url": "https://github.com/Amadiro/love-shaders.git",
    "svn_url": "https://github.com/Amadiro/love-shaders",
    "homepage": "",
    "size": 5248,
    "stargazers_count": 17,
    "watchers_count": 17,
    "language": "Lua",
    "has_issues": true,
    "has_projects": true,
    "has_downloads": true,
    "has_wiki": true,
    "has_pages": false,
    "forks_count": 2,
    "mirror_url": null,
    "archived": false,
    "disabled": false,
    "open_issues_count": 0,
    "license": null,
    "forks": 2,
    "open_issues": 0,
    "watchers": 17,
    "default_branch": "master"
  }
martin-braun commented 3 years ago

I see, I will get in touch with GitHub regarding this and I will un-star those repos through their API, probably. StarHub would be great, if it allows me to provide an access key and allows me to un-star the repositories right away. I know you wish to get a PR, but I'm too busy for this at the moment. Maybe it will be solved in the future, though, so I would welcome my issues stay open.