-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Feat/prsd 702 view landlord registered property details #139
Conversation
There was a problem hiding this 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 😄
src/main/kotlin/uk/gov/communities/prsdb/webapp/helpers/LocalAuthorityDataHelper.kt
Show resolved
Hide resolved
...main/kotlin/uk/gov/communities/prsdb/webapp/models/dataModels/RegisteredPropertyDataModel.kt
Show resolved
Hide resolved
<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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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
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