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

Pre-show Release #285

Merged
merged 60 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
6b56f5f
adjust how data comes through
King-Mob Nov 8, 2023
ebbbcc3
Merge pull request #259 from DigitalCommons/lx-59-move-boundary-servi…
King-Mob Nov 9, 2023
976c76b
first commit, button component and search request
ms0ur1s Nov 9, 2023
ab38898
Merge branch 'development' into 256-implement-fe-functions-for-landre…
ms0ur1s Nov 9, 2023
712b40d
tidied up basic call
ms0ur1s Nov 9, 2023
265f402
hooked related products up to redux and returning results
ms0ur1s Nov 10, 2023
55a6848
results on related properties panel
ms0ur1s Nov 10, 2023
7519398
highlighted ownership icon
ms0ur1s Nov 15, 2023
954a887
Display unique values
ms0ur1s Nov 15, 2023
fefddbe
basic pagination
ms0ur1s Nov 15, 2023
9df58d5
updated pagination prior to componantisation
ms0ur1s Nov 16, 2023
f93c8af
property search button opens ownership search tray
ms0ur1s Nov 16, 2023
b8e1207
basic result styling
ms0ur1s Nov 17, 2023
956f892
cordinates for selected search property added to state, but no poly s…
ms0ur1s Nov 21, 2023
eefa0c5
propertySection styling and left pane responsiveness
ms0ur1s Nov 21, 2023
b7fb053
left panel styling update and CLEAR_PROPERTIES
ms0ur1s Nov 21, 2023
ebad07f
reverse coordinates
ms0ur1s Nov 21, 2023
f718a48
Thank John the Poly is appearing :)
ms0ur1s Nov 21, 2023
0c1b3a1
setLngLat added RelatedProperties click hander
ms0ur1s Nov 21, 2023
535961d
pagination and property pane update
ms0ur1s Nov 22, 2023
b2fe4da
added selected property and style
ms0ur1s Nov 22, 2023
3b0aae7
loading added to the search panel
ms0ur1s Nov 22, 2023
35d3085
Merge pull request #260 from DigitalCommons/256-implement-fe-function…
King-Mob Nov 23, 2023
bb9c16f
fix coordinate switching bug
King-Mob Nov 23, 2023
59ac543
icon active visible if ownership active and zoomed in
ms0ur1s Nov 24, 2023
5df8a90
proprietorName added to state, for relationship to clear properties
ms0ur1s Nov 24, 2023
542f6cf
removed unnecessary conditions
ms0ur1s Nov 24, 2023
cd1b2f3
name updated to Property Boundaries
ms0ur1s Nov 24, 2023
cb297ed
Merge pull request #268 from DigitalCommons/261-backsearch-only-show-…
King-Mob Nov 27, 2023
ff53a95
Merge pull request #269 from DigitalCommons/266-backsearch-update-the…
King-Mob Nov 27, 2023
958ca21
add terms of use to sign up
King-Mob Nov 28, 2023
7533756
Merge pull request #271 from DigitalCommons/270-terms-of-use
King-Mob Nov 28, 2023
35bce98
add the license
King-Mob Nov 28, 2023
d39bb77
add license info the related properties
King-Mob Nov 28, 2023
89c415a
Merge pull request #272 from DigitalCommons/250-license-on-ownership-…
King-Mob Nov 28, 2023
e9ec937
Merge pull request #273 from DigitalCommons/250-add-license-to-info-p…
King-Mob Nov 28, 2023
99a9af8
add a space
King-Mob Nov 29, 2023
98046bc
add icon and functionality
King-Mob Nov 29, 2023
6c628d7
Merge pull request #274 from DigitalCommons/262-go-to-property-icon
King-Mob Nov 29, 2023
7b1caa6
Updates PropertySearchPoly to Layer and Feature
ms0ur1s Nov 27, 2023
4866a9b
property object added to state on selected property click
ms0ur1s Nov 27, 2023
54d0d21
click event added to poly
ms0ur1s Nov 27, 2023
531ab60
selectProperty opens in info panel
ms0ur1s Nov 27, 2023
d4ef63e
multiple properties selectable, selected properties display in info p…
ms0ur1s Nov 28, 2023
3fae9b6
additions to previous commit
ms0ur1s Nov 28, 2023
cc1ccbc
remove related cleared property from selectedProperties
ms0ur1s Nov 28, 2023
00a9aea
add multiple property selection
King-Mob Nov 29, 2023
2442e78
remove console logs
King-Mob Nov 29, 2023
bd94515
remove comment
King-Mob Nov 29, 2023
5c07a1a
move the arrow to just turning it on
King-Mob Nov 29, 2023
581e9c0
Merge pull request #275 from DigitalCommons/263-backsearch-ownership-…
King-Mob Nov 29, 2023
69ae95d
add clear all button
King-Mob Nov 29, 2023
27ffc10
Merge pull request #276 from DigitalCommons/265-clear-all-info-panel
King-Mob Nov 29, 2023
e13384d
add the new svg icons
King-Mob Nov 30, 2023
8932c29
Merge pull request #281 from DigitalCommons/262-icons
King-Mob Nov 30, 2023
110150b
add select all and clear all
King-Mob Nov 29, 2023
895d02f
comment out select all
King-Mob Nov 30, 2023
076101a
Merge pull request #282 from DigitalCommons/264-select-all-clear-all-…
King-Mob Nov 30, 2023
aaab81f
add a check on ownership
King-Mob Nov 30, 2023
a271fce
Merge pull request #283 from DigitalCommons/277-hide-backsearch-where…
King-Mob Nov 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 98 additions & 6 deletions src/actions/LandOwnershipActions.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,114 @@
import { getRequest } from "./RequestActions";

