Skip to content

Conversation

@MasonMines2006
Copy link
Collaborator

@MasonMines2006 MasonMines2006 commented Nov 4, 2025

Created drop-down menu for searching for Police Parties in a certain area.

Changes:

Created component called PartyList that is a scrollable dropdown that receives a text query and searches it's inputted list of parties for that query. It then displays the first and last name of the first contact, as well as an address. Styling and data were chatted and can be changed, but core functionality was my own, so let me know if anything needs to be changed.

Closes #45

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Test Results Summary

281 tests  +86   281 ✅ +86   7s ⏱️ +3s
  1 suites ± 0     0 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 4aaebde. ± Comparison against base commit 9e07ee6.

This pull request removes 2 and adds 88 tests. Note that renamed tests count towards both.
test.modules.party.party_service_test ‑ test_create_party_invalid_contact_two
test.modules.party.party_service_test ‑ test_update_party_invalid_contact_two
test.modules.account.account_router_test ‑ test_create_account_admin
test.modules.account.account_router_test ‑ test_create_account_duplicate_email
test.modules.account.account_router_test ‑ test_create_account_invalid_email
test.modules.account.account_router_test ‑ test_create_account_invalid_pid_non_numeric
test.modules.account.account_router_test ‑ test_create_account_invalid_pid_too_long
test.modules.account.account_router_test ‑ test_create_account_invalid_pid_too_short
test.modules.account.account_router_test ‑ test_create_account_staff
test.modules.account.account_router_test ‑ test_create_account_student
test.modules.account.account_router_test ‑ test_create_account_unauthenticated
test.modules.account.account_router_test ‑ test_delete_account
…

♻️ This comment has been updated with latest results.

@MasonMines2006
Copy link
Collaborator Author

Needs styling changes that I have yet to do. I can implement it with the high-fi wire frame.

@naasanov naasanov mentioned this pull request Nov 9, 2025
Copy link
Collaborator

@naasanov naasanov left a comment

Choose a reason for hiding this comment

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

Will probably have to redo the PartyList component. And some other small changes

</div>
);
};
const PoiMarkers = ({ pois }: PoiMarkersProps) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like active poi (which I assume is the functionality for different pin on search address?) isn't implemented

position={selectedPoi.location}
onCloseClick={() => setSelectedPoi(null)}
>
<div>{selectedPoi.key}</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should show a readable short address (e.g. 123 Main Street Unit 15) instead of the key

}
type Poi = { key: string; location: google.maps.LatLngLiteral };

const EmbeddedMap = ({ parties, activeParty }: EmbeddedMapProps) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see that activeParty is of type Party. Assuming that activeParty is supposed to represent the search address, a reminder that the searched address won't always be a party. Ideally we would pass in an object with just the lat lng of the searched party and put a special pin there, zooming into that spot on the map with 0.25 mile radius. Also this object should be nullable for the state when there is no searched party.

@naasanov naasanov closed this Nov 21, 2025
@naasanov naasanov deleted the mason-party-dropdown branch December 2, 2025 18:33
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.

Police Party List Component

3 participants