Improve UX of adding project versions#1570
Merged
Merged
Conversation
* Makes the version selector more visible by rendering it as a pill, and including an indicator for the number of versions. * Moves the button to add a new version from the project details modal to the version dropdown. Makes it more visible and requires fewer clicks to reach. * Marks latest versions with a star icon instead of a verbose `LATEST VERSION` label. * Migrates cloning itself to the v2 API, which is synchronous and returns the UUID of the cloned project. * Keep the version creation modal open with a spinner until cloning completes. * Navigates to the cloned project after request completion. * Provides inline feedback when a project with the chosen version already exists. * Makes dependencies between to-carry-over project data more visible by automatically toggling them. For example, disabling "Include components" also disables "Include findings", since the latter depends on the former. * Makes the version creation modal a proper form, so submission via enter works. Signed-off-by: nscuro <nscuro@protonmail.com>
✅ 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
This PR refines the “add project version” flow to make version switching/creation more discoverable and to streamline cloning by switching to the synchronous v2 cloning API, keeping the modal open with progress feedback and navigating to the cloned project on completion.
Changes:
- Updates the Project page version selector to a pill-style dropdown with tooltips, latest-version star indicator, and an optional version-count badge; moves “Add Version” into that dropdown.
- Refactors the “Add Version” modal into a real form (Enter-to-submit), adds inline conflict feedback, adds carry-over dependency toggling, and migrates cloning to
POST /api/v2/projects/{uuid}/clonewith a blocking spinner state. - Adds/updates i18n strings needed for the new UX (new keys in
en, placeholders in other locales).
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/views/portfolio/projects/ProjectDetailsModal.vue | Removes the “Add Version” button from the details modal footer (entry point moved elsewhere). |
| src/views/portfolio/projects/ProjectAddVersionModal.vue | Converts modal to a form with inline validation feedback, dependent toggles, synchronous v2 clone call, spinner/lockout while cloning, and navigation on success. |
| src/views/portfolio/projects/Project.vue | Implements pill-style version dropdown UI, adds “Add Version” action in dropdown, uses star icon for latest, and adds version count indicator. |
| src/i18n/locales/zh.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/zh-TW.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/uk-UA.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/ru.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/pt.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/pt-BR.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/pl.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/ja.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/it.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/hi.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/fr.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/es.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
| src/i18n/locales/en.json | Adds the new UX strings, adjusts carry-over labels, and removes the no-longer-used cloning message. |
| src/i18n/locales/de.json | Adds new message keys (placeholders) and removes no-longer-used cloning/audit-history strings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Improves UX of adding project versions:
LATEST VERSIONlabel.Addressed Issue
N/A
Additional Details
Docs PR: DependencyTrack/docs#125
Before
After
Checklist