fix: only one of two paired fastq listed in workflow stepper (#578) #603
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 newbuildFastqFTP
utility, modifying theBasicCell
component usage, and simplifying column definitions in theuseTable
hook.Refactoring Fastq FTP processing:
buildFastqFTP
function inviewBuilders.ts
to process Fastq FTP values, transforming semicolon-separated URLs into a comma-separated string of their last parts. This replaces the removedgetFastqFTP
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:
BasicCell
component to remove thenoWrap
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)
)useTable
hook to use thebuildFastqFTP
function for the "Fastq FTP" column and adjusted howBasicCell
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:
cell: BasicCell
definitions for multiple columns in theuseTable
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)
)