Repository navigation
Description
Problem
On a multi-company Paperclip instance, some companies use GitHub Sync and others deliberately do not use GitHub at all. Installing the plugin currently adds GitHub Sync, GitHub KPIs, and the global Sync GitHub action to the latter companies too.
Their dashboard then prominently shows “Setup required”, “Finish setup to start syncing”, zero repositories, and empty GitHub metrics. This looks like unfinished company setup even though no GitHub integration is wanted. Disabling the plugin instance-wide would also remove it from companies that do need it.
Reproduction
- Install
paperclip-github-plugin@0.18.0on Paperclip2026.1106.0with multiple companies. - Configure GitHub Sync for one company.
- Open another company's dashboard without configuring a GitHub token or repository mapping for that company.
- Observe both GitHub dashboard widgets and the global Sync GitHub action.
Requested behaviour
Provide an explicit company-scoped option to hide the GitHub dashboard widgets and global sync action. For example, “Show GitHub on this company's dashboard”, defaulting to the existing behaviour for compatibility.
This should be a presentation preference, not a destructive disconnect or a substitute for sync scheduling settings. An intentionally non-GitHub company must be able to save the preference without providing a GitHub token, board token, or repository mapping.
Acceptance criteria
- Hide both GitHub dashboard cards and the global Sync GitHub action for the selected company.
- Remove the complete card frames and layout space, not just the inner content.
- Preserve the existing UI and behaviour for other companies on the instance.
- Keep the settings page reachable so the company can restore the UI later.
- Do not delete credentials, mappings, historical metrics, or linked issues/PRs; do not silently change sync cadence.
- Switching companies and reloading respects each company's saved preference.
- Setup/authentication failures remain visible for companies that have chosen to show GitHub surfaces.
Implementation
Implemented in #238 from the fork at https://github.com/m-roberts/paperclip-github-plugin.
The preference is stored separately under company-scoped plugin state and saves without integration setup. Both complete cards are hidden using a plugin-owned marker plus a narrowly scoped CSS :has() rule on the immediate host wrapper; the toolbar surface hides only itself. No Paperclip core change, host class-name matching, or imperative host DOM modification is required.
Local typechecking, 5 build tests, 368 worker/UI contract tests, and an isolated Chromium regression passed. The browser test exercises the actual built widget/button exports and real worker handlers through an SDK harness bridge, including neighbouring-action preservation, restore/reload, company isolation, stale reads, and read/save errors. Full host-install qualification and production rollout remain separate.
Prepared with AI assistance; source-inspected, with the current UI observed on a self-hosted instance. No production changes have been made.
Activity