Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renames Chart list to Catalog list #788

Merged
merged 6 commits into from
Nov 7, 2018

Conversation

prydonius
Copy link
Contributor

  • renames navigation link and page heading "Charts" -> "Catalog"
  • renames ChartsList Container and components to CatalogList
  • renames /charts and /charts/:repo routes to /catalog and /catalog/:repo
  • removes ChartsListItem.scss and moves the shared CSS rules to InfoCard

fixes #761

"/charts": ChartListContainer,
"/charts/:repo": ChartListContainer,
"/catalog": CatalogListContainer,
"/catalog/:repo": CatalogListContainer,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I'm not changing the ChartView routes, but this looks a little bit confusing. One option is to not change this to /catalog/:repo and keep it as /charts/:repo, but keep /catalog, but then the container is called CatalogListContainer. I'm not sure what the best option here is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that Catalog has the same meaning than ChartList so having CatalogList is a bit redundant (and maybe misleading since it can be understood as a list of catalogs). If we use that naming I think it has more sense to have:

"/catalog": CatalogContainer,
"/charts/:repo/:id": ChartViewContainer,

In any case, I wouldn't see weird having "/catalog/:repo/:id": ChartViewContainer either since it makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will change this to CatalogContainer and the component to just Catalog

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple of comments. I would use Catalog instead of CatalogList and I would split the CSS in different files (see comments).

@@ -32,3 +32,11 @@
.ListItem__content__info_tag-2 {
background-color: #1598cb;
}

.ListItem__content__info_tag.stable {
Copy link
Contributor

@andresmgot andresmgot Nov 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to keep this tag in the specific CSS for the catalog. This card is meant to be generic so having here a class for "stable" and "incubator" is not the best. Mostly because there other components that uses the same card with other CSS classes like "provisioned" for the svc catalog cards or "failed". If we add them all here it would be difficult to maintain.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue was that it's also being imported by the ServiceCatalogList components, but maybe since they will eventually be combined we can keep it as it was.

"/charts": ChartListContainer,
"/charts/:repo": ChartListContainer,
"/catalog": CatalogListContainer,
"/catalog/:repo": CatalogListContainer,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that Catalog has the same meaning than ChartList so having CatalogList is a bit redundant (and maybe misleading since it can be understood as a list of catalogs). If we use that naming I think it has more sense to have:

"/catalog": CatalogContainer,
"/charts/:repo/:id": ChartViewContainer,

In any case, I wouldn't see weird having "/catalog/:repo/:id": ChartViewContainer either since it makes sense.

@@ -8,7 +8,7 @@ import { CardGrid } from "../Card";
import { MessageAlert } from "../ErrorAlert";
import PageHeader from "../PageHeader";
import SearchFilter from "../SearchFilter";
import ChartList from "./ChartList";
import CatalogList from "./CatalogList";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rename this to actually AppsCatalog so we do not overload Catalog and leave the door open for other kind of catalogs :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@migmartri the idea is that eventually we will include the ServiceCatalog classes in the Catalog view as well, right? In that case, it won't make sense for it to be called AppsCatalog, but I don't mind calling it that for now and then changing it when we get to that point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. Catalog is fine then. Thanks!

Adnan Abdulhussein added 4 commits November 6, 2018 15:52
- renames navigation link and page heading "Charts" -> "Catalog"
- renames ChartsList Container and components to CatalogList
- renames /charts and /charts/:repo routes to /catalog and /catalog/:repo
- removes ChartsListItem.scss and moves the shared CSS rules to InfoCard
@prydonius prydonius force-pushed the 761-charts-tog-catalog branch from ddd44d7 to ebac6da Compare November 7, 2018 00:42
@prydonius prydonius merged commit 075bbd3 into vmware-tanzu:master Nov 7, 2018
@prydonius prydonius deleted the 761-charts-tog-catalog branch November 7, 2018 01:34
@migmartri migmartri mentioned this pull request Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Charts list views to Catalog
3 participants