Skip to content

Comments

feat: automatically open for editing the cloned sample#1366

Open
jekabs-karklins wants to merge 3 commits intodevelopfrom
SWAP-1792-automatically-open-for-editing-the-cloned-sample
Open

feat: automatically open for editing the cloned sample#1366
jekabs-karklins wants to merge 3 commits intodevelopfrom
SWAP-1792-automatically-open-for-editing-the-cloned-sample

Conversation

@jekabs-karklins
Copy link
Contributor

@jekabs-karklins jekabs-karklins commented Feb 20, 2026

Description

This PR introduces a new feature that automatically opens for editing the cloned sample.
output_highres

Motivation and Context

This change was necessary to improve the user experience by reducing the number of steps a user has to take to edit a cloned sample. It also feels like natural thing to open the cloned sample because user would want to do some modifications.

Changes

  1. In QuestionaryComponentSampleDeclaration.tsx, after cloning a sample, the cloned sample is automatically set as the selected sample for editing.
  2. (bugfix) A new condition is added in SampleAuthorization.ts that checks if the user is an officer and returns true if they are.

@jekabs-karklins jekabs-karklins requested a review from a team as a code owner February 20, 2026 09:43
@jekabs-karklins jekabs-karklins requested review from EdwardHaynes and removed request for a team February 20, 2026 09:43
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.

1 participant