Closed as not planned
Labels
Description
Parent
What to build
Add property discovery and site-level Google Search Console property mapping on top of the team OAuth connection from #140. This includes property listing through the internal Search Console adapter, control-plane mapping storage, mapping APIs, permission checks, integration page controls, and safe audit entries.
Use TDD with red-green-refactor tracer bullets. Do not implement behavior before a failing behavior test exists.
Acceptance criteria
- List Search Console properties visible to the connected team account through the internal adapter.
- Store cached property metadata and site-to-property mappings in the control plane.
- Add
GET /api/user/teams/{teamID}/integrations/google-search-console/properties. - Add
GET /api/sites/{siteID}/integrations/google-search-console. - Add
PUT /api/sites/{siteID}/integrations/google-search-console/property. - Add
DELETE /api/sites/{siteID}/integrations/google-search-console/property. - Enforce team/site boundaries and admin permissions for mapping mutations.
- Let view-only users read mapping status but not map or unmap.
- Extend the integration page with property list, active site mapping, map, change, and unmap controls.
- Record
google_search_console.property_mappedandgoogle_search_console.property_unmappedwithout secrets or raw Google payloads.
TDD tracer bullets
- RED: property list returns only properties for the connected team. GREEN: adapter fake and endpoint.
- RED: mapping rejects a site outside the active team. GREEN: team/site validation.
- RED: viewer cannot map or unmap. GREEN: permission enforcement.
- RED: admin can map and then read active site mapping status. GREEN: mapping persistence.
- RED: unmap audit details include old property URI but no token/raw Google data. GREEN: audit details.
Activity