Skip to content

docs: document custom URL actions on Prompt component#5324

Merged
devalog merged 7 commits intomainfrom
devin/1777720493-prompt-custom-actions
May 2, 2026
Merged

docs: document custom URL actions on Prompt component#5324
devalog merged 7 commits intomainfrom
devin/1777720493-prompt-custom-actions

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Summary

Updates the Prompt component documentation to reflect fern-platform#10416, which widened the actions prop to accept custom action objects alongside the built-in cursor, claude, and chatgpt shorthands.

Changes to fern/products/docs/pages/component-library/default-components/prompt.mdx:

  • Updates the page intro and description frontmatter to mention custom URLs in addition to the built-in tools.
  • Adds a new ### With a custom URL action variant section documenting:
    • The { label, url, icon? } object shape.
    • The {prompt} URL placeholder (URL-encoded prompt body) and the ?prompt= query-param fallback when the placeholder is omitted.
    • The http/https scheme restriction.
    • Mixing custom and built-in actions in the same array.
  • Updates the actions <ParamField> to type (string | object)[] and adds nested <Indent> <ParamField>s for label, url, and icon.

Changes to fern/products/docs/pages/changelog/2026-05-01.mdx:

  • Adds a ## Custom URL actions on the Prompt component section with a code sample and link to the new variant section.
  • Adds the components tag.

Review & Testing Checklist for Human

  • On the preview, confirm the new "With a custom URL action" example renders with two action buttons (built-in Cursor + the custom "Open in Plant ID" with a leaf icon) and that the dropdown / primary-button behavior matches the existing multi-action variant.
  • Confirm the changelog entry's "Read the docs" button anchors to the new section (/learn/docs/writing-content/components/prompt#with-a-custom-url-action).
  • Skim the updated actions Properties block to make sure the nested <Indent> <ParamField>s for label / url / icon read as sub-properties of actions and not as top-level props.

Notes

  • Vale passes locally with 0 errors, 0 warnings, and 0 suggestions on the modified component page.
  • The new variant uses plant-themed example content per the user's example-content guideline.

Link to Devin session: https://app.devin.ai/sessions/c5ce6253ec3244eeb9142f05e419475f
Requested by: @devalog

Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

devin-ai-integration Bot and others added 2 commits May 2, 2026 11:40
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

devin-ai-integration Bot and others added 3 commits May 2, 2026 12:25
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

@devalog devalog merged commit c74bea2 into main May 2, 2026
2 checks passed
@devalog devalog deleted the devin/1777720493-prompt-custom-actions branch May 2, 2026 16:43
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