Skip to content

chore(open-source): define the preview boundary - #280

Merged
imshashank merged 4 commits into
mainfrom
codex/open-source-preview
Aug 10, 2026
Merged

imshashank merged 4 commits into
mainfrom
codex/open-source-preview

Conversation

@imshashank

@imshashank imshashank commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

  • Publishes one compact open-source readiness tracker and labels self-hosting as Preview while preserving Noveum AI sponsorship and Apache-2.0 attribution.
  • Disables Slack fail-closed across the UI, OAuth, APIs, webhook handling, notifications, and GitHub side effects while keeping GitHub available.
  • Corrects public integration and notification claims, documents GitHub's least-privilege setup, and removes tenant-specific Yodu catchup and planning artifacts.

Why

This is the deliberately small first open-source readiness change. It replaces the oversized draft in #279. Remaining P0 and P1 items stay in the tracker and should be implemented as focused follow-up pull requests.

Supersedes #279.

How you know it works

  • bun run verify passes on the exact branch commit.
  • bun run build passes, including schema comparison and all 95 static pages.
  • Focused Slack, GitHub, integration UI, notification, landing, and catchup tests pass.
  • Hosted CI passes lint, types, unit and integration tests, migration drift, the production build, Playwright, CodeQL, and Vercel deployment.
  • An independent review of the final diff found no functional or security blocker after two documentation claims were corrected.

Checklist

  • bun run verify is green, all four checks
  • Tests added or updated, and they fail without the change
  • No comments added to code, and no em-dash characters anywhere
  • No any, no non-null assertions
  • External input remains behind the existing schemas
  • Disabled Slack routes fail closed before authentication, provider access, or side effects
  • Docs updated for behaviour, configuration, and setup changes
  • No schema changes in this pull request

Anything reviewers should know

Slack endpoints remain present but return 404 before reading authentication state, credentials, or payloads. This keeps the boundary explicit and tested without mixing a large integration deletion into this pull request. Slack requalification and every other release blocker are deferred in docs/open-source-readiness.md.

Greptile Summary

The PR defines the open-source preview boundary and disables Slack across routes, UI, notifications, and side effects while retaining GitHub support.

  • Adds and documents the self-hosting Preview readiness boundary.
  • Gates Slack endpoints and GitHub-to-Slack dispatch behind a disabled capability.
  • Removes Slack affordances and public feature claims.
  • Removes tenant-specific catchup and planning artifacts.

Confidence Score: 4/5

The PR is not yet safe to merge because saving notification settings still destroys users' persisted Slack selections during the temporary shutdown.

The previously reported notification-preference defect remains: the hidden Slack rows are submitted as disabled and the server directly upserts those values, so any save erases existing Slack choices.

Files Needing Attention: apps/web/src/features/settings/notification-matrix.tsx, apps/web/src/features/settings/notification-preferences.ts

Important Files Changed

Filename Overview
apps/web/src/features/settings/notification-matrix.tsx Hides Slack controls and changes the submitted notification matrix while Slack is disabled.
apps/web/src/lib/integrations/slack-capability.ts Centralizes the disabled Slack capability and standard unavailable response.
apps/web/src/features/settings/integrations-data.ts Omits Slack integration data when the capability is disabled.
apps/web/src/app/api/webhooks/github/route.ts Prevents GitHub webhook processing from dispatching Slack side effects while Slack is disabled.
docs/open-source-readiness.md Introduces the compact readiness tracker for the Preview boundary.

Reviews (2): Last reviewed commit: "docs(open-source): clarify preview copy" | Re-trigger Greptile

@vercel

vercel Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
orbit Ready Ready Preview Aug 10, 2026 12:26pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b5b0a3d2-0b2c-496b-a11c-1ff4d17cbdd0

📥 Commits

Reviewing files that changed from the base of the PR and between 2676cd2 and 869c753.

📒 Files selected for processing (5)
  • apps/web/src/app/(app)/settings/integrations/page.tsx
  • apps/web/src/features/settings/integrations-panel.tsx
  • docs/configuration.md
  • docs/integrations.md
  • docs/self-hosting.md
🚧 Files skipped from review as they are similar to previous changes (5)
  • apps/web/src/app/(app)/settings/integrations/page.tsx
  • docs/self-hosting.md
  • docs/configuration.md
  • apps/web/src/features/settings/integrations-panel.tsx
  • docs/integrations.md

📝 Walkthrough

Walkthrough

Slack is disabled by default and guarded across routes, webhooks, settings, and notifications. Product and integration documentation now describe GitHub and in-app notifications. Preview support boundaries and open-source readiness requirements were documented.

Changes

Slack capability and delivery controls

Layer / File(s) Summary
Capability flag and runtime guards
packages/shared/src/constants/*, apps/web/src/lib/integrations/*, apps/web/src/app/api/integrations/slack/*, apps/web/src/app/api/webhooks/*, packages/services/src/notifications/*
Slack now uses a shared disabled flag. Slack routes return 404 { error: 'not_found' } when disabled. GitHub webhook processing and notification delivery skip Slack dispatches.
Boundary and delivery validation
apps/web/tests/app/api/integrations/slack/*, apps/web/tests/app/api/webhooks/github/*, packages/services/tests/notifications/*
Tests cover disabled Slack endpoints, skipped request processing, closed pull requests, disabled dispatches, and default preferences.

Settings and notification visibility

Layer / File(s) Summary
Conditional Slack settings
apps/web/src/features/settings/integrations-data.ts, apps/web/src/features/settings/integrations-panel.tsx
Slack settings are optional and load only when Slack is enabled. The settings panel hides Slack when unavailable.
Notification matrix and settings tests
apps/web/src/features/settings/notification-matrix.tsx, apps/web/src/features/settings/settings-skeletons.tsx, apps/web/tests/features/settings/*
The UI excludes Slack channels and persists Slack preferences as disabled. Related fixtures and assertions were updated.

Product and documentation updates

Layer / File(s) Summary
Product surfaces and integration guidance
README.md, docs/*, apps/web/src/app/*, apps/web/src/features/landing/*
Product copy now presents GitHub as the supported external integration and notifications as in-app only. Slack configuration and setup guidance were removed.
Preview and readiness documentation
docs/open-source-readiness.md, docs/self-hosting.md, docs/configuration.md
Preview support boundaries, release requirements, verification gates, and audit limitations were documented.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • Noveum/orbit#5: Introduced Slack notification and integration behavior changed by this PR.
  • Noveum/orbit#36: Added Slack routes, webhook dispatch, settings, and notification logic gated by this PR.
  • Noveum/orbit#262: Added the database catch-up migration and test removed here.

Suggested reviewers: pulkitxm

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: defining the open-source Preview boundary.
Description check ✅ Passed The description accurately covers the Preview boundary, Slack shutdown, documentation updates, and removal of tenant-specific artifacts.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/open-source-preview

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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: database Schema, migrations, queries, seed area: integrations GitHub, Slack and webhooks area: landing The marketing and landing pages labels Aug 10, 2026
@imshashank
imshashank marked this pull request as ready for review August 10, 2026 12:07
@imshashank
imshashank requested a review from pulkitxm as a code owner August 10, 2026 12:07

@coderabbitai coderabbitai 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.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web/src/app/`(app)/settings/integrations/page.tsx:
- Around line 43-44: Update the descriptive TSX text near the GitHub integration
content to replace “AI client” with “MCP client,” preserving the rest of the
wording and meaning.

In `@apps/web/src/features/settings/integrations-panel.tsx`:
- Around line 90-93: Update the description in the integrations panel near the
GitHub heading to replace the prohibited “AI client connections” wording with
“MCP client connections,” while preserving the surrounding message and
formatting.

In `@docs/configuration.md`:
- Line 12: Update the linked label in the documentation to use “Open-source
readiness” with a hyphen, preserving the existing link target and surrounding
text.

In `@docs/integrations.md`:
- Line 53: Standardize the spelling of “organisation/organization” throughout
the document by updating the inconsistent wording near “Do not grant
organization or account permissions.” to match the spelling already used
elsewhere.

In `@docs/open-source-readiness.md`:
- Line 162: Update the repository checks list in open-source-readiness.md to
replace the raw git diff --check command with the repository-defined Bun wrapper
that performs the same check, while leaving the other checks unchanged.

In `@docs/self-hosting.md`:
- Around line 32-33: Update the email outage wording near “Email is used for
magic links and invites” to state only that magic-link and invite-email flows
are unavailable without email, while Google, GitHub, passkey, and other
non-email sign-in methods remain usable.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8382a75c-5f32-4be1-8f99-140cf2409e69

📥 Commits

Reviewing files that changed from the base of the PR and between 80c4693 and 2676cd2.

📒 Files selected for processing (45)
  • .env.example
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • apps/web/src/app/(app)/settings/integrations/page.tsx
  • apps/web/src/app/api/integrations/slack/callback/route.ts
  • apps/web/src/app/api/integrations/slack/channels/route.ts
  • apps/web/src/app/api/integrations/slack/route.ts
  • apps/web/src/app/api/integrations/slack/start/route.ts
  • apps/web/src/app/api/webhooks/github/route.ts
  • apps/web/src/app/api/webhooks/slack/route.ts
  • apps/web/src/app/layout.tsx
  • apps/web/src/app/llms.txt/route.ts
  • apps/web/src/features/landing/landing-meta.ts
  • apps/web/src/features/landing/landing-page.tsx
  • apps/web/src/features/settings/integrations-data.ts
  • apps/web/src/features/settings/integrations-panel.tsx
  • apps/web/src/features/settings/notification-matrix.tsx
  • apps/web/src/features/settings/settings-skeletons.tsx
  • apps/web/src/lib/integrations/slack-capability.ts
  • apps/web/tests/app/api/integrations/slack/disabled.test.ts
  • apps/web/tests/app/api/webhooks/github/route.test.ts
  • apps/web/tests/app/api/webhooks/slack/route.test.ts
  • apps/web/tests/app/llms-txt.test.ts
  • apps/web/tests/features/settings/integrations-data.test.ts
  • apps/web/tests/features/settings/integrations-panel.test.tsx
  • apps/web/tests/features/settings/notification-matrix.test.tsx
  • docs/README.md
  • docs/architecture.md
  • docs/concepts.md
  • docs/configuration.md
  • docs/integrations.md
  • docs/mcp.md
  • docs/open-source-readiness.md
  • docs/roadmap.md
  • docs/self-hosting.md
  • docs/superpowers/plans/2026-08-08-yodu-email-domain.md
  • docs/superpowers/specs/2026-08-08-yodu-email-domain-design.md
  • packages/db/catchup/noveum-yodu-domain-catchup.sql
  • packages/db/tests/apply-catchup.test.ts
  • packages/services/src/notifications/index.ts
  • packages/services/src/notifications/preferences.ts
  • packages/services/tests/notifications/notifications.test.ts
  • packages/shared/src/constants/index.ts
  • packages/shared/src/constants/integration.ts
💤 Files with no reviewable changes (8)
  • apps/web/src/app/layout.tsx
  • apps/web/src/features/landing/landing-meta.ts
  • docs/superpowers/plans/2026-08-08-yodu-email-domain.md
  • packages/db/tests/apply-catchup.test.ts
  • .env.example
  • packages/db/catchup/noveum-yodu-domain-catchup.sql
  • docs/superpowers/specs/2026-08-08-yodu-email-domain-design.md
  • apps/web/tests/app/api/webhooks/slack/route.test.ts

Comment thread docs/configuration.md Resolved
Comment thread docs/integrations.md Resolved
Comment thread docs/open-source-readiness.md Resolved
Comment thread docs/self-hosting.md Resolved
@imshashank

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@imshashank imshashank mentioned this pull request Aug 10, 2026
6 tasks done
@imshashank

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

This branch was successfully deployed

1 active deployment
Preview — 869c753c Deployed Aug 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: database Schema, migrations, queries, seed area: integrations GitHub, Slack and webhooks area: landing The marketing and landing pages 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