add skipProgress option to series instrument#1353
add skipProgress option to series instrument#1353joshunrau merged 6 commits intoDouglasNeuroInformatics:mainfrom
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
WalkthroughThe PR extends SERIES instrument handling with a structured content format supporting an optional skipProgress flag. New type definitions, utility functions, and schema validators normalize content extraction, while the gateway synchronizer, instruments service, and React renderer are updated to use these abstractions. An example instrument definition adopts the new structure. ChangesSERIES Instrument Skip-Progress Feature
Sequence DiagramsequenceDiagram
participant Gateway as Gateway<br/>Synchronizer
participant Service as Instruments<br/>Service
participant Utils as Instrument<br/>Utils
participant Component as Series<br/>Renderer
Gateway->>Utils: getSeriesInstrumentItems(content)
Utils-->>Gateway: ScalarInstrumentInternal[]
Gateway->>Gateway: Validate seriesItems.length
Gateway->>Service: Create/update records with items
Service->>Utils: getSeriesInstrumentItems(content)
Utils-->>Service: Extract items
Service->>Service: Generate IDs from items
Service->>Service: Validate each item exists
Note over Component: Bundle received
Component->>Utils: getSeriesInstrumentParams(content)
Utils-->>Component: { skipProgress?: boolean }
Component->>Component: Compute skipProgress<br/>from root.DONE + params
Note over Component: First step rendering
alt skipProgress = true
Component->>Component: Auto-advance to next step
Component->>Component: Set isInstrumentInProgress=true
else skipProgress = false
Component->>Component: Show first step normally
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Description? |
Summary by CodeRabbit
New Features
Refactor