Skip to content

feat(landing): add AI-generated content disclaimer to integration landing page#4845

Merged
waleedlatif1 merged 1 commit into
stagingfrom
waleedlatif1/slack-landing-disclaimer
Jun 2, 2026
Merged

feat(landing): add AI-generated content disclaimer to integration landing page#4845
waleedlatif1 merged 1 commit into
stagingfrom
waleedlatif1/slack-landing-disclaimer

Conversation

@waleedlatif1
Copy link
Copy Markdown
Collaborator

Summary

  • Add an optional aiDisclaimer field to the integration landing content (types.ts + landing-content.ts), rendered as an independent "AI-generated content" section and baked into integrations.json via docs-gen
  • Populate it for Slack to satisfy Slack's AI-components guideline (disclaimer must appear on the landing page)
  • Same data-driven pattern as the existing install/privacy sections — no hardcoding, flows through generation

Type of Change

  • New content

Testing

bun run lint, tsc, biome pass; docs generation is idempotent; integrations.json validated.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…ding page

Adds an optional aiDisclaimer field to the integration landing content (types + data), rendered as an independent 'AI-generated content' section and baked into integrations.json via docs-gen. Populates Slack to satisfy Slack's AI-components guideline (disclaimer on the landing page).
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Jun 2, 2026 3:13am

Request Review

@cursor
Copy link
Copy Markdown

cursor Bot commented Jun 2, 2026

PR Summary

Low Risk
Landing-only copy and optional UI; no auth, runtime, or data-path changes.

Overview
Adds an optional aiDisclaimer field to integration landing content (types, hand-authored landing-content.ts, and generated integrations.json) and renders it on the integration landing page as an “AI-generated content” section when present—same data-driven pattern as install/privacy.

Slack is the first integration with copy, aimed at marketplace requirements (e.g. Slack AI-components) that the disclaimer appear on the public landing page.

Reviewed by Cursor Bugbot for commit a50a34a. Configure here.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 2, 2026

Greptile Summary

This PR adds an optional aiDisclaimer field to the integration landing page content system to satisfy Slack's AI-components marketplace guideline. The feature is implemented using the same data-driven pattern as existing install and privacy sections.

  • types.ts: Adds aiDisclaimer?: string to IntegrationLandingContent; landing-content.ts populates it for Slack; integrations.json reflects the re-generated output.
  • page.tsx: Conditionally renders a new "AI-generated content" section — following the exact same guard and divider pattern as the existing Privacy & data section.

Confidence Score: 5/5

Safe to merge — all changes are additive, the new field is optional, and the render path is guarded.

The new aiDisclaimer field is entirely optional and defaults to absent for all existing integrations, so no existing landing pages are affected. The Slack entry is the only one populated, and both landing-content.ts and the re-generated integrations.json are kept in sync within this PR. The page component mirrors the exact guard-and-divider pattern already used for the privacy section, with text-only rendering (no XSS risk). The docs-gen pipeline correctly picks up aiDisclaimer from landing-content.ts and bakes it into the JSON output, confirming the data flow is intact.

No files require special attention.

Important Files Changed

Filename Overview
apps/sim/app/(landing)/integrations/data/types.ts Adds optional aiDisclaimer?: string to IntegrationLandingContent with a clear JSDoc comment; no impact on existing consumers since it's optional.
apps/sim/app/(landing)/integrations/data/landing-content.ts Adds aiDisclaimer string for Slack in the existing content map; straightforward and consistent with the surrounding pattern.
apps/sim/app/(landing)/integrations/(shell)/[slug]/page.tsx New conditional section mirrors the privacy section exactly (guard, aria label, heading, body, trailing divider); renders text content only so no XSS risk.
apps/sim/app/(landing)/integrations/data/integrations.json Generated artifact updated by docs-gen to include aiDisclaimer inside Slack's landingContent; matches landing-content.ts exactly.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["landing-content.ts\nSlack aiDisclaimer string"] -->|"scripts/generate-docs.ts"| B["integrations.json\nlandingContent.aiDisclaimer"]
    B -->|"imported as Integration array"| C["page.tsx"]
    C --> D{"landingContent?.aiDisclaimer?"}
    D -- yes --> E["Render AI-generated content section\n+ trailing divider"]
    D -- no --> F["Skip section"]
    E --> G["How to automate section"]
    F --> G
Loading

Reviews (1): Last reviewed commit: "feat(landing): add AI-generated content ..." | Re-trigger Greptile

@waleedlatif1 waleedlatif1 merged commit a7984bf into staging Jun 2, 2026
10 checks passed
@waleedlatif1 waleedlatif1 deleted the waleedlatif1/slack-landing-disclaimer branch June 2, 2026 03:18
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