Skip to content

feat(home): expand template examples with 83 categorized templates#3592

Merged
waleedlatif1 merged 4 commits intostagingfrom
feat/examples
Mar 15, 2026
Merged

feat(home): expand template examples with 83 categorized templates#3592
waleedlatif1 merged 4 commits intostagingfrom
feat/examples

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • Expand home page template examples from 6 to 83 across 7 categories (sales, support, engineering, marketing, productivity, operations)
  • Extract template data into consts.ts with rich categorization: category, modules, tags, featured
  • Add show more/collapse UI with category groupings for non-featured templates
  • Add connector-powered knowledge search templates (Gmail, Slack, Notion, Jira, Linear, Salesforce, Zendesk, HubSpot, Google Drive)
  • Add platform-native templates showcasing KB, tables, files, and scheduled tasks without integrations
  • Optimize prompts for mothership execution with explicit resource creation and integration names
  • React 19.2.1 → 19.2.4 upgrade

Type of Change

  • New feature

Testing

Tested manually

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)

- Extract template data into consts.ts with rich categorization (category, modules, tags)
- Expand from 6 to 83 templates across 7 categories: sales, support, engineering, marketing, productivity, operations
- Add show more/collapse UI with category groupings for non-featured templates
- Add connector-powered knowledge search templates (Gmail, Slack, Notion, Jira, Linear, Salesforce, etc.)
- Add platform-native templates (document summarizer, bulk data classifier, knowledge assistant, etc.)
- Optimize prompts for mothership execution with explicit resource creation and integration names
- Add tags field for future cross-cutting filtering by persona, pattern, and domain
- React 19.2.1 → 19.2.4 upgrade
@vercel
Copy link

vercel bot commented Mar 15, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Mar 15, 2026 0:42am

Request Review

@cursor
Copy link

cursor bot commented Mar 15, 2026

PR Summary

Low Risk
Primarily UI/data changes to the home template picker plus a patch-level React upgrade; low risk aside from potential rendering/regression in the expanded grid and dependency bump effects.

Overview
Expands the home page TemplatePrompts from a small fixed set to a large, categorized library of prompt templates, including featured examples and many additional templates grouped under categories like Sales, Support, Engineering, Marketing, Productivity, and Operations.

Extracts template definitions into consts.ts with richer metadata (category, modules, tags, optional image, featured) and updates the UI to support expand/collapse (“More examples”) plus module badge pills and icon-only fallbacks when no screenshot is provided.

Bumps react/react-dom from 19.2.1 to 19.2.4 across the monorepo (including lockfile/overrides).

Written by Cursor Bugbot for commit 5ba6f9d. Configure here.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 15, 2026

Greptile Summary

This PR expands the home page template gallery from 6 to 83 templates across 7 categories, extracts all template data into a dedicated consts.ts config file, and adds a show-more/collapse UI that reveals templates grouped by category. It also performs a patch-level React upgrade from 19.2.1 to 19.2.4 across both the sim and docs apps.

Key changes:

  • consts.ts: New config file with MODULE_META, CATEGORY_META, the TemplatePrompt interface, and all 83 template definitions — correctly separated from the rendering component per the project's config-file convention.
  • template-prompts.tsx: Module-level pre-computation of FEATURED_TEMPLATES and GROUPED_EXTRAS is a good performance optimization. The getGroupedExtras() function derives display order from CATEGORY_META insertion order, not from the order templates appear in the array, which is the correct design.
  • React keys for template cards use template.title, a user-visible string rather than a stable ID. While all 83 current titles are unique, a future duplicate title would silently cause key collisions.
  • TemplateCard buttons have no explicit aria-label, so screen readers announce just the title text with no verb context ("Self-populating CRM" vs. "Select template: Self-populating CRM").

Confidence Score: 4/5

  • PR is safe to merge — changes are additive UI/data work with no logic regressions.
  • The implementation is clean and well-structured. Data is correctly separated into a config file, module-level pre-computation is a sound optimization, and the React/version bump is a low-risk patch upgrade. The two flagged items (title-as-key and missing aria-label) are style/accessibility suggestions that don't affect runtime correctness.
  • No files require special attention beyond the minor suggestions in template-prompts.tsx.

Important Files Changed

Filename Overview
apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/consts.ts New file defining 83 categorized templates, MODULE_META, CATEGORY_META, and the TemplatePrompt interface. Data is clean, all imports are used, and the separation of config from component correctly follows project conventions.
apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/template-prompts.tsx Refactored component with expand/collapse UI and category grouping. Module-level pre-computation of FEATURED_TEMPLATES and GROUPED_EXTRAS is a good optimization. Minor: template title used as React key (fragile) and TemplateCard button lacks an explicit aria-label for action context.
apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/index.ts Barrel export file correctly re-exports types and values from consts.ts and the component from template-prompts.tsx.
apps/sim/package.json React and react-dom bumped from 19.2.1 to 19.2.4 — a patch-level upgrade, consistent with the docs package change.
apps/docs/package.json React and react-dom bumped from 19.2.1 to 19.2.4, matching the sim app version.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[TemplatePrompts renders] --> B[Featured Grid\n6 templates with featured:true]
    A --> C[Expand/Collapse Button\naria-expanded state]
    C -->|expanded = false| D[Show 'More examples ▾']
    C -->|expanded = true| E[Show 'Show less ▴']

    A -->|expanded = true| F[Categorized Extras Section]

    F --> G[getGroupedExtras\nIterates CATEGORY_META order]
    G -->|skip 'popular'| H[Sales & CRM group]
    G --> I[Productivity group]
    G --> J[Engineering group]
    G --> K[Support group]
    G --> L[Marketing & Content group]
    G --> M[Operations group]

    H & I & J & K & L & M --> N[Category heading + 3-col grid\nTemplateCard per template]

    N -->|click| O[onSelect prompt string\npassed to parent]

    style B fill:#e8f4f8
    style F fill:#f0f8e8
    style O fill:#fff3cd
Loading

Last reviewed commit: 5ba6f9d

@waleedlatif1
Copy link
Collaborator Author

@greptile

@waleedlatif1
Copy link
Collaborator Author

@cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@waleedlatif1 waleedlatif1 merged commit 8837f14 into staging Mar 15, 2026
11 checks passed
@waleedlatif1 waleedlatif1 deleted the feat/examples branch March 15, 2026 00:53
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