BI-1067 Add searched building to building group
Created by: ay701
Add searched building to building group
Goals: (in building group view)
- User is able to search a building
- User is able to add searched building into group
- Show error message when a building is added again
- Show success message when a new building is added
- Total building number should change when new building is added
- Show error message when building search is not working on backend
Test:
- In
dashboardfolder, pull from this branch - In
buildingServicefolder, pull from master branch - Make sure both
dashboardandbuildingServiceservices are running - Go to any building group page, for example: BuldingGroup42
- Click on Buildings Overview tab
- Click on Edit button from top & right of the page
- Input a random address, choose from dropdown
- See if +Add buttons shows up
- Click on +Add button, see if building is added to the group
- Now search for the same address, see if error message shows up
- Check if the building search is mobile friendly
Issues:
- BI-1066 Building search shown on building group page
- BD-1067 Building search result can be added to the group
Notes:
- This PR uses dev building service endpoint to search/create new building
- Newly added building address won't show in the result, but the row will show
- We will create a separate issue to resolve new address not showing in group issue
PNA Report Generation based on BIS data
Goal:
- Generate the report based on the BIS data.
- Update the styling for the review page.
Test:
- Make sure that you have pulled from the Bloclink.
- From BIS Initiate a survey for the valid building(which exists in
mapbox_buildingrelation).
**Examples:**
- 222 East 111th Street, New York, New York 10029, United States
building_ID:37
- 304 West 128th Street, New York, New York 10027, United States
building_ID:44
- 1717 Bay Ridge Avenue, Brooklyn, New York 11204, United States
building_ID: 280074
- 101 West 60th Street, New York, New York 10023, United States
building_ID: 168
- Submit the survey.
- In Dashboard go to the questionnaire using the building ID.
- Try to hit the
submit. It should show you an alert. - Fill in the required fields and click on
continue. - Click on the
Calculate. - Click on the
Download Report. The report should be downloaded.
Issues: