Skip to content

feat(plugins): allow publish with only the observability plugin#2610

Merged
bradcypert merged 2 commits into
mainfrom
feat/publish-observability-only
May 5, 2026
Merged

feat(plugins): allow publish with only the observability plugin#2610
bradcypert merged 2 commits into
mainfrom
feat/publish-observability-only

Conversation

@bradcypert
Copy link
Copy Markdown
Contributor

Summary

  • Drop the hasPlugins guard on the Publish to GitHub button in client/dashboard/src/pages/plugins/Plugins.tsx — it was hiding the button until a custom plugin existed, which contradicted the observability section's "Connect GitHub publishing to also ship it via the marketplace" copy.
  • Drop the matching backend rejection in server/internal/plugins/impl.go ("no plugins with servers to publish"). GeneratePluginPackages always emits the per-org observability plugin and a one-entry marketplace when HooksAPIKey is set, which is always true on the publish path.
  • Add TestPluginsService_PublishPlugins_ObservabilityOnly covering the new "zero custom plugins" publish path.

Test plan

  • go test ./internal/plugins/... (5.3s, all green including the new test)
  • npx tsc --noEmit in client/dashboard
  • Manual: in a fresh org with no custom plugins, click Publish to GitHub, verify a marketplace repo is created containing only the observability plugin

🤖 Generated with Claude Code

…ugin

The Publish to GitHub button was hidden until a custom plugin existed,
and the backend rejected publish when no custom plugins had servers.
The observability plugin is always emitted on publish, so an org with
none of its own plugins can still ship a meaningful marketplace.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bradcypert bradcypert requested review from a team as code owners May 5, 2026 20:31
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

🦋 Changeset detected

Latest commit: cb779cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 5, 2026 8:43pm

Request Review

@github-actions github-actions Bot added the preview Spawn a preview environment label May 5, 2026
@speakeasybot
Copy link
Copy Markdown
Collaborator

speakeasybot commented May 5, 2026

🚀 Preview Environment (PR #2610)

Preview URL: https://pr-2610.dev.getgram.ai

Component Status Details Updated (UTC)
⏳ Database Pending Waiting for db-init job 2026-05-05 20:40:27.
✅ Images Available Container images ready 2026-05-05 20:40:25.

Gram Preview Bot

It asserted publish errors when no custom plugins exist; that path now
succeeds (publishes only the observability plugin) and is covered by
TestPublishPlugins_ObservabilityOnly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bradcypert bradcypert added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit b27c6bd May 5, 2026
26 checks passed
@bradcypert bradcypert deleted the feat/publish-observability-only branch May 5, 2026 20:56
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

preview Spawn a preview environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants