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

feat: SRS-527 Map Search – Find Me #186

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

feat: SRS-527 Map Search – Find Me #186

wants to merge 1 commit into from

Conversation

nupurdixit13
Copy link
Contributor

@nupurdixit13 nupurdixit13 commented Nov 7, 2024

As a user, I want to use Find Me so that I can locate my location on the map.

Description:
When a user selects Find Me, a browser notification will appear with text “[.gov.bc.ca] wants to know your location” a user is able to block or allow selection.

When a user follows through with these actions, the map shows where a user is.

Tasks remaining: Unit tests and few changes in css(hover/onClick based on designs being prepared by Harry)


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@nupurdixit13 nupurdixit13 requested a review from a team as a code owner November 7, 2024 23:37
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that hooking into redux for a single boolean field is a massive overkill and a regular state field on the level of <MapView /> component should do the trick just fine.

You mentioned that you were getting map context errors before the redux implementation, but looking at the code just now, I'm 99% certain those were unrelated. Happy to hop on a call to debug this together


import { FindMe } from '../../components/common/icon';

export function FindMeControl() {
Copy link
Contributor

Choose a reason for hiding this comment

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

FindMeControl and FindMeButton are almost identical. To avoid code duplication, they should be combined into a single component that accepts settings for its appearance/position as props.

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