Repository navigation
Description
Goal
Give site viewers one Analytics → Search Console workspace. Keep connection administration separate from reporting. Reuse the existing integration and report components; deliver reviewable slices.
Today setup lives in an integration page and reporting in a large dashboard drilldown. Move those surfaces together before expanding the data model.
Completed foundation — #388
Merged in #388 on 2026-10-05 (15cd7ccd).
- Import query-free page and audience totals, retaining anonymized clicks without collecting hidden search text. Reports select compatible row shapes without double-counting, with legacy fallback.
- Make initial/manual catch-up resumable across empty days: commit scoped completion checkpoints with facts only after all daily requests succeed.
- Include checkpoints in analytics reset and tenant transfer; verify retry, replacement, rollback, reset, and transfer behavior with regression tests.
- Pass local
completeQA and all 14 active GitHub checks on the final PR revision.
This completes the accuracy/resume foundation. Workspace placement and v2 datasets remain open. Page-plus-country/device filters still use query rows and retain Google's anonymized-query limitation; existing installations repair older days through manual sync.
Slice 1 — placement and permissions (next)
- Add site-scoped
/search-console, visible to authenticated site viewers with access to the selected site. - Default to
?tab=performance; use?tab=connectionfor OAuth, property mapping, sync status, and recovery. - Reuse existing reports and date controls. Keep existing report semantics during this move.
- Enforce existing mutation permissions server-side; hide connection mutation controls from read-only viewers.
- Redirect
/integration/google-search-consoleto the Connection tab; update OAuth return paths and route consumers. - Remove the duplicate Integration navigation item.
- Replace the large dashboard drilldown with a compact summary and Open Search Console action.
- Preserve last-good reports during sync failures. Show localized setup, empty, loading, permission, and recovery states without blanking usable data.
- Explain destructive scope: disconnect stops sync for all team sites using that connection and retains imported data; unmapping affects the selected site.
Done when a viewer can open reports, an authorized admin can manage the connection, and old links/OAuth flows still work. Verify mobile, keyboard/focus, light/dark, and long translations.
Build on the merged #388 foundation. Keep this placement slice separate from the v2 import-model cutover.
Slice 2 — versioned imports and deeper reports
Design import semantics and reporting together, then deliver them in small changes.
- Add explicit import-model version, dataset discriminator, and Search Appearance support.
- Import finalized Web Search datasets: property totals, queries, pages, countries, devices, Search Appearance, and existing combined dimensions.
- Use property totals for headline metrics, dimension datasets for unfiltered tables, and combined data only for cross-filtering. Keep Search Appearance separate from other dimension filters.
- Backfill 90 days without replacing readable legacy data prematurely. Cut over atomically after success; delete only the mapped scope's legacy facts afterward.
- Scope completion checkpoints to the import model. Existing totals/empty-day checkpoints do not prove the new datasets are complete.
- Replace refresh windows transactionally, remove vanished rows, and retain the last-good dataset on failure.
- Add equal-length previous-period comparisons, four KPI metrics, one trend chart, server pagination (25/50/100), sorting, and reversible query/page/country/device filters.
- Add page-level HitKeep landing sessions, bounce rate, and goal conversions, including comparisons. Label these as all tracked landing traffic, without implying Google attribution or causality.
- Start initial sync after mapping; use bounded status polling while the page is visible.
- Add safe, actionable warnings for partial ranges, legacy backfill, anonymized queries, quota, authorization/property access, and sync failures.
Keep REST additions backward compatible. Update both OpenAPI sources, aggregate-only Search Console MCP reporting/audits/procedures, and safe facts takeout when those surfaces change.
Placement guidance from discussion #338
Discussion #338 covers website, application, and hybrid use cases.
Keep Search Console prominent for website users. A later, separate slice may let administrators reversibly hide modules per site. Visibility changes presentation only; collection and stored data continue unchanged. Avoid a mandatory Website/Web App split.
General sidebar restructuring, application outcome metrics, heatmaps, and sessions are separate work.
Guardrails and verification
- One deployable application, DuckDB, no new required services; self-hosted/cloud parity.
- Read-only Google integration, finalized Web Search, existing OAuth scope.
- Preserve site permissions across dashboard, REST, MCP, and export. Never expose credentials, tokens, provider headers, or raw provider errors.
- Invalid OAuth state remains an HTTP error; valid callbacks use safe result codes.
- Localize new copy in every supported locale. Update public setup/reporting docs and screenshots as behavior lands.
- Use TDD for behavioral changes and migration safety. Run live
changedQA while iterating andcompletebefore completion; useprfor exact CI parity.
Out of scope: URL Inspection, sitemap management, additional search types, hourly/preliminary data, and public/shared Search Console reports.
Activity
[-][Feature]: Build a polished Google Search Performance workspace[/-][+][Feature]: Build Search Console workspace in focused slices[/+][-][Feature]: Build Search Console workspace in focused slices[/-][+][Feature]: Build Search Console workspace[/+]