feat: add single sample project publish confirmation#1342
feat: add single sample project publish confirmation#1342vcnainala merged 14 commits intodevelopmentfrom
Conversation
Add modal to prompt users when publishing a project with only one sample, allowing them to choose between publishing as an individual sample or as a project. Includes tests for enableProjectMode parameter handling.
publish as sample is already chosen.
There was a problem hiding this comment.
Pull request overview
This pull request adds a confirmation modal for single-sample project publishing, allowing users to choose whether to publish as an individual sample or as a project containing one sample. The feature enhances user experience by making the publishing choice explicit rather than implicit.
Changes:
- Added a new modal component to prompt users when publishing single-sample projects
- Implemented
publishAsSample()andpublishAsProject()methods to handle user choices - Added tests to verify the
enableProjectModeparameter is correctly processed - Updated confirmation modal text to differentiate between sample and project publishing
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/Feature/Project/PublishProjectTest.php | Added 5 new tests covering single-sample publishing scenarios with enableProjectMode parameter |
| resources/js/Pages/Publish.vue | Added single-sample modal UI, handler methods, and conditional logic to display modal for single-sample projects |
| public/build/manifest.json | Auto-generated build artifact reflecting frontend changes |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #1342 +/- ##
==============================================
Coverage 72.90% 72.90%
Complexity 2358 2358
==============================================
Files 209 209
Lines 9091 9091
==============================================
Hits 6628 6628
Misses 2463 2463
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add modal to prompt users when publishing a project with only one sample, allowing them to choose between publishing as an individual sample or as a project. Includes tests for enableProjectMode parameter handling.
Key Changes:
fixes #13