Skip to content

refactor(website): rename wasap 'collection' mode to 'covSpectrumCollection' - #1325

Merged
fhennig merged 1 commit into
mainfrom
rename-collection-mode-to-cov-spectrum-collection
Jul 9, 2026
Merged

refactor(website): rename wasap 'collection' mode to 'covSpectrumCollection'#1325
fhennig merged 1 commit into
mainfrom
rename-collection-mode-to-cov-spectrum-collection

Conversation

@fhennig

@fhennig fhennig commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This is in anticipation of adding a 'collection' mode which will use the GenSpectrum collections: #1324

Summary

  • Renames the W-ASAP analysis mode string 'collection''covSpectrumCollection'
  • Renames CollectionAnalysisFilter component and files → CovSpectrumCollectionAnalysisFilter
  • Renames WasapCollectionFilter type → WasapCovSpectrumCollectionFilter
  • Renames collectionAnalysisModeEnabled config key → covSpectrumCollectionAnalysisModeEnabled
  • Updates filterDefaults.collectionfilterDefaults.covSpectrumCollection throughout

Makes it explicit that this mode is specific to CovSpectrum collections (as opposed to our own internal collections system).

…ctrumCollection'

Renames the mode string, filter component, type, and config key to make
clear this mode is specific to CovSpectrum collections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Jul 8, 2026 2:57pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the W-ASAP (wastewater) website frontend to rename the existing CovSpectrum-backed analysis mode from 'collection' to 'covSpectrumCollection', clarifying that it is distinct from the upcoming GenSpectrum “collections” mode (Issue #1324) and keeping the URL-state model explicit.

Changes:

  • Renamed the analysis mode discriminator string and config flag to covSpectrumCollection* across page state handling, config types, and data fetching.
  • Renamed the corresponding filter component/type to CovSpectrumCollection* to match the new mode name.
  • Updated wastewater defaults/config and adjusted unit/browser tests accordingly.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/src/views/pageStateHandlers/WasapPageStateHandler.ts Updates URL parse/serialize handling to use covSpectrumCollection mode.
website/src/views/pageStateHandlers/WasapPageStateHandler.spec.ts Updates page-state handler tests for renamed mode/type/config defaults.
website/src/types/wastewaterConfig.ts Updates organism config to enable and default to covSpectrumCollection mode where applicable.
website/src/components/views/wasap/wasapPageConfig.ts Renames mode/type/config discriminants and enabled-modes list.
website/src/components/views/wasap/useWasapPageData.ts Renames the collection-mode fetch path and its config flag checks.
website/src/components/pageStateSelectors/wasap/WasapPageStateSelector.tsx Updates selector wiring (state, rendering, labels) for the renamed mode/component.
website/src/components/pageStateSelectors/wasap/filters/CovSpectrumCollectionAnalysisFilter.tsx Renames the filter component/type usage to CovSpectrumCollection*.
Comments suppressed due to low confidence (1)

website/src/components/pageStateSelectors/wasap/filters/CovSpectrumCollectionAnalysisFilter.tsx:12

  • website/AGENTS.md recommends using a named props type for React components (instead of an inline object type). Extracting the props improves readability and keeps this component consistent with the repo’s React conventions.

Comment thread website/src/views/pageStateHandlers/WasapPageStateHandler.ts
@fhennig
fhennig merged commit e081b81 into main Jul 9, 2026
13 checks passed
@fhennig
fhennig deleted the rename-collection-mode-to-cov-spectrum-collection branch July 9, 2026 07:08
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.

3 participants