feat: 512/unit type filtering - #571
Conversation
|
@cade-exygy Heads up about the failing tests |
| } | ||
|
|
||
| .checkbox-group > div > label { | ||
| color: var(--seeds-color-primary-dark) !important; |
There was a problem hiding this comment.
We try to do everything we can to not use important, it can make things brittle / the order of CSS application becomes confusing. If this is the root class of the new component in seeds, if we're needing to override a style over here, we should make it a CSS variable over there :)
| }) | ||
| @IsNumberString({}, { groups: [ValidationsGroupsEnum.default] }) | ||
| [ListingFilterKeys.bedrooms]?: number; | ||
| @IsArray({ groups: [ValidationsGroupsEnum.default] }) |
There was a problem hiding this comment.
@YazeedLoonat Do you have preferences on stronger typing here?
|
I see the label so I did take a look, but not sure it's ready for review? It doesn't look like filtering is working for me locally, and if I try and open the filter modal on the listings page I get a react error. Pls let me know if I am missing something! |
Hmm, could you share the react error you are getting? I just merged latest main and ran locally and am not seeing an error |
|
Ty for the merge! Post merge I no longer get it opening the filter modal, but I get it trying to visit the partners site. The failing partners Cypress tests are caused by the same issue. |
|
A few more notes for ya, I am still curious if filtering is working for you locally though?
filtering.mov |
|
@sarahlazarich @emilyjablonski I addressed what I could on this PR with my limited capacity.
Remaining:
If possible, I think pairing to knock out these last few remaining issues would be best path forward due to my limited time. Thank you for your patience! |
|
Ty for the update! Would be interested in green tests before the next review round, happy to pair |
I am uncertain why Partners tests are failing, at first glance it doesn't seem related to my changes, but curious if it has to do with the specified version of ui-seeds? |
|
@cade-exygy Not sure w/out digging into it, but v happy to pair if it is sticky! |
|
Tests passing. Needs 2 reviews. If there any follow-ups (that are not small tweaks), I will need to hand off to another engineer, as I have no capacity for Doorway work currently. Let me know if there any questions. Thank you! cc. @sarahlazarich |
mcgarrye
left a comment
There was a problem hiding this comment.
Testing locally, finding that the filtering results are not always accurate
| --inner-button-gap: var(--seeds-s3); | ||
| padding-top: var(--seeds-s4); | ||
| padding-bottom: var(--seeds-s4); | ||
| } No newline at end of file |
There was a problem hiding this comment.
nit: missing EOF newline
Curious what your local database data looks like? On my end I saw that the seed data has lots of misalignments between # of bedrooms and Unit type label. For example a listing with 0 bedrooms is actually labeled as "1 bedroom" etc. |
Great call out cause that's exactly what it was! |
mcgarrye
left a comment
There was a problem hiding this comment.
We should definitely have a follow-up ticket to fix the seed data


feat: 512/unit type filtering
Issue Overview
https://app.zenhub.com/workspaces/bloom-5dc32d7144bd400001315dac/issues/gh/metrotranscom/doorway/512
This PR addresses #512
Description
How Can This Be Tested/Reviewed?
**- Currently the seed data on localhost has incorrect database values for bedrooms, which are different from the unit type. This causes the filtering to appear not to align properly. **
Describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration.
Checklist:
yarn generate:clientand/or created a migration if I made backend changes that require themReviewer Notes:
Steps to review a PR:
On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.