Skip to content

Commit b74cf37

Browse files
authored
Replace Simulate with Experiment (#255)
1 parent 3f8270e commit b74cf37

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

src/app/app/virtual-lab/lab/[virtualLabId]/(lab)/overview/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function VirtualLab({ params }: ServerSideComponentProp<{ virtual
1313

1414
<NewProjectCTABanner
1515
title="Create a project"
16-
subtitle="In order to start exploring brain regions, building models and simulate neuron, create a project"
16+
subtitle="In order to start exploring brain regions, building models and experiment neuron, create a project"
1717
/>
1818

1919
<DiscoverObpPanel />

src/app/app/virtual-lab/lab/[virtualLabId]/project/[projectId]/simulate/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function VirtualLabProjectLayout({ children, params }: LabProject
2121
{
2222
key: LinkItemKey.Simulate,
2323
href: `${labProjectUrl}/simulate`,
24-
content: 'Simulate',
24+
content: 'Experiment',
2525
styles: 'rounded-full bg-primary-5 py-3 text-primary-9 w-2/3',
2626
},
2727
];

src/components/LabTabs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function BrainFactoryTabs({ children }: BrainFactoryTabsProps) {
1414
<div className="flex">
1515
<Popover.Root>
1616
<Popover.Trigger className="flex-auto bg-secondary-2 px-8 text-white">
17-
Build & Simulate
17+
Build & Experiment
1818
</Popover.Trigger>
1919
<Popover.Portal>
2020
<Popover.Content className="z-[100] flex flex-col text-white">

src/components/VirtualLab/DiscoverObpPanel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const items: {
5858
},
5959
{
6060
image: `${basePath}/images/virtual-lab/obp_vl_simulate.png`,
61-
title: 'Simulate',
61+
title: 'Experiment',
6262
bulletPoints: [
6363
'Select an existing single-cell model.',
6464
'Define which protocol to use to stimulate the cell and configure it.',

src/components/VirtualLab/ScopeSelector/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function SectionTabs({
3636
onChange={() => setSelectedTab(tab)}
3737
type="radio"
3838
/>
39-
{capitalize(`${tab} ${label}`) + (tab === 'browse' ? 's' : '')}
39+
{makeTitle(tab, label) + (tab === 'browse' ? 's' : '')}
4040
</label>
4141
);
4242
};
@@ -49,6 +49,14 @@ export function SectionTabs({
4949
);
5050
}
5151

52+
/**
53+
* Capitalize `words` and add a space between them.
54+
* In the meantime, eerytime we find "simulation", we replace it with "experiment".
55+
*/
56+
function makeTitle(...words: string[]): string {
57+
return words.map((word) => capitalize(word.replace('simulation', 'experiment'))).join(' ');
58+
}
59+
5260
export function ScopeSelector({
5361
atomKey,
5462
section,
@@ -112,7 +120,7 @@ export function ScopeSelector({
112120
<div>
113121
<div className="mt-12 text-[40px] font-bold text-primary-4">
114122
{section === 'build' && 'Select a scale for your model'}
115-
{section === 'simulate' && 'Select a scale to choose models and simulations'}
123+
{section === 'simulate' && 'Select a scale to choose models and experiments'}
116124
</div>
117125

118126
<div className="mb-5 mt-8 grid grid-cols-3 gap-5">

src/components/VirtualLab/projects/VirtualLabProjectSidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function VirtualLabProjectSidebar({ virtualLabId, projectId }: Pr
9898
},
9999
{ key: LinkItemKey.Explore, content: 'Explore', href: 'explore/interactive' },
100100
{ key: LinkItemKey.Build, content: 'Build', href: 'build' },
101-
{ key: LinkItemKey.Simulate, content: 'Simulate', href: 'simulate' },
101+
{ key: LinkItemKey.Simulate, content: 'Experiment', href: 'simulate' },
102102
{
103103
key: LinkItemKey.Papers,
104104
disabled: true,

0 commit comments

Comments
 (0)