Skip to content

Conversation

@bobular
Copy link
Member

@bobular bobular commented Nov 14, 2025

Fixes #1406

This commit adds a new debugging feature to progressively expand all collapsed sections in the gene page, one at a time, stopping on the first runtime exception. This feature is only available in non-production environments.

Changes:

  • Added new PROGRESSIVE_EXPAND_ALL action and progressiveExpandAll() function
  • Implemented observeProgressiveExpand epic that:
    • Expands sections sequentially with 300ms delay between each
    • Monitors the unhandledErrors Redux state for new errors
    • Stops expansion immediately upon detecting a runtime error
    • Logs progress and errors to console for debugging
  • Added debug button to gene page RecordMainSection component
    • Only visible when process.env.NODE_ENV !== 'production'
    • Positioned beside existing "Collapse all sections" button
    • Includes bug icon and descriptive tooltip

The progressive expansion helps identify which specific section causes runtime errors during development and debugging.

This commit adds a new debugging feature to progressively expand all
collapsed sections in the gene page, one at a time, stopping on the first
runtime exception. This feature is only available in non-production
environments.

Changes:
- Added new PROGRESSIVE_EXPAND_ALL action and progressiveExpandAll() function
- Implemented observeProgressiveExpand epic that:
  * Expands sections sequentially with 300ms delay between each
  * Monitors the unhandledErrors Redux state for new errors
  * Stops expansion immediately upon detecting a runtime error
  * Logs progress and errors to console for debugging
- Added debug button to gene page RecordMainSection component
  * Only visible when process.env.NODE_ENV !== 'production'
  * Positioned beside existing "Collapse all sections" button
  * Includes bug icon and descriptive tooltip

The progressive expansion helps identify which specific section causes
runtime errors during development and debugging.
@bobular bobular marked this pull request as draft November 14, 2025 22:05
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.

debugging: dev/qa only: Add an "Expand all sections for debugging" link/button to gene pages

3 participants