Skip to content

fix(slack): simplify app creation and setup order - #8280

Merged
TheodoreSpeaks merged 4 commits into
stagingfrom
codex/improve-slack-setup-wizard
Sep 25, 2026
Merged

TheodoreSpeaks merged 4 commits into
stagingfrom
codex/improve-slack-setup-wizard

Conversation

@TheodoreSpeaks

@TheodoreSpeaks TheodoreSpeaks commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Open Slack app creation with the manifest already filled in, using the same link format as Sim Search. Send compact JSON to avoid the large spacing gaps in Slack's editor.
  • Show only the creation action for new apps. Keep manifest copying and an optional preview for existing-app updates.
  • Validate new bot names before continuing: at most 35 characters, using letters, numbers, spaces, periods, hyphens, or underscores. Preserve reconnect behavior and the legacy default name.
  • Validate the complete encoded creation link against the shared 30,000-character limit before proceeding; oversized command configurations show an error with instructions to shorten or remove commands.
  • Order setup as create/update app → install and paste Bot Token → enter remaining credentials → connect. Preserve Back navigation and existing credentials on reconnect.

Type of Change

  • Bug fix

Testing

  • Six focused Vitest tests passed across four files. Retained the provider URL encoding contract and demonstrated clipboard retry/default-name regressions failing when their guards are removed; pruned incidental UI assertions.
  • Browser checks on the running app confirmed invalid/overlong names block Next, valid names progress, compact manifest payloads, and removal of Copy manifest, View manifest, and the new-app Request URL instruction.
  • Opened the generated link in Slack: corrected name and compact JSON show no manifest validation errors. No app was created and no credentials were saved.
  • Browser regression checks reproduced an oversized Unicode manifest before the fix and verified recovery after shortening, acceptance at 30,000 characters, and rejection at 30,001.
  • Workspace type-check, repository lint/lint:check, all 49 CI audits including API validation, block-registry and docs-manifest checks passed.
  • All nine cleanup passes and git diff --check passed.

Release

Base and intended deployment target: staging. Merging triggers the staging image promotion and CodePipeline. No merge, auto-merge, or production deployment is authorized.

@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 25, 2026 6:52pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Refactors Slack app setup flow and manifest handling.

The PR appears safe to merge based on the reviewed changes.

Summary

This PR opens new Slack app creation with a compact, prefilled manifest and reorders setup to collect the Bot Token before remaining credentials. The latest changes add a shared creation-link limit and prevent oversized custom-bot configurations from advancing.

Reviews (4) · Last reviewed commit: "fix(slack): reject oversized app creatio..."

Comment thread apps/sim/components/integrations/slack-search-setup-wizard.tsx Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 8 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@TheodoreSpeaks
TheodoreSpeaks force-pushed the codex/improve-slack-setup-wizard branch from f9c56c4 to 95f7565 Compare September 25, 2026 18:07
@TheodoreSpeaks TheodoreSpeaks changed the title fix(slack): improve manifest copying and setup order fix(slack): simplify app creation and setup order Sep 25, 2026
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 8 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sim/app/workspace/[workspaceId]/integrations/components/connect-slack-bot-modal/connect-slack-bot-modal.tsx">

<violation number="1" location="apps/sim/app/workspace/[workspaceId]/integrations/components/connect-slack-bot-modal/connect-slack-bot-modal.tsx:533">
P2: This direct creation link can exceed the repository’s 30,000-character Slack URL limit by several times when users configure multiple long slash commands, so Slack may not load the manifest and the new-app flow becomes unusable. Enforce an aggregate manifest/URL limit before enabling this action, or provide a bounded fallback for oversized manifests.</violation>
</file>

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 9 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/integrations/slack-manifest.ts
@TheodoreSpeaks
TheodoreSpeaks merged commit 0bde1e4 into staging Sep 25, 2026
32 of 33 checks passed
@TheodoreSpeaks
TheodoreSpeaks deleted the codex/improve-slack-setup-wizard branch September 25, 2026 19:50

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant