google / google/site-kit-wp

Prevent rendering Key Metrics if setup not completed

Open
#10,074 0 comments 0 reactions 1 assignee Claimed by @jimmymadon View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
383
Avg merge
4d 12h
Merged PRs (30d)
80

Description

## Bug Description

@aaemnnosttv: This isn't a particularly realistic scenario.

## Steps to reproduce

1. Setup and enable the KMW widget.
2. In the database, delete the `googlesitekit_key_metrics_setup_completed_by`
3. Refresh the dashboard and the key metrics still render alongside the Key metrs Setup CTA Banner.

## Screenshots

![Image](https://github.com/user-attachments/assets/694397b2-0179-4946-a10f-649146e096d3)

## Additional Context

- PHP Version:
- OS: [e.g. iOS]
- Browser: [e.g. chrome, safari]
- Plugin Version: [e.g. 22]
- Device: [e.g. iPhone6]

---------------

_Do not alter or remove anything below. The following sections will be managed by moderators only._

## Acceptance criteria

*

## Implementation Brief

* [ ]

### Test Coverage

*

## QA Brief

*

## Changelog entry

*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.