Commit 27d8f00
feat: non-regulated fields implementation (#5455)
* fix: fix schema formatting
* chore: add new enum types
* chore: add new Listings model fields
* chore: add new fields to the UnitGroup model
* chore: update DTO's to changes in schema
* chore: generate new swagger types
* chore: add migration for new schema updates
* fix: update depositValue field decimal range
* fix: add missing field names
* chore: add custom deposit validation decorator
* chore: add unit group rent type validation
* fix: remove unnecessary import
* chore: update sunit summary DTO to contain new fields
* chore: update service layer
* fix: remove unnecessary migration update
* fix: update db fields
* chore: update rent validation decorator
* chore: add the cocInfo to the listing DTO
* chore: regenerate backend swagger
* chore: add listing type selector
* chore: add unit form non regulated rent fields
* fix: fix invalid logic
* chore: update prop to and optional value
* chore: add rent type fields for unit group form
* chore: hide additional fields for non regulated listings
* chore: add fields for the deposit types
* chore: update labels
* chore: update community types fields
* chore: add listing ebll clearance field
* chore: update built year filed rendering logic
* chore: fix field decorator error
* fix: fix decorators import paths
* chore: update required documents form fields
* chore: update the schema to include the new required documents list table
* fix: remove unused import
* chore: update listings factory to include the new required documents field
* chore: hide non regulated switch field based on feature flag
* chore: retain the original required documents field
* Revert "chore: hide non regulated switch field based on feature flag"
This reverts commit 11f0874.
* fix: add missing fields validation
* fix: update imports
* fix: remove the package manager filed in package JSON
* fix: update the hasHudEbllClearance field
* fix: remove unused import
* chore: update the label to match the current listing type
* fix: fix the application fee full width field
* fix: hide the new deposit and rent fields for regulated units
* fix: boolean ebll formatting for form submission
* chore: add non regulated listing fields to intro and fees sections
* chore: add missing documents model column mapping
* fix: udpdate form subssion for the new required documents field
* chore: add required documents preview in the details
* fix: add feature flag based regulated fields control
* chore: update the validation decorator
* chore: update listing details page to new jest standard
* fix: fix failing backend API tests
* fix: fix backend integration tests
* fix: fix decorator logic
* fix: add unit group rent range revalidation triggering
* fix: fix unwanted initial ebll field reset
* fix: required documents preview filtering
* fix: update the developer field title switching on listing preview page
* fix: hide new fields on listing preview based on the non-regulated feature flag
* fix: fix label typo
* fix: update new required documents field label formatting
* fix: hide the new documents field group on regulated listings
* fix: remove unused import
* fix: add missing monthly rent field to database
* fix: fix unit groups integration tests
* fix: paper listing form failing tests
* chore: rename migration files
* fix: clean-up merge conflict resolve
* fix: remove unnecessary listing service code
* fix: hide the new required documents field from preview page based on feature flag
* fix: remove unused prop
* fix: update the listings factory to add new required documents only for non regulated mocks
* chore: add logic to disconnect and delete documents table entry automatically
* fix: fix Units component feature flag detection code
* chore: add integration tests for non regulated listing preview
* chore: add integration tests for the ListingIntro section
* chore: add integration tests for AdditionalDetails form section component
* chore: add deposit type default field for the listing form
* chore: add integration tests for the AdditionalFees listing form component
* chore: add integration tests for the unit group form for non-regulated listing
* fix: update the listing service to remove the documents entry after completed transaction
* fix: revert the CommunityType component logic
* chore: partially revert additional fees section logic
* fix: update the listingType field clearing to undefined
* fix: remove unused imports
* fix: revert changes for unit form
* test: re-run testing suite
* chore: remove the depositRangeMin and depositRangeMax fields
* chore: update the data formatter to handle different deposit type values
* fix: update api integration tests to new changes
* fix: fix csv export integration tests
* test: re-run testing suite
* fix: update partners site integration tests
* test: re-run testing suite
* fix: remove unnecessary console log
* fix: clear deposit on save and continue (#5598)
---------
Co-authored-by: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com>1 parent 263fff9 commit 27d8f00
48 files changed
Lines changed: 2594 additions & 906 deletions
File tree
- api
- prisma
- migrations
- 32_add_non_regulated_listings_fields
- 37_add_required_documents_list_model
- 38_add_monthly_rent_to_unit_group
- seed-helpers
- src
- decorators
- dtos
- listings
- unit-groups
- units
- services
- utilities
- test
- integration
- unit/services
- sites/partners
- __tests__
- components
- applications/sections
- listings/PaperListingForm
- sections
- pages/listings/[id]
- page_content/locale_overrides
- src
- components/listings
- PaperListingDetails/sections
- PaperListingForm
- sections
- lib/listings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
530 | 548 | | |
531 | 549 | | |
532 | 550 | | |
| |||
594 | 612 | | |
595 | 613 | | |
596 | 614 | | |
597 | | - | |
598 | | - | |
599 | 615 | | |
600 | 616 | | |
601 | 617 | | |
| |||
611 | 627 | | |
612 | 628 | | |
613 | 629 | | |
| 630 | + | |
614 | 631 | | |
615 | 632 | | |
616 | 633 | | |
| |||
644 | 661 | | |
645 | 662 | | |
646 | 663 | | |
| 664 | + | |
647 | 665 | | |
648 | 666 | | |
649 | 667 | | |
| |||
1016 | 1034 | | |
1017 | 1035 | | |
1018 | 1036 | | |
1019 | | - | |
1020 | | - | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1021 | 1040 | | |
1022 | 1041 | | |
1023 | 1042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
| |||
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
| |||
260 | 274 | | |
261 | 275 | | |
262 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
263 | 280 | | |
264 | 281 | | |
265 | 282 | | |
| |||
289 | 306 | | |
290 | 307 | | |
291 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
292 | 330 | | |
293 | 331 | | |
294 | 332 | | |
| |||
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 402 | | |
418 | 403 | | |
419 | 404 | | |
| |||
554 | 539 | | |
555 | 540 | | |
556 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
557 | 551 | | |
558 | 552 | | |
559 | 553 | | |
| |||
0 commit comments