Skip to content

Commit

Permalink
Merge 76e21ef into b021d05
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Apr 11, 2022
2 parents b021d05 + 76e21ef commit 7981ed7
Show file tree
Hide file tree
Showing 71 changed files with 66 additions and 39 deletions.
Empty file modified neuroscout/frontend/REACT_README.md
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/README.md
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/cypress-test.json
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/cypress/fixtures/datasets.json
100644 → 100755
Empty file.
Empty file.
Empty file.
46 changes: 22 additions & 24 deletions neuroscout/frontend/cypress/integration/home_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,53 @@ describe('The Home Page', () => {
cy.visit('/')
})


it('navigation bar contents', () =>{
cy.get('.ant-menu').contains('Neuroscout').should(
'have.attr', 'href', '/'
)
it('navigation bar contents', () => {
cy.get('.ant-menu').contains('Neuroscout').should('have.attr', 'href', '/')
cy.get('.ant-menu').contains('Browse')
cy.get('.ant-menu').not('Public Analyses')
cy.get('.ant-menu').contains('Browse').click()
cy.get('.ant-menu').contains('Browse').trigger('mouseover')
cy.wait(100)
cy.get('.ant-menu').contains('Public Analyses').should(
'have.attr', 'href', '/public'
)
cy.get('.ant-menu')
.contains('Public Analyses')
.should('have.attr', 'href', '/public')
cy.get('.ant-menu').not('My Analyses')
cy.get('.ant-menu').contains('Help').should(
'have.attr', 'href', 'https://neuroscout.github.io/neuroscout/'
)
cy.get('.ant-menu')
.contains('Help')
.should('have.attr', 'href', 'https://neuroscout.github.io/neuroscout/')
cy.get('.ant-menu').contains('Sign in')
cy.get('.ant-menu').contains('Sign up')

})

it('splash page contents', () => {
cy.get('.splashLogo').should('have.length', 4)
cy.contains('A platform for fast and flexible re-analysis of (naturalistic) fMRI studies')
cy.get('.ant-btn').contains('Browse public analyses').parent().should(
'have.attr', 'href', '/public')
cy.get('.ant-btn').contains('Learn more').parent().should(
'have.attr', 'href', 'https://neuroscout.github.io/neuroscout/'
cy.contains(
'A platform for fast and flexible re-analysis of (naturalistic) fMRI studies',
)

cy.get('.ant-btn')
.contains('Browse public analyses')
.parent()
.should('have.attr', 'href', '/public')
cy.get('.ant-btn')
.contains('Learn more')
.parent()
.should('have.attr', 'href', 'https://neuroscout.github.io/neuroscout/')
})

it('test sign up button 1', () => {
cy.get('.ant-modal-content').should('not.exist')
cy.get('.ant-btn').contains('Sign up to create analyses!').parent().click()
cy.get('.ant-btn').contains('Sign up to get started!').parent().click()
cy.get('.ant-modal-content')
cy.contains("Sign up for a Neuroscout account")
cy.contains('Sign up for a Neuroscout account')
cy.get('.ant-modal-close-x').click()
cy.get('.ant-modal-content').should('not.exist')

})

it('test sign up button 2', () => {
cy.get('.ant-modal-content').should('not.exist')
cy.get('.ant-btn').contains('Sign up').parent().click()
cy.get('.ant-modal-content')
cy.contains("Sign up for a Neuroscout account")
cy.contains('Sign up for a Neuroscout account')
cy.get('.ant-modal-close-x').click()
cy.get('.ant-modal-content').should('not.exist')
})
Expand All @@ -59,9 +58,8 @@ describe('The Home Page', () => {
cy.get('.ant-modal-content').should('not.exist')
cy.get('.ant-menu').contains('Sign in').click()
cy.get('.ant-modal-content')
cy.contains("Log into Neuroscout")
cy.contains('Log into Neuroscout')
cy.get('.ant-modal-close-x').click()
cy.get('.ant-modal-content').should('not.exist')
})

})
Empty file modified neuroscout/frontend/public/index.html
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/public/static/Neuroscout_Simple_Wide.svg
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/Neuroscout_Wide.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/browse.svg
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/design.svg
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/favicon.ico
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/public/static/nihlogo.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/share.svg
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/public/static/utlogo.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified neuroscout/frontend/src/App.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/HelperComponents.tsx
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions neuroscout/frontend/src/Home.tsx
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ class Home extends React.Component<UserStore, Record<string, never>> {
type="default"
href="/predictors"
>
Browse predictors
Explore predictors
</Button>
<Button
size="large"
className="splashButton"
type="default"
href="/datasets"
>
Browse datasets
View datasets
</Button>
<br />
{this.props.loggedIn === false && (
Expand All @@ -65,7 +65,7 @@ class Home extends React.Component<UserStore, Record<string, never>> {
type="primary"
onClick={e => this.props.update({ openSignup: true })}
>
Sign up to create analyses!
Sign up to get started!
</Button>
)}
</div>
Expand Down
Empty file modified neuroscout/frontend/src/Modals.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/Navbar.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/Routes.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/Tour.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/__tests__/MainSuite.test.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Bibliography.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Builder.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/ContrastEditor.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Contrasts.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/NeuroVault.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Options.tsx
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion neuroscout/frontend/src/analysis_builder/Overview.tsx
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class OverviewTab extends React.Component<
return (
<div className="builderCol">
<Form layout="vertical">
<FormItem label="Analysis name" required>
<FormItem label="Name" required>
<Row justify="space-between">
<Col xs={24}>
<Input
Expand Down
Empty file modified neuroscout/frontend/src/analysis_builder/Predictors.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Report.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/Review.tsx
100644 → 100755
Empty file.
51 changes: 40 additions & 11 deletions neuroscout/frontend/src/analysis_builder/Status.tsx
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import * as React from 'react'
import { Alert, Button, Card, Checkbox, Modal, Tooltip, Switch } from 'antd'
import {
Alert,
Button,
Card,
Checkbox,
Modal,
Tooltip,
Switch,
Typography,
} from 'antd'
import memoize from 'memoize-one'

import { config } from '../config'
Expand All @@ -11,6 +20,7 @@ import { Tracebacks } from './Report'
import NeurovaultLinks from './NeuroVault'

const domainRoot = config.server_url
const { Text } = Typography

export class DLLink extends React.Component<{
status?: string
Expand Down Expand Up @@ -254,23 +264,42 @@ export class StatusTab extends React.Component<submitProps, statusTabState> {
<div>
<h3>Analysis Passed</h3>
<p>
{this.props.userOwns &&
'Congratulations, your analysis has been compiled!'}
{this.props.userOwns && (
<Alert
message="Passed"
description="Analysis ID: {this.props.analysisId} has been validated and compiled."
type="success"
showIcon
/>
)}
<br />
Run the analysis with this this command, replacing
&apos;/local/outputdirectory&apos; with a local directory. See the{' '}
<a href="https://neuroscout.github.io/neuroscout/cli/">
neuroscout-cli documentation{' '}
</a>
for a complete user guide.
Run the analysis using Docker, replacing
<Text code>/mydir</Text> with a local directory.
</p>
<pre>
<code>
docker run --rm -it -v /local/outputdirectory:/out
{` neuroscout/neuroscout-cli${this.state.imageVersion}`} run
docker run --rm -it -v /mydir:/out
{` neuroscout/neuroscout-cli${this.state.imageVersion} run `}
{this.props.analysisId} /out
</code>
</pre>
<p>
For help on how to use the <Text code>neuroscout-cli</Text>{' '}
execution engine, try:
</p>
<pre>
<code>
docker run --rm -it
{` neuroscout/neuroscout-cli${this.state.imageVersion} --help `}
</code>
</pre>
<p>
See the neuroscout-cli{' '}
<a href="https://neuroscout.github.io/neuroscout/cli/">
documentation{' '}
</a>
for a complete user guide.
</p>
<Card
size="small"
title="System Requirements"
Expand Down
Empty file modified neuroscout/frontend/src/analysis_builder/Transformations.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/analysis_builder/transforms.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/api.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/browser/AnalysisList.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/browser/DatasetDetailView.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/browser/DatasetList.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/browser/PredictorList.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/browser/PredictorRelatedDetailsView.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/config.ts.example
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/coretypes.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/css/App.css
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/css/Bibliography.css
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/css/index.css
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/index.tsx
100644 → 100755
Empty file.
Empty file.
Empty file modified neuroscout/frontend/src/predictor_collection/CollectionList.tsx
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified neuroscout/frontend/src/predictor_collection/RunSelector.tsx
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified neuroscout/frontend/src/predictor_collection/__tests__/data.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/profile/EditProfile.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/profile/PublicProfile.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/profile/UserList.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/react-app-env.d.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/setupTests.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/user.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/utils/analytics.tsx
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/src/utils/index.ts
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/tsconfig.json
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/tsconfig.prod.json
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/tsconfig.test.json
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/tslint.json
100644 → 100755
Empty file.
Empty file modified neuroscout/frontend/yarn.lock
100644 → 100755
Empty file.

0 comments on commit 7981ed7

Please sign in to comment.