Skip to content

Conversation

@rugeli
Copy link
Collaborator

@rugeli rugeli commented Nov 5, 2025

Problem

What is the problem this work solves, including
closes #354
closes #355

Solution

What I/we did to solve this problem

  • updated link to new catalog so the go to parental line button now directs to the corresponding cell line page
  • centered text and adjusted icon position in the button to match the design

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Steps to Verify:

  1. go to disease catalog preview site
  2. go to parental line --> click go to parental line button
    • verify the link out site
    • verify the button styles
Screenshot 2025-11-05 at 9 16 45 AM

@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for cell-catalog ready!

Name Link
🔨 Latest commit cae8796
🔍 Latest deploy log https://app.netlify.com/projects/cell-catalog/deploys/69150df5a7f2bc0008a560e0
😎 Deploy Preview https://deploy-preview-358--cell-catalog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

}}
href="https://www.allencell.org/cell-catalog.html"
href={`/cell-line/AICS-${props.cellLineId}-${props.cloneNumber}/`}
target="_blank"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

keeping target="_blank" so the parental line opens in a new tab. Open to feedback if internal navigation would be better in the same tab

Copy link
Collaborator

Choose a reason for hiding this comment

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

we can double check with travis

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I'm pretty sure we have a utility function that takes an id and makes it AICS-CELL_ID. you could adjust it to add clone number optionally

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah its formatCellLineId

@rugeli rugeli changed the title update parental link parental line modal: update link and button styling Nov 5, 2025
@rugeli rugeli requested review from interim17 and meganrm November 5, 2025 17:23
Copy link
Contributor

@interim17 interim17 left a comment

Choose a reason for hiding this comment

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

Just mentioned the util you could use for the cell line string

}}
href="https://www.allencell.org/cell-catalog.html"
href={`/cell-line/AICS-${props.cellLineId}-${props.cloneNumber}/`}
target="_blank"
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah its formatCellLineId

Comment on lines 5 to 8
if (cloneNumber !== undefined) {
return `AICS-${cellLineId}-${cloneNumber}`;
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The cell line link currently uses non-zero-padded version of ids, e.g.(/cell-line/AICS-5-50/ or /disease-cell-line/AICS-97/)

@rugeli
Copy link
Collaborator Author

rugeli commented Nov 7, 2025

@meganrm @interim17 Just wanted to re-request your review to see if the update in the util looks okay. To make the links work, the function now returns both padded and non-padded formats (0005 vs 5).
It feels a bit hacky to me and makes me think we should standardize the cell line id format everywhere to always use zero-padded ids(AICS-0005-50 or AICS-0097). Including in cell line folder names, admin site, urls. In a separate refactor pr

@rugeli rugeli requested review from interim17 and meganrm November 7, 2025 21:31
@rugeli rugeli merged commit 13c5eb2 into main Nov 13, 2025
4 checks passed
@rugeli rugeli deleted the feature/link-to-new-catalog branch November 13, 2025 17:39
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.

The parental line button in the disease catalog is off center The parental lines in the disease catalog should link to the new catalog

4 participants