Skip to content

[Story] FEAT-SAMBAT-04: Samples-only UI (remove batch grid and batch dialogs) #1552

Description

@KochTobi-Agent

Parent Feature

#1548

Requirement IDs

SAMPLE-R-04

User Story

As a user managing samples in a project, I want a samples-only view where samples can be registered, edited, and deleted directly (without the explicit batch concept), so that I manage samples in the same bulk, Excel-based way I manage measurements.

Acceptance Criteria

  • Given a user navigates to the samples section of a project/experiment, When the view loads, Then no batch grid is displayed (the BatchDetailsComponent is removed).
  • Given a user registers samples, When they start registration, Then they upload sample metadata via an Excel spreadsheet directly (no separate batch dialog; RegisterSampleBatchDialog and EditSampleBatchDialog are removed).
  • Given a sample grid is displayed, When the grid renders, Then the batch value is shown as a mandatory column on the sample and remains sortable/filterable.
  • Given a sample grid is displayed, When the grid renders, Then the registration and modification date are shown for each sample.
  • Given a user edits samples, When they select samples in the grid and trigger edit, Then they download a pre-filled Excel template containing the selected samples current values, modify editable fields, and re-upload to apply changes (mirrors the measurement edit workflow).
  • Given a user deletes samples, When they select the corresponding samples in the grid, Then the selected samples are deleted in one action.
  • Given the batch concept is removed from the UI, When the view is shown, Then no batch-specific actions (create/edit/delete batch) are available.

Notes & Context

  • Part of FEAT-SAMPLE-BATCH-REMOVAL (Remove explicit sample batch from Data Manager)
  • Stable Story ID: FEAT-SAMBAT-04
  • Removes: BatchDetailsComponent, RegisterSampleBatchDialog, EditSampleBatchDialog, and batch event listeners in SampleInformationMain (datamanager-app/.../views/projects/project/samples/).
  • Registration and editing both use Excel spreadsheets, the same as the batch flow did; editing is pre-filled for the selected samples and deletion is a multi-select action, mirroring the measurement workflow (MEASUREMENT-R-01 / MEASUREMENT-R-02).
  • The batch value remains visible as a column on samples (see SampleDetailsComponent "Batch" column using SamplePreview::batchLabel).
  • Stakeholder request: Incorporate Batch definition during Sample Sheet upload/edit template #1330 — batch as a distinct (mandatory) column in registration and edit templates; modification and registration date shown in the sample grid; Figma UI prototype linked there.
  • Requirement: SAMPLE-R-04 (added in PR [Docs] Add sample batch removal requirements #1553).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions