Skip to content

Conversation

frano-m
Copy link
Contributor

@frano-m frano-m commented Jun 24, 2025

Closes #578.

This pull request refactors how Fastq FTP data is processed and displayed in the table component, improves the handling of cell rendering, and removes redundant code. The most important changes include replacing the getFastqFTP function with a new buildFastqFTP utility, modifying the BasicCell component usage, and simplifying column definitions in the useTable hook.

Refactoring Fastq FTP processing:

  • Added a new buildFastqFTP function in viewBuilders.ts to process Fastq FTP values, transforming semicolon-separated URLs into a comma-separated string of their last parts. This replaces the removed getFastqFTP function. ([[1]](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-20e967ed605f3b47c7b0abe8bc8b18d1d1e404b2a922362d8b2b01c638e84eefR1-R30), [[2]](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-963b15643594690e86c2611f0c5aec47db7dcaf1964495ff7866b97fd45c5914L1-L12))

Cell rendering improvements:

  • Updated the BasicCell component to remove the noWrap prop, ensuring better flexibility in text rendering. ([app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/PairedEndStep/components/ENASequencingData/components/CollectionSelector/components/Table/components/TableCell/components/BasicCell/basicCell.tsxL11-R11](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-e57a33691433ad32d18b8b2175587349cba2380b6569b330e3528d72d70469edL11-R11))
  • Modified the useTable hook to use the buildFastqFTP function for the "Fastq FTP" column and adjusted how BasicCell is invoked for dynamic cell rendering. ([[1]](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-b0df6cf594d8eb508f9167ebcb579d30ac65c62f570204904143b6265426e139L14-R14), [[2]](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-b0df6cf594d8eb508f9167ebcb579d30ac65c62f570204904143b6265426e139L26-L92))

Simplification of column definitions:

  • Removed redundant cell: BasicCell definitions for multiple columns in the useTable hook, streamlining the column configuration. ([app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/PairedEndStep/components/ENASequencingData/components/CollectionSelector/hooks/UseTable/hook.tsL26-L92](https://github.com/galaxyproject/brc-analytics/pull/603/files#diff-b0df6cf594d8eb508f9167ebcb579d30ac65c62f570204904143b6265426e139L26-L92))
image

Copy link
Contributor

@Copilot 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 refactors Fastq FTP processing, streamlines cell rendering, and simplifies table column definitions.

  • Introduces buildFastqFTP to replace the old getFastqFTP logic and remove its file.
  • Updates useTable to use buildFastqFTP for the “Fastq FTP” column and drops redundant BasicCell declarations.
  • Removes the noWrap prop from BasicCell for more flexible text rendering.

Reviewed Changes

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

File Description
viewBuilders.ts Added buildFastqFTP utility to process semicolon-separated FTP URLs.
hook.ts Updated useTable to import/use buildFastqFTP and removed getFastqFTP import and duplicate cell: BasicCell entries.
accessorFn.ts Deleted the old getFastqFTP function file.
basicCell.tsx Removed the noWrap prop from the Typography in BasicCell.

@NoopDog NoopDog merged commit 9c1d5f7 into main Jun 24, 2025
3 checks passed
@frano-m frano-m deleted the fran/578-workflow-paired branch June 26, 2025 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

only one of two paired fastq listed in workflow stepper
2 participants