sindresorhus/refined-github

Add button towards flatgithub.com #4375

Milo123459 posted onGitHub

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo -->

More info: https://octo.github.com/projects/flat-data


Please fill in the issue template, a real URL is required

posted by fregante almost 4 years ago

I thought this is another random GitHub integration, and then I saw it is developed by GitHub πŸ˜… so perhaps the best way is to suggest GitHub supporting it.

For the time being though, you can use the universal integration bookmarklet:

javascript:window.open(`https://some.github.integration.website/${location.pathname.split('/').slice(1, 3).join('/')}`)

As for this issue:

javascript:window.open(`https://flatgithub.com/${location.pathname.split('/').slice(1, 3).join('/')}`)
posted by kidonng almost 4 years ago

So it seems that this is a glorified JSON/CSV viewer + separate updater part. I assume GitHub will add their own button at some point, it's rather strange that they haven't already.

We could add the feature if there's a simple indicator that the current file is compatible with Flat GitHub and can benefit from being seen there. The flat.yml check is unnecessary since the viewer works with any CSV or tabular JSON file.

Indicators could include:

  • tabular (which I think is [{}, {}, {}, …], not {})
  • larger file size (the linked files don't seem to be useful at all in the Flat Viewer)
  • ... ?

Here's another example repo https://github.com/the-pudding/data with data that looks great in the viewer: https://github.com/the-pudding/data/blob/master/census-history/full_data.csv

posted by fregante almost 4 years ago

I don’t think it's common/useful enough. Even GitHub decided against it until now

posted by fregante over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests