IGVF-3439 Display construct delivery methods on sample page#1039
Merged
Conversation
* Update npm packages. When highlighting a property on an individual schema page, have it scroll farther down to avoid it getting hidden by the sticky header. * Change display of `nucleic_acid_delivery` to sorted display of `construct_delivery_methods`. * Change `SampleDataItems.commonProperties` to use `construct_delivery_methods` instead of `nucleic_acid_delivery`.
There was a problem hiding this comment.
Pull request overview
This PR updates the Sample page to display the new construct_delivery_methods field (replacing the older nucleic-acid-specific field), adjusts schema-property scroll offset styling, and updates the lockfile for newer Tailwind-related packages.
Changes:
- Replace
nucleic_acid_deliverydisplay with sorted/joinedconstruct_delivery_methodson sample-derived object pages. - Adjust schema property anchor scroll margin at the
@2xlcontainer breakpoint. - Update
package-lock.jsonwith Tailwind CSS patch updates (and additional transitive/tooling bumps).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
components/common-data-items.js |
Renders construct_delivery_methods (array) in SampleDataItems and updates commonProperties. |
pages/profiles/[...profile].js |
Tweaks @2xl scroll-margin class for schema property anchors. |
package-lock.json |
Locks updated Tailwind packages and other related dependency versions/metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Code Review — Branch
IGVF-3439-construct-deliveryReviewer: Claude Sonnet 4.6
Date: 2026-04-22
Comparing:
dev...IGVF-3439-construct-deliverySummary
This branch renames and expands the "nucleic acid delivery" sample field to the more general "construct delivery methods" field. It also applies a minor scroll-margin Tailwind class fix on the schema property page. A routine Tailwind CSS patch-version bump (4.2.2 → 4.2.4) is included in
package-lock.json.Changed Files
components/common-data-items.jspages/profiles/[...profile].jspackage-lock.jsonDetailed Review
components/common-data-items.jsWhat changed:
The
nucleic_acid_deliverystring field (rendered as a single value) is replaced byconstruct_delivery_methods, which is an array of strings. The new array is sorted case-insensitively and joined with", "for display.Observations:
item.construct_delivery_methods?.length > 0properly handlesundefined,null, and empty arrays before rendering._.sortBywith.toLowerCase()gives a stable, locale-agnostic alphabetical sort. Using the existing Lodash import is consistent with the rest of the file.commonPropertiesupdated correctly.construct_delivery_methodswas added andnucleic_acid_deliveryremoved fromSampleDataItems.commonProperties, keeping the property list in sync with the rendered output. The list remains alphabetically ordered.itemis typed asPropTypes.object, so no update is required there.", "is simple and readable, but ifconstruct_delivery_methodsvalues can themselves contain commas (unlikely for enum-style values, but worth confirming against the schema), a different separator might be safer. This is low risk for controlled vocab fields.pages/profiles/[...profile].jsWhat changed:
The Tailwind responsive scroll-margin class was changed from
@2xl:scroll-mt-32to@2xl:scroll-mt-44.Observations:
@2xlcontainer breakpoint from8remto11rem, presumably to prevent a sticky header from obscuring highlighted schema properties when scrolled into view.package-lock.jsonIssues Found
None. The changes are small, focused, and internally consistent.
Recommendation
Merge approved. ✅
The changes are minimal, well-scoped, and correct:
commonPropertieslist is kept in sync.The only thing worth a second look (not a blocker) is confirming with the data model that values in
construct_delivery_methodsare controlled-vocabulary strings that will never themselves contain commas, to validate the join separator choice.