Skip to content

feat: export grouped prompt constants - #1526

Merged
travi merged 2 commits into
betafrom
travi-add-promptconstants-to-javascript
Aug 8, 2026
Merged

feat: export grouped prompt constants#1526
travi merged 2 commits into
betafrom
travi-add-promptconstants-to-javascript

Conversation

@travi

@travitravi commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

  • add promptConstants to @form8ion/javascript and export it from the package entry point
  • replace the flat questionNames structure with grouped prompt-area mappings to match @form8ion/project
  • add stable prompt IDs plus unit and integration coverage for the new grouped prompt constants API

Testing

  • npm run test:unit:base
  • npm run test:integration
  • npm test

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecovBot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d77921a) to head (9ebc9ff).

Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@## beta #1526 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 108 108 Lines 353 364 +11 =========================================
+ Hits 353 364 +11 
FlagCoverage Δ
unit100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing linesCoverage Δ
src/project-type-plugin/prompt.js100.00% <100.00%> (ø)
src/project-type/publishable/bundler/prompt.js100.00% <100.00%> (ø)
src/prompts/conditionals.js100.00% <100.00%> (ø)
src/prompts/question-names.js100.00% <ø> (ø)
src/prompts/questions.js100.00% <100.00%> (ø)
src/testing/integration/prompt.js100.00% <100.00%> (ø)
src/testing/unit/prompt.js100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@travi
travi merged commit 53b40b2 into betaAug 8, 2026
9 checks passed
@travi
travi deleted the travi-add-promptconstants-to-javascript branch August 8, 2026 16:10
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 16.0.0-beta.19 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@travi