concourse / resource-types-website

Website for Concourse resource types (Beta)
https://resource-types.concourse-ci.org
Apache License 2.0
9 stars 28 forks source link

Add support for non-github repos #235

Closed YoussB closed 4 years ago

YoussB commented 4 years ago
jomsie commented 4 years ago

Hmmm, I was dreading this day would come. I haven't looked at the elm code in forever, maybe I'll take a gander this afternoon and see what's what.

UI will definitely need some changes....

Quick fix on elm side got me: Screen Shot 2020-07-14 at 3 20 19 PM

I'll take my time doing it right!

edit: https://github.com/concourse/resource-types-website/issues/236

jomsie commented 4 years ago

Quick question!

We can do this one of two ways, either detect what hosting service it uses on the backend, and the frontend can continue to be stupid (just look at resource type host for displaying stuff), or we can do it on the frontend, then we'd have some logic (and subsequently a whole new world of testing).

What do you think?

ivan-avalos commented 4 years ago

What about adding a owner option to the YAMLs as a fallback?

YoussB commented 4 years ago

@jomsie,

jomsie commented 4 years ago

@YoussB I'm cool with anything, but I just want to know where to put the logic whether or not its github.

On the front end it'd be adding some basic "does the resource type url start with https://github.com" for github, and if so, don't show stars / icon.

But we don't really have any logic like that on the front end yet iirc. Just wondering if we want to add a new field from the backend telling the front end what host service the RT is on.

YoussB commented 4 years ago

I can add a hosting field, shouldn't be that big of a deal.

jomsie commented 4 years ago

@YoussB I'm going to work on this (this pr review + ui) on freedom friday!