Skip to content

[Port to dtq-dev] Add 'Add URL bitstream' feature to workspace items#1269

Open
kosarko wants to merge 2 commits into
dataquest-dev:dtq-devfrom
ufal:backport-110-to-dtq-dev
Open

[Port to dtq-dev] Add 'Add URL bitstream' feature to workspace items#1269
kosarko wants to merge 2 commits into
dataquest-dev:dtq-devfrom
ufal:backport-110-to-dtq-dev

Conversation

@kosarko
Copy link
Copy Markdown

@kosarko kosarko commented Mar 30, 2026

Port of ufal#110 by @amadulhaxxani to dtq-dev.

Introduce an "Add bitstream from URL" action for workspace items: add a conditional button and modal UI to input a file URL and optional name. Implement component support using ScriptDataService to call the 'file-downloader' script, manage processing state, show success/error notifications, and navigate to the created process detail on success. Add related unit tests (scriptDataService stub, UI visibility, invocation params, success/failure flows) and update English and Czech i18n strings.

(cherry picked from commit 65c3a5c)
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ports the “Add URL bitstream” workflow action to dtq-dev, enabling users to attach a new bitstream to a workspace item by invoking the backend file-downloader script with user-provided parameters.

Changes:

  • Added an “Add bitstream from URL” action button and modal UI in workspace item actions.
  • Implemented script availability gating + invocation logic (with notifications and redirect to the created process).
  • Added EN/CS i18n strings for the new button + modal.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/assets/i18n/en.json5 Adds new English translations for the URL-bitstream action + modal.
src/assets/i18n/cs.json5 Adds new Czech translations for the URL-bitstream action + modal.
src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.ts Adds script-availability check and invokes file-downloader with URL/name parameters.
src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.spec.ts Adds unit tests covering visibility, invocation parameters, navigation, and notifications.
src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.html Adds the new action button and the “Add bitstream from URL” modal markup.

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.

4 participants