feat(DCP-2356): Add AITB Collection Preview command#290
Merged
keyboSlice merged 5 commits intomainfrom Feb 2, 2026
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new prolific collection preview <collection-id> command to open a collection preview page in the user’s browser, and introduces PROLIFIC_APPLICATION_URL to override the default app base URL.
Changes:
- Added
collection previewCobra command that validates access viaGetCollectionand opens a preview URL in the browser. - Added preview URL/path helpers for collections.
- Added configurable application base URL via
PROLIFIC_APPLICATION_URL(defaulting tohttps://app.prolific.com).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/collection/collection.go | Registers the new preview subcommand under collection. |
| cmd/collection/preview.go | Implements the collection preview command (access check + browser open + output). |
| cmd/collection/preview_test.go | Adds tests for the new preview command behavior and output. |
| config/config.go | Adds PROLIFIC_APPLICATION_URL support and trims trailing slashes. |
| ui/collection/view.go | Adds GetCollectionPreviewPath / GetCollectionPreviewURL helpers using config. |
| ui/collection/view_test.go | Adds tests for the new preview path/URL helper functions. |
…s validator in collection preview command
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
script-this
reviewed
Feb 2, 2026
script-this
reviewed
Feb 2, 2026
…sistent error messaging
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
collection previewcommand that opens a collection in the browser for preview before publishingPROLIFIC_APPLICATION_URLenvironment variable to override the default application URLChanges
New Command:
collection previewThis command:
Environment Variable Support
Added
PROLIFIC_APPLICATION_URLenvironment variable (defaults tohttps://app.prolific.com) to allow overriding the application URL, useful for testing against staging environments.Ticket: DCP-2356
Note
Low Risk
Adds a new CLI command and a configurable base URL; behavior is additive and only affects URL generation/browser-opening, with minimal impact on existing flows.
Overview
Adds a new
prolific collection preview <collection-id>command that validates access viaGetCollection, prints a preview URL, and attempts to open it in the user’s default browser (non-fatal if browser launch fails, and shows the feature-access message when the feature isn’t enabled).Introduces
PROLIFIC_APPLICATION_URL(defaulting tohttps://app.prolific.comwith trailing slash trimmed) and centralizes preview URL construction inui/collection(GetCollectionPreviewPath/GetCollectionPreviewURL), with accompanying unit tests.Written by Cursor Bugbot for commit 9ee8ee8. This will update automatically on new commits. Configure here.