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

Add structures to soil apps #1943

Merged
merged 46 commits into from
Oct 31, 2024
Merged

Add structures to soil apps #1943

merged 46 commits into from
Oct 31, 2024

Conversation

trslater
Copy link
Collaborator

  • Move structure type options to module constant for use by other modules
  • Rename NOI structure label map to make general for all soil
  • Add new structures question to DB
  • Git add new structure question to all services and DTO's
  • Add new structure question to UI
  • Show/hide old questions based on answer to new structure question
  • Add all new questions to DB
  • Add new conditional structure questions to all services and DTO's
  • Add missed DTO field
  • Add structures to all DTO's and services
  • Expose structure form type for use by other modules
  • Add structures table and conditional questions to UI
  • Remove unused imports
  • Add is new structure confirmation dialog
  • Remove conditional app type text
  • Fix NOI structure dialog return type issue
  • Add wanting when changing structure type on mobile
  • Implement mobile UI for soil apps
  • Update POFO/ROSO with changes from PFRS
  • Add building plans
  • Fix clearing file uploads
  • Update POFO/ROSO styles
  • Fix structure add button layout
  • Fix POFO/ROSO wording
  • Add updates to portal view
  • Fix missing saved submission fields
  • Fix submission validation
  • Fix structures type in DTO
  • Add app soil updates to app info
  • Update public view with soil changes
  • Fix app info building plans
  • Fix building plans being deleting for wrong action
  • Fix PFRS validation
  • Fix POFO reduce impact visibility
  • Fix ROSO sctructure table layout
  • Display POFO reduce impact field
  • Pipe new structures data to PDF templates
  • Add structure changes to PDF's
  • Fix m2 -> m^2

Not needed, since there are separate components for each type
NOI structure dialog was returning an incorrectly formed ProposedStructure, but this was being masked by the fact that the confirm handler was accepting type 'any'.
structure.type === 'Residential - Principal Residence' ||
structure.type === 'Residential - Additional Residence' ||
structure.type === 'Residential - Accessory Structure',
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't be better to compare this to an Enum like it's used here:
portal-frontend\src\app\features\notice-of-intents\edit-submission\additional-information\additional-information.component.ts
export enum STRUCTURE_TYPES {
FARM_STRUCTURE = 'Farm Structure',
PRINCIPAL_RESIDENCE = 'Residential - Principal Residence',
ADDITIONAL_RESIDENCE = 'Residential - Additional Residence',
ACCESSORY_STRUCTURE = 'Residential - Accessory Structure',
OTHER_STRUCTURE = 'Other Structure',
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree it would be better, but I did it this way, because a) how NOI's does it and b) there is no enum for services or an obvious place to put it. I guess I could create an enum for services. I'll just have to figure out a place that makes sense, and should probably apply to NOI's as well.

@fbarreta
Copy link
Collaborator

Besides the comment I left (which I believe is optional), overall looks great.
I couldn't find anything that blocks the merge:

  • Everything implements the structure like on NOI
  • All the bugfixes are carried and implemented
    Just let me know what you think about the comment, and I'll just drop the approval.

(Q&Aing this, is the bigger challenge .... hahah)

Copy link
Collaborator

@fbarreta fbarreta left a comment

Choose a reason for hiding this comment

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

G2G !!!

@trslater trslater merged commit d298e4c into develop Oct 31, 2024
5 checks passed
@trslater trslater deleted the feature/ALCS-1156 branch October 31, 2024 21:04
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