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

Feat/prsd 702 view landlord registered property details #139

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Kiran-R-K
Copy link
Contributor

@Kiran-R-K Kiran-R-K commented Jan 15, 2025

Added Registered Properties table to Landlord Record page in the Registered properties tab

Created a query to the Landlord's properties details from the db (this has been manually tested)

Created a method to filter and format the returned data for it to be rendered in the view (I've added unit tests)

Added and populated the table in landlordDetailsView.html

image

image

Considerations

There are two things that need fixing for this branch but thought it was worth raising the PR in the mean time.

  • There aren't any integration tests I plan to add some

  • The column width in the table is not fixed and is changing dependant on values - Being addressed in comments

Copy link
Contributor

@isobel-softwire isobel-softwire left a comment

Choose a reason for hiding this comment

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

This is coming together well - left a few thoughts 😄

<td class="govuk-table__cell govuk-!-width-one-quarter" th:text="${property.localAuthorityName}"></td>
<td class="govuk-table__cell govuk-!-width-one-quarter" th:text="${property.propertyLicence}"></td>
<td class="govuk-table__cell govuk-!-width-one-quarter" th:text="#{${property.isTenanted}}"></td>
</tr>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know if fixed-length columns are the desired behaviour?

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 Q, it looked that way to me in the design but I might be interpreting it wrong, I'll check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had a chat with Sam H about this, we agreed that the columns should have a fixed width.
We also discussed adding spacing between the columns if possible within GDS - I'll look into that now

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.

2 participants