Skip to content

Add Search Console property mapping for HitKeep sites #141

Closed as not planned

Description

@PascaleBeier

Parent

#139

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_mapped and google_search_console.property_unmapped without 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.

Blocked by

Activity

  1. added
    enhancement
    ready
    on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions