Skip to content

ui: show alert when user flag (bookmark) pressed #34920

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

Merged
merged 16 commits into from
May 9, 2025

Conversation

TheSecurityDev
Copy link
Contributor

@TheSecurityDev TheSecurityDev commented Mar 22, 2025

Description:

This PR implements showing an alert when the user flags a position on the route with the bookmark icon.

Reason for this feature:

There's currently very little feedback that occurs when the button is pressed. This makes it difficult to be sure that the button was pressed successfully.

Screenshot:

image

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

Copy link
Contributor

github-actions bot commented Mar 22, 2025

UI Preview

All Screenshots

@incognitojam
Copy link
Member

I think we might not want to change the border color for this - that has to always show the openpilot engagement state.

@TheSecurityDev
Copy link
Contributor Author

TheSecurityDev commented Mar 26, 2025

I think we might not want to change the border color for this - that has to always show the openpilot engagement state.

That's fair, it was just one of the suggestions along with the feature request, and also I thought it would make more sense to match the timeline color that shows in connect.

It would definitely make it less complex to not do that.

@BBBmau
Copy link
Contributor

BBBmau commented Mar 26, 2025

would it be fine to include the yellow border around the bookmark button itself to make it more obvious?

@TheSecurityDev
Copy link
Contributor Author

would it be fine to include the yellow border around the bookmark button itself to make it more obvious?

You mean when the button is clicked or all the time? That's a good idea though.

@MarcoTheDingo
Copy link
Contributor

I think we might not want to change the border color for this - that has to always show the openpilot engagement state.

I'd be okay with just the pop-up alert saying it's flagged, that stays for ~2 sec. I just suggested the yellow border to match connect but it's not needed.

Copy link
Contributor

github-actions bot commented Apr 6, 2025

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

@github-actions github-actions bot added the stale label Apr 6, 2025
@TheSecurityDev
Copy link
Contributor Author

Bump

@github-actions github-actions bot removed the stale label Apr 7, 2025
Copy link
Contributor

@adeebshihadeh adeebshihadeh left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@TheSecurityDev TheSecurityDev changed the title Show visual/audible feedback when user flag (bookmark) pressed Show visual feedback when user flag (bookmark) pressed Apr 15, 2025
Copy link
Contributor

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

@TheSecurityDev
Copy link
Contributor Author

TheSecurityDev commented Apr 25, 2025

Bump

@github-actions github-actions bot removed the stale label Apr 26, 2025
Copy link
Contributor

github-actions bot commented May 5, 2025

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

@github-actions github-actions bot added the stale label May 5, 2025
@TheSecurityDev TheSecurityDev changed the title Show visual feedback when user flag (bookmark) pressed Show alert when user flag (bookmark) pressed May 7, 2025
@jyoung8607 jyoung8607 changed the title Show alert when user flag (bookmark) pressed ui: show alert when user flag (bookmark) pressed May 9, 2025
@TheSecurityDev
Copy link
Contributor Author

sorry I went ahead and removed it too haha

@jyoung8607 jyoung8607 merged commit 32167e0 into commaai:master May 9, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants