Skip to content

fixed order in submission and admin view#2155

Open
cstarcher wants to merge 4 commits into
mainfrom
2104_submission_custom_actions
Open

fixed order in submission and admin view#2155
cstarcher wants to merge 4 commits into
mainfrom
2104_submission_custom_actions

Conversation

@cstarcher
Copy link
Copy Markdown
Member

@cstarcher cstarcher commented May 22, 2026

Description

Prevents reordering of custom actions in submission and admin views when actions are selecte/deselected
Resolves #2104

Type of Change

  • Bug fix
  • New feature
  • Breaking change

AI Usage Disclosure

AI Tool(s) Used Including Version:
GPT-5.3-Codex

Nature of Use:

  • Code generation
  • Code suggestions/refactoring
  • Documentation
  • Tests
  • Other (please describe)

Additional Description:

  • No AI Used

Copy link
Copy Markdown
Contributor

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 fixes unstable ordering of “Custom Actions” displayed in the submission/admin list view by sorting action values by their definition’s configured position, and by exposing that position in the JSON view used for submission lists.

Changes:

  • Sort row.customActionValues in the admin list UI by definition.position to keep display order stable across select/deselect updates.
  • Expose CustomActionDefinition.position in Views.SubmissionList JSON via an overridden getPosition() with @JsonView.

Reviewed changes

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

File Description
src/main/webapp/app/views/admin/list.html Orders rendered custom action values by definition.position to prevent UI reordering.
src/main/java/org/tdl/vireo/model/CustomActionDefinition.java Makes position available in the SubmissionList JSON view so the UI can reliably sort by it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/org/tdl/vireo/model/CustomActionDefinition.java
Comment thread src/main/java/org/tdl/vireo/model/CustomActionDefinition.java
Copilot AI review requested due to automatic review settings May 22, 2026 19:09
Copy link
Copy Markdown
Contributor

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

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

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.

Maintain consistent order for a submission's custom actions

3 participants