feat(templates): add "Build it on Replit" button and replit-prompt section#87
Open
raoufchebri wants to merge 4 commits intodatabricks:mainfrom
Open
feat(templates): add "Build it on Replit" button and replit-prompt section#87raoufchebri wants to merge 4 commits intodatabricks:mainfrom
raoufchebri wants to merge 4 commits intodatabricks:mainfrom
Conversation
…ction Adds an optional replit-prompt.md content section for templates. When present, the template usage banner renders a second action that opens replit.com with the prompt preloaded (lz-string compressed, UTM-tagged). Wires up the saas-tracker template as the first example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…rt to cookbooks/recipes Adds replit-prompt.md content for the SaaS Tracker, Vacation Rentals, Inventory Intelligence, Content Moderator, Genie Analytics App, Operational Data Analytics, Genie Conversational Analytics, Genie Multi-Space, Medallion CDC, and Volume File Manager templates, and extends the existing example-only "Build it on Replit" plumbing to cookbook- and recipe-tier pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a one-line hint to the three Genie-focused Replit prompts (genie-analytics-app cookbook, genie-conversational-analytics recipe, genie-multi-space recipe) telling Replit Agent that users can list their Genie spaces with `databricks api get /api/2.0/genie/spaces` when configuring DATABRICKS_GENIE_SPACE_ID. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a "Build with > Replit Apps" checkbox in the templates filter sidebar that narrows the grid to only templates that ship a replit-prompt.md. The filter is computed at render time from plugin data (examples + recipes section bodies, plus the cookbooks plugin's replitPromptsBySlug), so authors don't need to mirror replit-prompt status in recipes.ts. Active-filters chip, mobile sheet badge count, and "Clear all" all participate in the new state. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Build it on Replit action to DevHub templates and ships Replit-Agent prompts for the launch set of examples, cookbooks, and recipes.
When a template has a
replit-prompt.md, the template usage banner renders a second action that opensreplit.comwith the prompt preloaded as anlz-string-compressed query param plus DevHub UTM tags. Templates without areplit-prompt.mdare unchanged.Plumbing
c191572):content/examples/<slug>/replit-prompt.mdis read bycontent-markdown.tsand forwarded toTemplateUsageBannerfromexample-detail.tsx.7de8fa3): addedreadCookbookReplitPrompt(), exposedreplitPromptsBySlugfrom the cookbooks plugin, added auseCookbookReplitPrompt()hook, and threadedreplitPromptthroughuseCookbookMarkdown→CookbookDetail→TemplateUsageBanner.validate-content.mjsnow allowsreplit-prompt.mdinside cookbook folders.7de8fa3): the file plumbing already supportedreplit-prompt.md; addeduseRecipeSections()and forwardedsections.replitPromptfromrecipe-detail.tsxto the banner.Replit prompts added
saas-tracker(updated to add Genie analytics)vacation-rentalsinventory-intelligencecontent-moderatorgenie-analytics-appoperational-data-analyticsgenie-conversational-analyticsgenie-multi-spacemedallion-architecture-from-cdcvolume-file-upload(Volume File Manager)Each prompt follows the same structure: connector-first / PAT fallback decision tree, table or schema setup, app requirements, permission handling, build order, and scope notes.
Test plan
npm run fmtnpm run validate:contentnpm run typechecknpm run buildnpm run dev— server compiles cleanly, all 10 template routes loadreplit-prompt.mdstill render only the Copy prompt action