Skip to content

60 make life easier for editorsreviewers#61

Merged
kosarko merged 8 commits intoclarin-v7from
60-make-life-easier-for-editorsreviewers
Oct 23, 2025
Merged

60 make life easier for editorsreviewers#61
kosarko merged 8 commits intoclarin-v7from
60-make-life-easier-for-editorsreviewers

Conversation

@amadulhaxxani
Copy link
Copy Markdown

  • added action buttons (approve, reject, edit, and return to pool) inside the view page

adding the claimed actions button in view page
Workflow Actions Integration tests
adding test for onWorkflowActionCompleted and no response
subscription cleanup test
test for integration with action buttons
@amadulhaxxani amadulhaxxani linked an issue Oct 21, 2025 that may be closed by this pull request
@kosarko kosarko requested a review from Copilot October 21, 2025 14:11
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

This PR enhances the workflow review experience by adding action buttons (approve, reject, edit, return to pool) directly to the item view page, eliminating the need to navigate away to perform these actions.

Key Changes:

  • Added a showViewButton input to ClaimedTaskActionsComponent to conditionally hide the "View" button when already on the view page
  • Integrated workflow action buttons into the full item page view for workflow items
  • Added comprehensive unit tests covering the new functionality

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/themes/custom/lazy-theme.module.ts Imported MyDSpaceActionsModule to enable workflow actions in custom theme
src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.ts Added showViewButton input property to control view button visibility
src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.spec.ts Added tests for showViewButton functionality and action button integration
src/app/shared/mydspace-actions/claimed-task/claimed-task-actions.component.html Made view button conditional based on showViewButton property
src/app/item-page/item-page.module.ts Imported MyDSpaceActionsModule to enable workflow actions in item pages
src/app/item-page/full/full-item-page.component.ts Added workflow item and claimed task data fetching logic with proper link resolution
src/app/item-page/full/full-item-page.component.spec.ts Added comprehensive tests for workflow integration, action completion, and subscription cleanup
src/app/item-page/full/full-item-page.component.html Added workflow action buttons at top and bottom of item view with conditional rendering

removed extra lines
fixes suggested by copilot
removed extra line
Copy link
Copy Markdown
Member

@kosarko kosarko left a comment

Choose a reason for hiding this comment

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

looks good

@kosarko kosarko merged commit 90de73f into clarin-v7 Oct 23, 2025
7 checks passed
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.

make life easier for editors/reviewers

3 participants