Browse Source

Merge master into develop

handoff-20260429-1057
shrimbly 6 months ago
parent
commit
6defacc9a3
  1. 16
      .github/workflows/block-master-prs.yml
  2. 29
      .github/workflows/update-docs.yml
  3. 5
      src/components/quickstart/PromptWorkflowView.tsx
  4. 2
      src/components/quickstart/QuickstartInitialView.tsx
  5. 19
      src/components/quickstart/QuickstartTemplatesView.tsx

16
.github/workflows/block-master-prs.yml

@ -1,16 +0,0 @@
name: Enforce Develop Branch
on:
pull_request:
branches:
- master # Triggers only on PRs targeting master
jobs:
guard-master:
runs-on: ubuntu-latest
steps:
- name: Check base branch
# logic: If the PR is NOT coming from a release or hotfix branch, block it.
if: "!startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'hotfix/')"
run: |
echo "::error::⛔ WRONG BRANCH: You are trying to merge into 'master'. Please change the base branch of this PR to 'develop'."
exit 1

29
.github/workflows/update-docs.yml

@ -0,0 +1,29 @@
name: Update Documentation
on:
pull_request:
types: [closed]
branches: [master]
jobs:
update-docs:
# Only run if PR was merged (not just closed)
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Trigger docs update
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DOCS_REPO_PAT }}
repository: shrimbly/node-banana-docs
event-type: source-pr-merged
client-payload: |
{
"pr_number": "${{ github.event.pull_request.number }}",
"pr_title": "${{ github.event.pull_request.title }}",
"pr_body": ${{ toJson(github.event.pull_request.body) }},
"pr_url": "${{ github.event.pull_request.html_url }}",
"merged_by": "${{ github.event.pull_request.merged_by.login }}",
"head_sha": "${{ github.event.pull_request.merge_commit_sha }}"
}

5
src/components/quickstart/PromptWorkflowView.tsx

@ -91,10 +91,13 @@ export function PromptWorkflowView({
border-neutral-700 hover:border-neutral-600 border-neutral-700 hover:border-neutral-600
`} `}
/> />
<p className="text-[10px] text-neutral-500"> <p className="text-xs text-neutral-400">
Describe what you want your workflow to accomplish. Be specific Describe what you want your workflow to accomplish. Be specific
about inputs, outputs, and any transformations. about inputs, outputs, and any transformations.
</p> </p>
<p className="text-xs text-neutral-400">
Note: This feature currently only works with Gemini models.
</p>
</div> </div>
{/* Error */} {/* Error */}

2
src/components/quickstart/QuickstartInitialView.tsx

@ -137,7 +137,7 @@ export function QuickstartInitialView({
/> />
} }
title="Prompt a workflow" title="Prompt a workflow"
description="Describe what you want" description="Get Gemini to build it"
badge="Beta" badge="Beta"
/> />
</div> </div>

19
src/components/quickstart/QuickstartTemplatesView.tsx

@ -118,6 +118,11 @@ export function QuickstartTemplatesView({
{/* Content */} {/* Content */}
<div className="flex-1 overflow-y-auto p-6 space-y-6"> <div className="flex-1 overflow-y-auto p-6 space-y-6">
{/* Description */}
<p className="text-sm text-neutral-400">
Pre-built workflows to help you get started quickly. Select a template to load it into the canvas.
</p>
{/* Quick Start Templates */} {/* Quick Start Templates */}
<div className="space-y-3"> <div className="space-y-3">
<h3 className="text-xs font-medium text-neutral-400 uppercase tracking-wider"> <h3 className="text-xs font-medium text-neutral-400 uppercase tracking-wider">
@ -310,6 +315,20 @@ export function QuickstartTemplatesView({
))} ))}
</div> </div>
)} )}
{/* Discord CTA */}
<p className="text-xs text-neutral-500 mt-3">
Want to share your workflow?{" "}
<a
href="https://discord.com/invite/89Nr6EKkTf"
target="_blank"
rel="noopener noreferrer"
className="text-purple-400 hover:text-purple-300 underline"
>
Join our Discord
</a>{" "}
to submit it to the community templates.
</p>
</div> </div>
{/* Error */} {/* Error */}

Loading…
Cancel
Save