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

Create renderer for Category #2076

Merged
merged 1 commit into from
Nov 20, 2019
Merged

Conversation

jdkoren
Copy link
Contributor

@jdkoren jdkoren commented Nov 19, 2019

Moves html-specific rendering out of the model and into a helper class. Later the helper could be changed via a factory.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Nov 19, 2019
Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

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

While you and I have discussed this in some detail, please provide context in the PR comment so that others watching the commit stream can know what's going on.

CategoryRendererHtml._();

@override
String renderCategorization(Category category) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe something more descriptive? e.g. renderOneLineSummary. Presumably the user of the class knows its something about categories that we're rendering from other context. Propagating this or another similar rename through the callers I think makes it a bit easier to read.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to renderCategoryLabel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants