Skip to content

go back to the old schematic#633

Merged
HaneenT merged 1 commit into
developfrom
KPMP-6611_shift-layout
Mar 27, 2026
Merged

go back to the old schematic#633
HaneenT merged 1 commit into
developfrom
KPMP-6611_shift-layout

Conversation

@Dert1129

@Dert1129 Dert1129 commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added a dedicated Search component positioned earlier in the workflow for improved discoverability.
  • Style

    • Reorganized layout structure; data table now spans full width.
    • Updated component styling and removed unused CSS rules.
  • Chores

    • Disabled experimental feature by default.

@coderabbitai

coderabbitai Bot commented Mar 24, 2026

Copy link
Copy Markdown

Walkthrough

The PR reorganizes the Explorer component's layout by extracting ConceptSelectFullWidth from DataSelector into a new dedicated Search component, repositioning DataSelectorContainer to appear later in the DOM, simplifying DataSelector's UI, and removing associated CSS classes. A feature flag for featureSTData is disabled in the initial state.

Changes

Cohort / File(s) Summary
Search Component Extraction
src/components/Explorer/Search.js (new), src/components/Explorer/Explorer.js
Created new Search component wrapping ConceptSelectFullWidth with useRedirection={true}, redirect="/summary", and featureNewCellClusterDate prop. Repositioned Search to appear after WelcomeText and moved DataSelectorContainer to appear after NephronSchemaCardContainer in the DOM.
DataSelector UI Simplification
src/components/Explorer/DataSelector.js
Removed ConceptSelectFullWidth import and left-column UI block (lg='4'). Expanded SamplesByDataTypeTable container from lg='8' to full width (lg='12') and eliminated "expanded-search-container" wrapper.
Layout Styling Cleanup
src/components/Explorer/NephronSchemaCard.js, src/index.scss
Removed "search-container" CSS class from NephronSchemaCard's top-level Container. Deleted .expanded-search-container CSS rule that enforced height: 97.5%.
Feature Configuration
src/initialState.json
Changed featureSTData initial state value from true to false.

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch KPMP-6611_shift-layout

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ab0bd780-bbf5-48f8-9042-16702893ffe2

📥 Commits

Reviewing files that changed from the base of the PR and between 503c335 and 8c876a6.

📒 Files selected for processing (6)
  • src/components/Explorer/DataSelector.js
  • src/components/Explorer/Explorer.js
  • src/components/Explorer/NephronSchemaCard.js
  • src/components/Explorer/Search.js
  • src/index.scss
  • src/initialState.json
💤 Files with no reviewable changes (1)
  • src/index.scss

<article>
<WelcomeText />
<DataSelectorContainer />
<Search />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify where featureNewCellClusterDate is sourced and whether it's wired to Explorer/Search.
rg -n -C3 '\bfeatureNewCellClusterDate\b' src/components src/actions src/reducers
rg -n -C3 '<Search' src/components/Explorer/Explorer.js src/components/Explorer/Search.js

Repository: KPMP/pegasus-web

Length of output: 1323


🏁 Script executed:

cat -n src/components/Explorer/Explorer.js | head -50

Repository: KPMP/pegasus-web

Length of output: 2254


🏁 Script executed:

cat -n src/components/Explorer/Search.js | head -30

Repository: KPMP/pegasus-web

Length of output: 1159


🏁 Script executed:

rg -n "featureNewCellClusterDate" --type js -A 5 -B 5 | head -100

Repository: KPMP/pegasus-web

Length of output: 1024


🏁 Script executed:

rg -n "export.*Explorer|class Explorer|function Explorer" src/components/Explorer/

Repository: KPMP/pegasus-web

Length of output: 231


🏁 Script executed:

rg -n "connect\(|Redux\|Provider\|useSelector" src/components/Explorer/

Repository: KPMP/pegasus-web

Length of output: 443


🏁 Script executed:

rg -n "featureNewCellClusterDate" src/reducers --type js | head -20

Repository: KPMP/pegasus-web

Length of output: 112


🏁 Script executed:

rg -n "featureNewCellClusterDate" src/ --type js | grep -E "(state|reducer|initialState)" | head -20

Repository: KPMP/pegasus-web

Length of output: 42


🏁 Script executed:

# Check if any parent component passes featureNewCellClusterDate to Explorer
rg -n "Explorer" src/components --type js -A 3 -B 3 | grep -A 5 -B 5 "featureNewCellClusterDate"

Repository: KPMP/pegasus-web

Length of output: 42


🏁 Script executed:

# Find all mentions of featureNewCellClusterDate in the entire codebase
rg -n "featureNewCellClusterDate" --type js

Repository: KPMP/pegasus-web

Length of output: 266


🏁 Script executed:

# Check structure of src directory
find src -type d -maxdepth 2 | head -20

Repository: KPMP/pegasus-web

Length of output: 476


🏁 Script executed:

# Look at the reducer/state structure
fd ".*[Rr]educ" src --type f | head -10

Repository: KPMP/pegasus-web

Length of output: 337


🏁 Script executed:

# Check the main reducers file
cat -n src/reducers.js

Repository: KPMP/pegasus-web

Length of output: 1042


🏁 Script executed:

# Check the featureSwitchReducer since featureNewCellClusterDate looks like a feature flag
cat -n src/components/FeatureSwitch/featureSwitchReducer.js

Repository: KPMP/pegasus-web

Length of output: 476


🏁 Script executed:

# Check initialState
find src -name "*initialState*" -o -name "*initial*" | head -10

Repository: KPMP/pegasus-web

Length of output: 81


🏁 Script executed:

cat src/initialState.json

Repository: KPMP/pegasus-web

Length of output: 253


🏁 Script executed:

# Check who imports/uses the Explorer component
rg -n "import.*Explorer|<Explorer" src/ --type js -B 2 -A 2

Repository: KPMP/pegasus-web

Length of output: 375


🏁 Script executed:

# Check the main App component to see the full component tree
fd -e js "app\.js|App\.js|index\.js" src --type f | xargs cat -n | head -100

Repository: KPMP/pegasus-web

Length of output: 5276


🏁 Script executed:

# Check if ConceptSelectFullWidth actually uses featureNewCellClusterDate
cat -n src/components/ConceptSelect/ConceptSelectFullWidth.js | head -50

Repository: KPMP/pegasus-web

Length of output: 918


🏁 Script executed:

# Search for featureNewCellClusterDate in ConceptSelectFullWidth
rg -n "featureNewCellClusterDate" src/components/ConceptSelect/ --type js -B 3 -A 3

Repository: KPMP/pegasus-web

Length of output: 42


🏁 Script executed:

# Check the git history to see if featureNewCellClusterDate was recently removed from Redux
git log --oneline --all -20 -- src/reducers.js src/initialState.json 2>/dev/null || echo "No git history available"

Repository: KPMP/pegasus-web

Length of output: 1164


🏁 Script executed:

# Check if featureNewCellClusterDate is actually used in ConceptSelectContainer
rg -n "featureNewCellClusterDate" src/components/ConceptSelect/ --type js

Repository: KPMP/pegasus-web

Length of output: 42


🏁 Script executed:

# Check ConceptSelectContainer for this prop usage
cat -n src/components/ConceptSelect/ConceptSelectContainer.js | head -80

Repository: KPMP/pegasus-web

Length of output: 1308


featureNewCellClusterDate prop is undefined in Search component.

At Line 26, Search is rendered without props, but Search forwards this.props.featureNewCellClusterDate to ConceptSelectFullWidth (in src/components/Explorer/Search.js, Line 14). This prop doesn't exist in Redux state and is not passed from any parent, so it will be undefined at runtime.

The proposed fix to pass the prop from Explorer is incomplete—Explorer itself doesn't have access to featureNewCellClusterDate (it uses connect(null, mapDispatchToProps) with no Redux state mapping). For a complete fix, featureNewCellClusterDate must first be added to Redux state and mapped to Explorer, then passed to Search.

Proposed interim fix
-                <Search />
+                <Search featureNewCellClusterDate={this.props.featureNewCellClusterDate} />

Note: This requires featureNewCellClusterDate to be added to Redux state first.

@HaneenT HaneenT merged commit dc46022 into develop Mar 27, 2026
1 check passed
@HaneenT HaneenT deleted the KPMP-6611_shift-layout branch March 27, 2026 13:55
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.

2 participants