export const highlightProperty = (property) => {
return dispatch => {
return (dispatch) => {
dispatch({
type: "HIGHLIGHT_PROPERTY",
payload: property
payload: property,
});
dispatch(setActiveProperty(property.poly_id));
};
};

export const clearAllHighlightedProperties = () => {
return (dispatch) => {
dispatch({
type: "CLEAR_ALL_HIGHLIGHTED_PROPERTIES"
})
}
}

export const setActiveProperty = (propertyId) => {
return dispatch => {
return (dispatch) => {
dispatch({
type: "SET_ACTIVE_PROPERTY",
payload: propertyId
payload: propertyId,
});
dispatch({
type: 'SET_ACTIVE',
payload: 'Land Information'
type: "SET_ACTIVE",
payload: "Land Information",
});
};
};

export const getRelatedProperties = (proprietorName) => {
return async (dispatch) => {
try {
dispatch({ type: "FETCH_PROPERTIES_LOADING" });

const relatedProperties = await dispatch(
getRequest(`/api/search?proprietorName=${proprietorName}`)
);

if (relatedProperties.length > 0) {
dispatch({
type: "FETCH_PROPERTIES_SUCCESS",
payload: relatedProperties,
});
} else {
dispatch({
type: "FETCH_PROPERTIES_FAILURE",
payload: "No properties found",
});
}
} catch (error) {
dispatch({
type: "FETCH_PROPERTIES_FAILURE",
payload: "Error fetching properties",
});
}
};
};

export const setProprietorName = (proprietorName) => {
return {
type: "SET_PROPRIETOR_NAME",
payload: proprietorName,
}
};

export const setActivePropertyId = (propertyId) => { }

export const setSelectedProperty = (property) => {
return (dispatch) => {
dispatch({
type: "SET_SELECTED_PROPERTY",
payload: property,
});
};
};

export const clearSelectedProperty = (property) => {
return (dispatch) => {
dispatch({
type: "CLEAR_SELECTED_PROPERTY",
payload: property
})
}
}

export const setMultipleSelectedProperties = (properties) => {
return (dispatch) => {
dispatch({
type: "SET_MULTIPLE_SELECTED_PROPERTIES",
payload: properties,
});
};
}

export const clearAllSelectedProperties = () => {
return (dispatch) => {
dispatch({
type: "CLEAR_ALL_SELECTED_PROPERTIES"
})
}
}

export const showPropertyPolygon = (propertyCoordinates) => {
return (dispatch) => {
dispatch({
type: "SHOW_PROPERTY_POLYGON",
payload: propertyCoordinates,
});
};
};
Loading