Improve check for `Missing Private Key` alert

Open
#198 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by tracing when the Apple Maps block checks for saved MapKit credentials and raises the “Missing Private Key” alert, then review the linked pull request discussion. Done means the alert is limited to a clear attempt to use or confirm the block without configured credentials, rather than appearing immediately after activation.

Written by the indexing model from the issue text.

Description

help wanted
Is your enhancement related to a problem? Please describe.

When the plugin is first activated and a user gets to the Apple Maps block, the fact that the MapKit credentials are not yet saved throws a Missing Private Key alert on a rather frequent basis. This is generally not super helpful and would be worth assessing how we can handle that check a bit better. Perhaps waiting until someone clicks the Confirm MapKit Credentials button and/or any other ways to ensure we're only throwing that alert when its clear a user is trying to use the Apple Maps block but is not properly configured.

See a bit more on this from https://github.com/10up/maps-block-apple/pull/196#issuecomment-1861825855

Designs

n/a

Describe alternatives you've considered

n/a

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
JavaScript
Stars
73
Forks
4
Avg merge
33m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/maps-block-apple

All issues in 10up/maps-block-apple

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.