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

Update document list with description #202

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

vanitabarrett
Copy link
Contributor

@vanitabarrett vanitabarrett commented Mar 8, 2018

We want to make use of the document list component on topic pages. For mainstream services, we want to show a description of the document rather than metadata.

screen shot 2018-03-08 at 11 47 03

In the future, we may also want to supply additional metadata for each document, such as organisation and collection the document belongs to. This PR refactors the component to stop it being limited to only updated date and document type

Component Guide Link: https://govuk-publishing-compon-pr-202.herokuapp.com/component-guide/document_list

@tijmenb tijmenb had a problem deploying to govuk-publishing-compon-pr-202 March 8, 2018 11:47 Failure
@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-202 March 8, 2018 11:54 Inactive
maxgds
maxgds previously requested changes Mar 8, 2018
Copy link
Contributor

@maxgds maxgds left a comment

Choose a reason for hiding this comment

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

Just spotted one necessary fix.

<%= item[:metadata][:document_type] %>
</li>
</ul>
<p class="gem-c-document-list__item-description" ><%= item[:link][:description] %></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the description is optional we should check for it before writing paragraph tags.

@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-202 March 8, 2018 14:21 Inactive
@vanitabarrett vanitabarrett dismissed maxgds’s stale review March 9, 2018 16:07

Changes made - please re-review

@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-202 March 12, 2018 11:41 Inactive
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

Copy link
Contributor

@maxgds maxgds left a comment

Choose a reason for hiding this comment

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

👍

@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-202 March 13, 2018 10:46 Inactive
We want to make use of the document list component on topic pages. For mainstream services, we want to show a description of the document rather than metadata.

In the future, we may also want to supply additional metadata for each document, such as organisation and collection the document belongs to. This PR refactors the component to stop it being limited to only updated date and document type
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.

None yet

4 participants