-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mccalluc/previews to resources #2121
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e575447
"Previews" -> "Resources"
mccalluc af65ac3
changelog
mccalluc 1d1cc8a
menus in sync!
mccalluc 6d78761
remove menuListId... does anything break?
mccalluc 96cf952
Gratuitous factor out
mccalluc c6db68a
comment out publications until they are ready
mccalluc b63b1b3
Merge branch 'main' into mccalluc/previews-to-resources
mccalluc 6f213ef
Merge branch 'main' into mccalluc/previews-to-resources
mccalluc 4a359c6
Helper component for fold down menus: state is internal
mccalluc a21e5f6
fix tests... with a hack
mccalluc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Change "Previews" menu to "Resources". |
This file contains 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
3 changes: 3 additions & 0 deletions
3
context/app/static/js/components/Header/AtlasToolsLinks/index.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import AtlasToolsLinks from './AtlasToolsLinks'; | ||
|
||
export default AtlasToolsLinks; |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
3 changes: 0 additions & 3 deletions
3
context/app/static/js/components/Header/PreviewLinks/index.js
This file was deleted.
Oops, something went wrong.
15 changes: 10 additions & 5 deletions
15
...ents/Header/PreviewLinks/PreviewLinks.jsx → ...ts/Header/ResourceLinks/ResourceLinks.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import DropdownLink from '../DropdownLink'; | ||
// import { StyledDivider } from '../HeaderContent/style'; | ||
|
||
function PreviewLinks(props) { | ||
function ResourceLinks(props) { | ||
const { isIndented } = props; | ||
return ( | ||
<> | ||
{/* <DropdownLink href="/publication" isIndented={isIndented}> | ||
Publications | ||
</DropdownLink> | ||
<StyledDivider /> */} | ||
{['Multimodal Molecular Imaging Data', 'Cell Type Annotations'].map((previewName) => ( | ||
<DropdownLink | ||
key={previewName} | ||
href={`/preview/${previewName.toLowerCase().replace(/\W+/g, '-')}`} | ||
isIndented={isIndented} | ||
> | ||
{previewName} | ||
Preview: {previewName} | ||
</DropdownLink> | ||
))} | ||
</> | ||
); | ||
} | ||
|
||
PreviewLinks.propTypes = { | ||
ResourceLinks.propTypes = { | ||
isIndented: PropTypes.bool, | ||
}; | ||
|
||
PreviewLinks.defaultProps = { | ||
ResourceLinks.defaultProps = { | ||
isIndented: false, | ||
}; | ||
|
||
export default React.memo(PreviewLinks); | ||
export default React.memo(ResourceLinks); |
3 changes: 3 additions & 0 deletions
3
context/app/static/js/components/Header/ResourceLinks/index.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ResourceLinks from './ResourceLinks'; | ||
|
||
export default ResourceLinks; |
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this possibly considered 'not visible' before the hack because the test string provided isn't an exact match of what's on the page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean it's just a substring? I don't think that's a problem, but let me check...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, even if it's the full string, the failure is the same:
Good to confirm, though.