Skip to content

feat(web): guide self-hosted integration setup - #494

Merged
imshashank merged 2 commits into
mainfrom
codex/integration-setup-guides
Sep 23, 2026
Merged

imshashank merged 2 commits into
mainfrom
codex/integration-setup-guides

Conversation

@imshashank

@imshashank imshashank commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Slack remains visible to workspace admins when disabled, with a setup link instead of disappearing from Integrations. Deployment setup now guides operators through Resend, Slack and GitHub configuration, including hosting instructions, variable presence, copyable templates, generated callback URLs, a Slack app manifest and manual verification steps.

Why

A fresh self-hosted installation previously offered no visible path to configure Slack, while Deployment setup only reported readiness. Operators can now find the required configuration and distinguish environment settings from a connected workspace or confirmed delivery. Slack connection readiness also requires its signing secret, and the manifest shares the OAuth route's scope list.

How you know it works

  • Full bun run verify passes: 6,175 tests, zero failures, plus lint, repository checks and types. Executed against an isolated local test database and test lane, using the matching PostgreSQL 18 dump tool for backup tests.
  • bun run docs:build passes.
  • Regression coverage checks disabled Slack discovery without connection actions or requests, server-side role enforcement, secret redaction, valid and invalid public origins, generated manifests, GitHub setup navigation, credential completeness and clipboard success/failure.
  • Browser checks cover Slack discovery, setup navigation, expanding each provider guide and copying all three environment templates. Light and dark themes were inspected.

Provider OAuth installation and real message delivery require deployment credentials and remain explicitly labelled manual checks. The local browser preview used a seeded test workspace; its realtime process was not started.

Review fixes

  • Require all six GitHub App variables before offering or starting installation. A slug alone previously exposed a flow that could not complete.
  • Respect missing credentials for existing connections: replace unusable Slack reconnect and GitHub additional-installation actions with setup guidance, and disable repository refresh only when discovery credentials are missing.
  • Reject IP addresses, local hostnames and malformed DNS names before generating provider URLs and Slack manifests; preserve valid HTTPS ports.
  • Quote the GitHub PEM placeholder so filling the environment template with a multiline key preserves the full value. Distinguish dotenv quoting from hosting-dashboard secret fields.

Each fix has regression coverage. The updated setup template was checked in the browser. Server authorization and secret redaction remain intact; review found no additional performance concerns.

Screenshots

Before: Slack was absent when disabled, and Deployment setup listed status and variable names without actionable provider setup.

After, light and dark:

Slack discovery Setup guide
Slack setup in light theme Setup guide in light theme
Slack setup in dark theme Setup guide in dark theme

Checklist

  • bun run verify is green.
  • Regression tests added or updated.
  • No code comments, em-dash characters, any or non-null assertions added.
  • Existing shared-schema input parsing and server-side policy enforcement retained.
  • Setup documentation updated.
  • No schema changes or migration required; this PR does not deploy or change server credentials.

Anything reviewers should know

This is stage one of the setup work. Credentials are still configured in the hosting environment and require redeployment. Workspace administration does not grant control over shared server credentials.

The instance-administration design specifies the next stage: explicit operator bootstrap and recovery, a separate instance-admin permission, encrypted shared configuration, environment precedence, consistent consumers, validation and secret-free auditing. Editable credential forms and their persistence are not implemented in this PR.

Automated review availability: Greptile reported an expired trial, and CodeRabbit was review-limited. Neither result is a completed code review. The manual review and fixes above are complete. All applicable GitHub CI checks and the Vercel preview pass on the final head, which includes current main. Merge proceeds with maintainer authorization based on the completed manual review and passing checks.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: Noveum/orbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 93f99ab0-08c6-4883-8c08-a6c7bd98f686

📥 Commits

Reviewing files that changed from the base of the PR and between 7f8220d and 0a623ad.

⛔ Files ignored due to path filters (4)
  • docs/assets/screenshots/integration-setup-guide-dark.png is excluded by !**/*.png
  • docs/assets/screenshots/integration-setup-guide-light.png is excluded by !**/*.png
  • docs/assets/screenshots/integration-setup-slack-dark.png is excluded by !**/*.png
  • docs/assets/screenshots/integration-setup-slack-light.png is excluded by !**/*.png
📒 Files selected for processing (25)
  • apps/web/src/app/(app)/settings/deployment/page.tsx
  • apps/web/src/app/(app)/settings/integrations/page.tsx
  • apps/web/src/app/api/integrations/slack/start/route.ts
  • apps/web/src/features/settings/deployment-guide.tsx
  • apps/web/src/features/settings/deployment-guides.ts
  • apps/web/src/features/settings/deployment-status.ts
  • apps/web/src/features/settings/github-panel.tsx
  • apps/web/src/features/settings/integration-provider.ts
  • apps/web/src/features/settings/integrations-panel.tsx
  • apps/web/src/features/settings/setup-copy-value.tsx
  • apps/web/src/lib/env.ts
  • apps/web/tests/app/settings/deployment/page.test.tsx
  • apps/web/tests/features/settings/deployment-guides.test.ts
  • apps/web/tests/features/settings/deployment-status.test.ts
  • apps/web/tests/features/settings/github-panel.test.tsx
  • apps/web/tests/features/settings/integration-provider.test.ts
  • apps/web/tests/features/settings/integrations-panel.test.tsx
  • apps/web/tests/features/settings/setup-copy-value.test.tsx
  • apps/web/tests/lib/env.test.ts
  • docs/configuration.md
  • docs/instance-administration-design.md
  • docs/integrations.md
  • packages/shared/src/constants/index.ts
  • packages/shared/src/constants/slack.ts
  • packages/shared/src/validators/integration.ts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure area: web The Next.js app and its UI area: integrations GitHub, Slack and webhooks labels Sep 23, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
orbit Ready Ready Preview Sep 23, 2026 7:50pm UTC

Request Review

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@imshashank
imshashank merged commit c46c649 into main Sep 23, 2026
17 checks passed
@imshashank
imshashank deleted the codex/integration-setup-guides branch September 23, 2026 20:02

This branch was successfully deployed

1 active deployment
Preview — 0a623ad7 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: integrations GitHub, Slack and webhooks area: web The Next.js app and its UI documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant